Skip to main content
A billing entity is the legal issuer behind your invoices: it holds the legal details, currency, timezone, numbering and tax settings Lago applies to the documents it issues. Use several billing entities when you bill customers from distinct companies or under distinct invoicing configurations.
Creating additional billing entities requires the relevant entitlement. Grace periods, timezones, email settings and periodic invoice settings may require a premium license.

Create a billing entity

  1. Click Settings in the side navigation bar.
  2. In the Your billing entities section, click Add an entity.
  3. Enter a name and a unique code for your billing entity.
  4. Configure the entity settings as needed.
  5. Click Create entity to confirm.
code must be unique among active billing entities.

Edit a billing entity

You can update every field except the code. PUT and PATCH both accept partial updates. Omitted fields are unchanged. An empty tax_codes or invoice_custom_section_codes array removes the corresponding assignments.
  1. Click Settings in the side navigation bar.
  2. In the Your billing entities section, select the relevant billing entity.
  3. Click any section to edit its settings.

Billing entity settings

The response adds lago_id, is_default (whether this is the organization default), logo_url and archived_at. Request taxes or selected_invoice_custom_sections with expands[].

Retrieve and list billing entities

  • GET /billing_entities lists active billing entities only. It is cursor-paginated.
  • GET /billing_entities/{code} returns the active entity with that code, or an archived one if no active entity has it.

Archive a billing entity

The API has no archive or delete operation for billing entities. Contact the Lago team to archive one.

Assign a billing entity to a customer

Pass billing_entity_code when you create or update a customer. The customer list filters on billing_entity_codes[], and the contract list filters on billing_entity_ids[].
Assign a customer to acme_corp

Customer management

Create and update customers.

Invoices

Documents issued by the billing entity.

Create a billing entity (API)

POST /billing_entities

Update a billing entity (API)

PUT /billing_entities/{code}