Create a billing entity
Billing entities let you manage your end customers under distinct billing configurations. To create a billing entity, follow these steps:- Dashboard
- API
Using the user interface:
- Click Settings in the side navigation bar.
- In the Settings menu, click “Add a billing entity”.
- Enter a name and a unique code for your billing entity.
- Configure the entity’s settings as needed.
- Click “Add billing entity” to confirm.
ℹ️ The first billing entity created in your organization is considered the default. Billing entity settings only apply to the customers assigned to that specific entity. More information is available in the following sections.
Edit a billing entity
You can update all billing entity information except the code after creation. To edit a billing entity:- Dashboard
- API
Using the user interface:
- Click Settings in the side navigation bar.
- In the Settings menu, select the relevant billing entity.
- Click any section to edit its settings.
Delete a billing entity
Deleting a billing entity is not available via the Dashboard or API.To delete a billing entity, please contact the Lago team directly.
Assign a billing entity to a customer
When creating a customer, you can assign it to a billing entity in two ways:- Through the Dashboard by selecting the billing entity.
- Via API by passing the
billing_entity_codein the customer creation payload.
ℹ️ The billing entity assigned to a customer acts as their default billing entity.A customer is not limited to a single billing entity: when creating a billing object for the customer (e.g. a subscription, one-off invoice, or wallet), you can select a billing entity different from the customer’s default. The resulting invoices are issued by the billing entity selected on the object.