API Reference
- Getting started
- Add-ons
- Analytics
- Billable metrics
- Coupons
- Credit notes
- Customer usage
- Customers
- Events
- Fees
- Invoices
- Organizations
- Payment requests
- Plans
- Resources
- Subscriptions
- Taxes
- Wallets
- Webhook endpoints
- Webhooks
Update your organization
This endpoint is used to update your own organization’s settings.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The URL of your newest updated webhook endpoint. This URL allows your organization to receive important messages, notifications, or data from the Lago system. By configuring your webhook endpoint to this URL, you can ensure that your organization stays informed and receives relevant information in a timely manner.
The country of your organization.
The default currency of an organization.
The first line of your organization's billing address.
The second line of your organization's billing address.
The state of your organization's billing address.
The zipcode of your organization's billing address.
The email address of your organization used to bill your customers.
The city of your organization's billing address.
The legal name of your organization.
The legal number of your organization.
This parameter configures the method of incrementing invoice numbers for your customers.
per_customer
: Invoice numbers are incremented individually for each customer. This means every customer will have their own unique sequence of invoice numbers, separate from other customers. It ensures that each customer's invoice numbers follow a distinct and isolated numbering pattern.per_organization
: Invoice number incrementation is made across your entire organization. Rather than individual sequences for each customer, all invoices within the organization follow a single, unified numbering system. This creates a continuous and organization-wide sequence for all invoice numbers. Invoices are incremented per month (dynamic value used is YYYYMM), and invoice numbers are reset at the end of each month.
The default value for document_numbering
is set to per_customer
, meaning that, unless changed, invoice numbers will increment uniquely for each customer.
Sets the prefix for invoices and credit notes. Default is the first three letters of your organization name plus the last four digits of your organization ID. Customizable within 1-10 characters, and automatically capitalized by Lago.
The net payment term, expressed in days, specifies the duration within which a customer is expected to remit payment after the invoice is finalized.
The tax identification number of your organization.
Your organization's timezone, used for billing purposes in your own local time. Can be overwritten by the customer's timezone.
Represents the email settings of the organization. It allows you to define which documents are sent by email. The field value determines the types of documents that trigger email notifications. Possible values for are invoice.finalized
and credit_note.created
. By configuring this field, you can specify whether invoices, credit notes, or both should be sent to recipients via email.
The custom billing settings for your organization.
The customer invoice message that appears at the bottom of each billing documents.
The grace period, expressed in days, for finalizing the invoice. This period refers to the additional time granted to your customers beyond the invoice due date to adjust usage and line items. Can be overwritten by the customer's grace period.
The locale of the billing documents, expressed in the ISO 639-1 format. This field indicates the language or regional variant used for the documents content issued or the embeddable customer portal.
Determines whether invoices with a zero total amount should be finalized. If set to true, zero amount invoices will be finalized. If set to false, zero amount invoices will not be finalized.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Response
Was this page helpful?