Skip to main content
API v2 is in beta. Endpoints return the X-Lago-Endpoint-Status: beta header.

Customer.

lago_id
string<uuid>
required

Unique identifier created by Lago.

Example:

"1a901a90-1a90-1a90-1a90-1a901a901a90"

billing_entity_code
string
required

Code of the customer billing entity.

Example:

"main"

external_id
string
required

Unique customer identifier in your application.

Example:

"customer_123"

account_type
enum<string>
required

Account type.

Available options:
customer,
partner
Example:

"customer"

name
string | null
required

Name.

Example:

"example"

firstname
string | null
required

Firstname.

Example:

"example"

lastname
string | null
required

Lastname.

Example:

"example"

customer_type
enum<string> | null
required

Type of customer.

Available options:
company,
individual,
null
Example:

"company"

sequential_id
integer | null
required

Sequential id.

Example:

100

slug
string | null
required

Slug.

Example:

"example"

country
string | null
required

Country.

Example:

"example"

address_line1
string | null
required

Address line1.

Example:

"example"

address_line2
string | null
required

Address line2.

Example:

"example"

state
string | null
required

State.

Example:

"example"

zipcode
string | null
required

Zipcode.

Example:

"example"

email
string | null
required

Email.

Example:

"billing@acme.example"

city
string | null
required

City.

Example:

"example"

url
string | null
required

Url.

Example:

"example"

phone
string | null
required

Phone.

Example:

"example"

logo_url
string | null
required

Logo url.

Example:

"example"

Legal name.

Example:

"example"

Legal number.

Example:

"example"

currency
string | null
required

Currency as an ISO 4217 code.

Example:

"USD"

tax_identification_number
string | null
required

Tax identification number.

Example:

"example"

timezone
string | null
required

Timezone.

Example:

"example"

applicable_timezone
string
required

Timezone used for customer billing.

Example:

"Europe/Paris"

external_salesforce_id
string | null
required

External salesforce id.

Example:

"example"

finalize_zero_amount_invoice
enum<string>
required

Whether invoices with a zero amount are finalized.

Available options:
inherit,
skip,
finalize
Example:

"inherit"

skip_invoice_custom_sections
boolean
required

Skip invoice custom sections.

Example:

false

invoice_grace_period
integer | null
required

Invoice grace period.

Example:

1

periodic_invoice_issuing_date_anchor
string | null
required

Anchor used to determine the issuing date of periodic invoices.

Example:

"current_period_end"

periodic_invoice_issuing_date_adjustment
string | null
required

Adjustment applied to the periodic invoice issuing date.

Example:

"keep_anchor"

payment_provider
string | null
required

Payment provider.

Example:

"example"

payment_provider_code
string | null
required

Payment provider code.

Example:

"example"

provider_customer_id
string | null
required

Customer identifier in the payment provider.

Example:

"cus_example"

provider_payment_methods
string[] | null
required

Payment methods allowed by the provider.

Payment method type.

document_locale
string | null
required

Document locale.

Example:

"example"

created_at
string<date-time>
required

UTC creation timestamp, with microsecond precision.

Example:

"2022-04-29T08:59:51.123456Z"

updated_at
string<date-time>
required

UTC timestamp of the last update, with microsecond precision.

Example:

"2022-04-29T08:59:51.123456Z"

deleted_at
string<date-time> | null
required

UTC deletion timestamp, with microsecond precision. Null until deletion.

Example:

null

shipping_address
object
required

Shipping address of the customer.

x402_agent_address
string | null

Agent address. Present only when x402 payments are enabled.

Example:

"0x0000000000000000000000000000000000000000"

metadata
object[]

Customer metadata. Included only with expands[]=metadata.

taxes
object[]

Customer taxes. Included only with expands[]=taxes.

integration_customers
object[]

Integration mappings. Included only with expands[]=integration_customers.