Skip to main content
Customer metadata is a set of key-value pairs that stores extra context on a customer, such as an ID from your CRM or a purchase order reference. Use it for data your billing team needs to see, and set display_on_invoice to print a pair on invoices.

Limits

Add metadata

Send the metadata array when you create or update the customer.
Add key-value pairs in the customer creation or edition drawer, then save the customer.

Edit and delete metadata

On update, metadata is a full replacement:
  • An entry with an id keeps or updates that existing entry. Use the lago_id returned for it.
  • An entry without an id is created. Lago does not match entries by key.
  • An existing entry you omit is deleted.
  • An empty array removes all entries.
Retrieve the current entries first with GET /customers/{external_id}?expands[]=metadata.
Edit or remove pairs in the customer edition drawer (the trash icon removes a pair), then save the customer.
Any existing entry you leave out of metadata on update is deleted. Send every pair you want to keep, with its id.

Display metadata on invoices

Set display_on_invoice to true on a pair to show it on invoices. In the Dashboard, switch on the option in the customer creation or edition drawer.

Customer management

Create, update and delete customers.

Invoices

Where displayed metadata appears.

Update a customer (API)

PUT /customers/{external_id}

Customer object (API)

Every customer field.