Skip to main content
A customer is the account you bill. It stores their contact information, billing details and payment settings, and connects their Contracts and invoices. Create the customer first, then apply a Plan through a Contract. The Contract defines when billing starts.

Create a customer

Use external_id to identify the customer in your system. Pass this value as external_customer_id when creating a Contract.
  1. Open Customers.
  2. Click Create a customer.
  3. Enter the customer’s name.
  4. Enter their external ID.
  5. Optionally, select a timezone.
  6. Optionally, add billing details.
  7. Optionally, select a payment provider.
  8. 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

Use PUT /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.
Open Customers and select the customer to edit their information.

Find a customer

Use GET /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.