Create a billing entity
- Dashboard
- API
- Click Settings in the side navigation bar.
- In the Your billing entities section, click Add an entity.
- Enter a name and a unique code for your billing entity.
- Configure the entity settings as needed.
- 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.
- Dashboard
- API
- Click Settings in the side navigation bar.
- In the Your billing entities section, select the relevant billing entity.
- 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_entitieslists 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
Passbilling_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_entitiesUpdate a billing entity (API)
PUT /billing_entities/{code}