Create a customer
Useexternal_id to identify the customer in your system. Pass this value as external_customer_id when creating a Contract.
- Dashboard
- API
- Open Customers.
- Click Create a customer.
- Enter the customer’s name.
- Enter their external ID.
- Optionally, select a timezone.
- Optionally, add billing details.
- Optionally, select a payment provider.
- Click Create customer.
Configure billing details
Add the information you need to bill and collect payment from the customer.
Set
customer_type to company or individual when needed. You can leave it out and set it later.
See the Customer object for the complete field list.
Update a customer
UsePUT /customers/{external_id} to update an existing customer. Send the fields you want to change. Omitted fields keep their current values.
Treat external_id as a permanent identifier. Once the customer has billing objects such as invoices or wallets, changes to it are ignored.
If you send metadata or integration_customers, include every entry you want to keep. These arrays replace the existing list. Include each retained entry’s id, using its lago_id from the response. Omitted entries are removed; an empty array removes all entries. See Customer metadata for a worked example.
- Dashboard
- API
Open Customers and select the customer to edit their information.
Find a customer
UseGET /customers/{external_id} to retrieve a customer. To include metadata, taxes or integration details, request metadata, taxes or integration_customers with expands[].
Use GET /customers to list customers. Filter the results and follow the returned cursors to retrieve additional pages. See List customers for the available filters and Pagination for navigating results.
Retrieve a customer with its metadata
Delete a customer
Review the customer’s pending and active Contracts and draft invoices before deleting the customer.DELETE /customers/{external_id} marks the customer as deleted and queues related termination work. The response includes deleted_at; it does not confirm that all related work has finished.
Delete a customer
Create a Contract
Apply a Plan and set when the customer’s billing starts.
Customer metadata
Store extra context on the customer.
Billing entities
Choose the entity that issues invoices.
Retrieve usage
Review received events and current usage.