This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.
lago_id
string<uuid>
required
Unique identifier assigned to the customer within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the customer's record within the Lago system
Example:
"1a901a90-1a90-1a90-1a90-1a901a901a90"
sequential_id
integer
required
The unique identifier assigned to the customer within the organization's scope. This identifier is used to track and reference the customer's order of creation within the organization's system. It ensures that each customer has a distinct sequential_id associated with them, allowing for easy identification and sorting based on the order of creation
Example:
1
slug
string
required
A concise and unique identifier for the customer, formed by combining the Organization's name, id, and customer's sequential_id
Example:
"LAG-1234-001"
external_id
string
required
The customer external unique identifier (provided by your own application)
Example:
"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"
billing_entity_code
string
required
The unique code of the billing entity associated with the customer.
Example:
"acme_corp"
address_line1
string | null
required
The first line of the billing address
Example:
"5230 Penfield Ave"
address_line2
string | null
required
The second line of the billing address
Example:
null
applicable_timezone
enum<string>
required
The customer's applicable timezone, used for billing purposes in their local time.
Available options:
UTC,
Africa/Algiers,
Africa/Cairo,
Africa/Casablanca,
Africa/Harare,
Africa/Johannesburg,
Africa/Monrovia,
Africa/Nairobi,
America/Argentina/Buenos_Aires,
America/Bogota,
America/Caracas,
America/Chicago,
America/Chihuahua,
America/Denver,
America/Guatemala,
America/Guyana,
America/Halifax,
America/Indiana/Indianapolis,
America/Juneau,
America/La_Paz,
America/Lima,
America/Los_Angeles,
America/Mazatlan,
America/Mexico_City,
America/Monterrey,
America/Montevideo,
America/New_York,
America/Nuuk,
America/Phoenix,
America/Puerto_Rico,
America/Regina,
America/Santiago,
America/Sao_Paulo,
America/St_Johns,
America/Tijuana,
Asia/Almaty,
Asia/Baghdad,
Asia/Baku,
Asia/Bangkok,
Asia/Chongqing,
Asia/Colombo,
Asia/Dhaka,
Asia/Hong_Kong,
Asia/Irkutsk,
Asia/Jakarta,
Asia/Jerusalem,
Asia/Kabul,
Asia/Kamchatka,
Asia/Karachi,
Asia/Kathmandu,
Asia/Kolkata,
Asia/Krasnoyarsk,
Asia/Kuala_Lumpur,
Asia/Kuwait,
Asia/Magadan,
Asia/Muscat,
Asia/Novosibirsk,
Asia/Riyadh,
Asia/Seoul,
Asia/Shanghai,
Asia/Singapore,
Asia/Srednekolymsk,
Asia/Taipei,
Asia/Tashkent,
Asia/Tbilisi,
Asia/Tehran,
Asia/Tokyo,
Asia/Ulaanbaatar,
Asia/Urumqi,
Asia/Vladivostok,
Asia/Yakutsk,
Asia/Yangon,
Asia/Yekaterinburg,
Asia/Yerevan,
Atlantic/Azores,
Atlantic/Cape_Verde,
Atlantic/South_Georgia,
Australia/Adelaide,
Australia/Brisbane,
Australia/Darwin,
Australia/Hobart,
Australia/Melbourne,
Australia/Perth,
Australia/Sydney,
Europe/Amsterdam,
Europe/Athens,
Europe/Belgrade,
Europe/Berlin,
Europe/Bratislava,
Europe/Brussels,
Europe/Bucharest,
Europe/Budapest,
Europe/Copenhagen,
Europe/Dublin,
Europe/Helsinki,
Europe/Istanbul,
Europe/Kaliningrad,
Europe/Kyiv,
Europe/Lisbon,
Europe/Ljubljana,
Europe/London,
Europe/Madrid,
Europe/Minsk,
Europe/Moscow,
Europe/Paris,
Europe/Prague,
Europe/Riga,
Europe/Rome,
Europe/Samara,
Europe/Sarajevo,
Europe/Skopje,
Europe/Sofia,
Europe/Stockholm,
Europe/Tallinn,
Europe/Vienna,
Europe/Vilnius,
Europe/Volgograd,
Europe/Warsaw,
Europe/Zagreb,
Europe/Zurich,
GMT+12,
Pacific/Apia,
Pacific/Auckland,
Pacific/Chatham,
Pacific/Fakaofo,
Pacific/Fiji,
Pacific/Guadalcanal,
Pacific/Guam,
Pacific/Honolulu,
Pacific/Majuro,
Pacific/Midway,
Pacific/Noumea,
Pacific/Pago_Pago,
Pacific/Port_Moresby,
Pacific/Tongatapu
Example:
"America/Los_Angeles"
city
string | null
required
The city of the customer's billing address
Example:
"Woodland Hills"
country
enum<string> | null
required
Country code of the customer's billing address. Format must be ISO 3166 (alpha-2)
Available options:
null,
AD,
AE,
AF,
AG,
AI,
AL,
AM,
AO,
AQ,
AR,
AS,
AT,
AU,
AW,
AX,
AZ,
BA,
BB,
BD,
BE,
BF,
BG,
BH,
BI,
BJ,
BL,
BM,
BN,
BO,
BQ,
BR,
BS,
BT,
BV,
BW,
BY,
BZ,
CA,
CC,
CD,
CF,
CG,
CH,
CI,
CK,
CL,
CM,
CN,
CO,
CR,
CU,
CV,
CW,
CX,
CY,
CZ,
DE,
DJ,
DK,
DM,
DO,
DZ,
EC,
EE,
EG,
EH,
ER,
ES,
ET,
FI,
FJ,
FK,
FM,
FO,
FR,
GA,
GB,
GD,
GE,
GF,
GG,
GH,
GI,
GL,
GM,
GN,
GP,
GQ,
GR,
GS,
GT,
GU,
GW,
GY,
HK,
HM,
HN,
HR,
HT,
HU,
ID,
IE,
IL,
IM,
IN,
IO,
IQ,
IR,
IS,
IT,
JE,
JM,
JO,
JP,
KE,
KG,
KH,
KI,
KM,
KN,
KP,
KR,
KW,
KY,
KZ,
LA,
LB,
LC,
LI,
LK,
LR,
LS,
LT,
LU,
LV,
LY,
MA,
MC,
MD,
ME,
MF,
MG,
MH,
MK,
ML,
MM,
MN,
MO,
MP,
MQ,
MR,
MS,
MT,
MU,
MV,
MW,
MX,
MY,
MZ,
NA,
NC,
NE,
NF,
NG,
NI,
NL,
NO,
NP,
NR,
NU,
NZ,
OM,
PA,
PE,
PF,
PG,
PH,
PK,
PL,
PM,
PN,
PR,
PS,
PT,
PW,
PY,
QA,
RE,
RO,
RS,
RU,
RW,
SA,
SB,
SC,
SD,
SE,
SG,
SH,
SI,
SJ,
SK,
SL,
SM,
SN,
SO,
SR,
SS,
ST,
SV,
SX,
SY,
SZ,
TC,
TD,
TF,
TG,
TH,
TJ,
TK,
TL,
TM,
TN,
TO,
TR,
TT,
TV,
TW,
TZ,
UA,
UG,
UM,
US,
UY,
UZ,
VA,
VC,
VE,
VG,
VI,
VN,
VU,
WF,
WS,
YE,
YT,
ZA,
ZM,
ZW
Example:
"US"
currency
enum<string> | null
required
Currency of the customer. Format must be ISO 4217
Available options:
null,
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BWP,
BYN,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
INR,
ISK,
JMD,
JPY,
KES,
KGS,
KHR,
KMF,
KRW,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
STD,
SYP,
SZL,
THB,
TJS,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VND,
VUV,
WST,
XAF,
XCD,
XOF,
XPF,
YER,
ZAR,
ZMW
Example:
"USD"
email
string<email> | null
required
The email of the customer
Example:
"dinesh@piedpiper.example"
legal_name
string | null
required
The legal company name of the customer
Example:
"Coleman-Blair"
legal_number
string | null
required
The legal company number of the customer
Example:
"49-008-2965"
logo_url
string | null
required
The logo URL of the customer
Example:
"http://hooli.com/logo.png"
name
string | null
required
The full name of the customer
Example:
"Gavin Belson"
firstname
string | null
required
First name of the customer
Example:
"Gavin"
lastname
string | null
required
Last name of the customer
Example:
"Belson"
account_type
enum<string>
required
The type of the account. It can have one of the following values:
customer: the account is a customer.
partner: the account is a partner.
Available options:
customer,
partner
Example:
"customer"
customer_type
enum<string> | null
required
The type of the customer. It can have one of the following values:
company: the customer is a company.
individual: the customer is an individual.
Available options:
company,
individual,
null
Example:
"company"
phone
string | null
required
The phone number of the customer
Example:
"1-171-883-3711 x245"
state
string | null
required
The state of the customer's billing address
Example:
"CA"
tax_identification_number
string | null
required
The tax identification number of the customer
Example:
"EU123456789"
timezone
enum<string> | null
required
The customer's timezone, used for billing purposes in their local time. Overrides the organization's timezone
Available options:
null,
UTC,
Africa/Algiers,
Africa/Cairo,
Africa/Casablanca,
Africa/Harare,
Africa/Johannesburg,
Africa/Monrovia,
Africa/Nairobi,
America/Argentina/Buenos_Aires,
America/Bogota,
America/Caracas,
America/Chicago,
America/Chihuahua,
America/Denver,
America/Godthab,
America/Guatemala,
America/Guyana,
America/Halifax,
America/Indiana/Indianapolis,
America/Juneau,
America/La_Paz,
America/Lima,
America/Los_Angeles,
America/Mazatlan,
America/Mexico_City,
America/Monterrey,
America/Montevideo,
America/New_York,
America/Phoenix,
America/Puerto_Rico,
America/Regina,
America/Santiago,
America/Sao_Paulo,
America/St_Johns,
America/Tijuana,
Asia/Almaty,
Asia/Baghdad,
Asia/Baku,
Asia/Bangkok,
Asia/Chongqing,
Asia/Colombo,
Asia/Dhaka,
Asia/Hong_Kong,
Asia/Irkutsk,
Asia/Jakarta,
Asia/Jerusalem,
Asia/Kabul,
Asia/Kamchatka,
Asia/Karachi,
Asia/Kathmandu,
Asia/Kolkata,
Asia/Krasnoyarsk,
Asia/Kuala_Lumpur,
Asia/Kuwait,
Asia/Magadan,
Asia/Muscat,
Asia/Novosibirsk,
Asia/Rangoon,
Asia/Riyadh,
Asia/Seoul,
Asia/Shanghai,
Asia/Singapore,
Asia/Srednekolymsk,
Asia/Taipei,
Asia/Tashkent,
Asia/Tbilisi,
Asia/Tehran,
Asia/Tokyo,
Asia/Ulaanbaatar,
Asia/Urumqi,
Asia/Vladivostok,
Asia/Yakutsk,
Asia/Yekaterinburg,
Asia/Yerevan,
Atlantic/Azores,
Atlantic/Cape_Verde,
Atlantic/South_Georgia,
Australia/Adelaide,
Australia/Brisbane,
Australia/Darwin,
Australia/Hobart,
Australia/Melbourne,
Australia/Perth,
Australia/Sydney,
Europe/Amsterdam,
Europe/Athens,
Europe/Belgrade,
Europe/Berlin,
Europe/Bratislava,
Europe/Brussels,
Europe/Bucharest,
Europe/Budapest,
Europe/Copenhagen,
Europe/Dublin,
Europe/Helsinki,
Europe/Istanbul,
Europe/Kaliningrad,
Europe/Kiev,
Europe/Lisbon,
Europe/Ljubljana,
Europe/London,
Europe/Madrid,
Europe/Minsk,
Europe/Moscow,
Europe/Paris,
Europe/Prague,
Europe/Riga,
Europe/Rome,
Europe/Samara,
Europe/Sarajevo,
Europe/Skopje,
Europe/Sofia,
Europe/Stockholm,
Europe/Tallinn,
Europe/Vienna,
Europe/Vilnius,
Europe/Volgograd,
Europe/Warsaw,
Europe/Zagreb,
Europe/Zurich,
GMT+12,
Pacific/Apia,
Pacific/Auckland,
Pacific/Chatham,
Pacific/Fakaofo,
Pacific/Fiji,
Pacific/Guadalcanal,
Pacific/Guam,
Pacific/Honolulu,
Pacific/Majuro,
Pacific/Midway,
Pacific/Noumea,
Pacific/Pago_Pago,
Pacific/Port_Moresby,
Pacific/Tongatapu
Example:
"America/Los_Angeles"
url
string | null
required
The custom website URL of the customer
Example:
"http://hooli.com"
zipcode
string | null
required
The zipcode of the customer's billing address
Example:
"91364"
payment_term
object | null
required
The structured payment term of the customer. It is null when the customer has no term of its own, in which case the term of its billing entity applies.
Show child attributes
net_payment_term
integer | null
required
deprecated
Deprecated. Use payment_term instead. Legacy alias of payment_term, expressed in days. It is the days of a net term, 0 for a due_on_receipt term, and null for every other term type or when the customer has no term of its own.
Example:
30
external_salesforce_id
string | null
required
The customer ID within the Salesforce system
Example:
"0015p00001JQx1QAAT"
created_at
string<date-time>
required
The date of the customer creation, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). The creation_date provides a standardized and internationally recognized timestamp for when the customer object was created
Example:
"2022-04-29T08:59:51Z"
updated_at
string<date-time>
required
The date of the customer update, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). The update_date provides a standardized and internationally recognized timestamp for when the customer object was updated
Example:
"2022-04-29T08:59:51Z"
finalize_zero_amount_invoice
enum<string>
required
Specifies how invoices with a zero total amount should be handled:
inherit: (Default) Follows the organization-level configuration.
finalize: Invoices are issued and finalized even if the total amount is zero.
skip: Invoices with a total amount of zero are not finalized.
Available options:
inherit,
skip,
finalize
Example:
"inherit"
skip_invoice_custom_sections
boolean
required
Set to true to exclude all invoice custom sections from PDF generation for this customer only.
Example:
false
billing_configuration
object
required
Configuration specific to the payment provider, utilized for billing the customer. provider_customer_id and provider_payment_methods are only returned when the customer has a payment provider. The sync and sync_with_provider fields of the create payload are never returned.
Show child attributes
shipping_address
object
required
The shipping address of the customer.
Show child attributes
metadata
object[]
required
Show child attributes
integration_customers
object[]
Show child attributes
taxes
object[]
List of customer taxes
Show child attributes
applicable_invoice_custom_sections
object[]
The customer's invoice custom sections used for generating invoices.
Show child attributes
error_details
object[]
List of errors with details that might have been raised while processing background actions for the customer
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lago","description":"Developer documentation for Lago, the open-source billing platform for usage metering, subscriptions, invoicing, payments, and revenue operations.","colors":{"primary":"#006CFA","light":"#006CFA","dark":"#006CFA"},"logo":{"light":"https://mintcdn.com/lago/tEkQPyaqiZPhcz3L/logo/light.svg?fit=max\u0026auto=format\u0026n=tEkQPyaqiZPhcz3L\u0026q=85\u0026s=eada80b4a9d4ac36482c9606e16aaffd","dark":"https://mintcdn.com/lago/tEkQPyaqiZPhcz3L/logo/dark.svg?fit=max\u0026auto=format\u0026n=tEkQPyaqiZPhcz3L\u0026q=85\u0026s=002abd657e046b1f2fdf5e48c53415ed"},"favicon":"https://mintcdn.com/lago/IE0ler3hTT3CovaU/favicon.svg?fit=max\u0026auto=format\u0026n=IE0ler3hTT3CovaU\u0026q=85\u0026s=cb84b56900a0495612c5d28ca5c1d6f1","api":{"openapi":"https://swagger.getlago.com/openapi.yaml","mdx":{"server":"https://api.getlago.com/api/v1"}},"background":{"color":{"light":"#F5F5EF","dark":"#131923"}},"navbar":{"links":[{"href":"https://getlago.com/book-a-demo","label":"Book a Demo"}],"primary":{"type":"button","label":"Get Started","href":"https://getlago.com/book-a-demo"}},"footer":{"socials":{"github":"https://github.com/getlago/lago","slack":"https://getlago.com/slack","x":"https://x.com/getlago","linkedin":"https://www.linkedin.com/company/getlago","youtube":"https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA"},"links":[{"header":"Documentation","items":[{"label":"Get started","href":"https://getlago.com/docs/guide/introduction/welcome-to-lago"},{"label":"API reference","href":"https://getlago.com/docs/api-reference/intro"},{"label":"Integrations","href":"https://getlago.com/docs/integrations/introduction"},{"label":"Templates","href":"https://getlago.com/docs/templates/introduction"},{"label":"Changelog","href":"https://getlago.com/docs/changelog/product"},{"label":"FAQ","href":"https://getlago.com/docs/faq/about-lago"}]},{"header":"Developers","items":[{"label":"Developer hub","href":"https://getlago.com/docs/developers"},{"label":"Authentication","href":"https://getlago.com/docs/auth"},{"label":"Webhooks","href":"https://getlago.com/docs/guide/webhooks"},{"label":"SDKs","href":"https://getlago.com/docs/developers"},{"label":"OpenAPI spec","href":"https://swagger.getlago.com/"},{"label":"MCP server","href":"https://getlago.com/docs/guide/ai-agents/mcp-server"},{"label":"Self-hosted","href":"https://getlago.com/docs/guide/lago-self-hosted/overview"},{"label":"llms.txt","href":"https://getlago.com/docs/llms.txt"}]},{"header":"Platform","items":[{"label":"Usage metering","href":"https://getlago.com/platform/usage-metering"},{"label":"Billing \u0026 invoicing","href":"https://getlago.com/platform/billing-invoicing"},{"label":"Cash collection","href":"https://getlago.com/platform/cash-collection"},{"label":"Revenue analytics","href":"https://getlago.com/platform/revenue-analytics"},{"label":"Entitlements","href":"https://getlago.com/platform/entitlements"},{"label":"Lago AI","href":"https://getlago.com/platform/ai"},{"label":"Pricing","href":"https://getlago.com/pricing"}]},{"header":"Company","items":[{"label":"About Lago","href":"https://getlago.com/docs/about"},{"label":"Customers","href":"https://getlago.com/customers"},{"label":"Blog","href":"https://getlago.com/blog"},{"label":"Contact","href":"https://getlago.com/docs/contact"},{"label":"Trust center","href":"https://security.getlago.com"},{"label":"Status","href":"https://status.getlago.com"}]}]},"seo":{"metatags":{"canonical":"https://getlago.com/docs","description":"Developer documentation for Lago's API-first billing platform, including OpenAPI, SDKs, webhooks, MCP, authentication, and implementation guides.","keywords":"Lago API, billing API, usage metering API, OpenAPI, billing SDK, Lago MCP"},"organization":{"id":"https://getlago.com/#organization","name":"Lago","legalName":"Get Lago Corp.","url":"https://getlago.com","logo":"https://getlago.com/docs/logo/light.svg","sameAs":["https://github.com/getlago","https://www.linkedin.com/company/getlago","https://x.com/GetLago","https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA"]},"indexing":"all"},"fonts":{"heading":{"family":"GT America","weight":700,"source":"fonts/GT-America-Standard-Medium.woff2","format":"woff2"},"body":{"family":"GT America","source":"fonts/GT-America-Standard-Regular.woff2","format":"woff2"}},"styling":{"codeblocks":"dark","latex":true},"integrations":{"ga4":{"measurementId":"G-743BQ9THCG"},"cookies":{"key":"lago_docs_analytics","value":"granted"}},"errors":{"404":{"redirect":false,"title":"Documentation page not found","description":"No Lago documentation exists at this URL. Start at [Lago Developer Documentation](/welcome), browse [Developer Resources](/developers), inspect the [documentation index](/llms.txt) or [sitemap](/sitemap.xml), or search the [API reference](/api-reference/intro)."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://getlago.com/blog"},{"anchor":"Community","icon":"slack","href":"https://getlago.com/slack"},{"anchor":"GitHub","icon":"github","href":"https://github.com/getlago/lago"},{"anchor":"Status","icon":"signal-bars","href":"https://status.getlago.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lago","hasAudioNarration":false,"actualSubdomain":"lago","customDomains":["docs.getlago.com","doc.getlago.com"],"gitSource":{"type":"github","owner":"getlago","repo":"lago-doc","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":false,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b09acb3abaa6e997b15e043","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"API References","count":243},{"language":"default","tag":"API Reference","count":243},{"language":"default","tag":"Guide","count":208},{"language":"default","tag":"Integrations","count":56},{"language":"default","tag":"Plans","count":46},{"language":"default","tag":"Resources","count":46},{"language":"default","tag":"Charges","count":39},{"language":"default","tag":"Pricing \u0026 Subscriptions","count":35},{"language":"default","tag":"Subscriptions","count":31},{"language":"default","tag":"Events \u0026 Usage Components","count":29}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html{visibility:hidden;background-color:#F5F5EF}@media (prefers-color-scheme: dark){html{background-color:#131923}}html.ready{visibility:visible}.dark .welcome-card{background-color:#1c2535!important;border-color:rgba(255, 255, 255, 0.1)!important;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.3)!important;color:#e5e7eb}.dark .welcome-card:hover{background-color:#243044!important}.dark .welcome-card h3{color:#ffffff}.dark .welcome-card p{color:#9ca3af!important}#changelog-month-nav{padding-left:2.5rem;width:19rem;box-sizing:border-box;margin-bottom:1.75rem;max-height:45vh;overflow-y:auto}#changelog-month-nav .changelog-month-nav__year{margin:0 0 0.5rem;font-size:0.875rem;line-height:1.5rem;font-weight:500;color:#364152}#changelog-month-nav .changelog-month-nav__list{list-style:none;margin:0;padding:0;border-left:1px solid rgba(0, 0, 0, 0.08)}#changelog-month-nav .changelog-month-nav__list a{display:block;padding:0.25rem 0 0.25rem 0.75rem;margin-left:-1px;border-left:1px solid transparent;font-size:0.875rem;line-height:1.5rem;color:#697586;text-decoration:none;transition:color 0.15s ease, border-color 0.15s ease}#changelog-month-nav .changelog-month-nav__list a:hover{color:#121926}#changelog-month-nav .changelog-month-nav__list a.is-active{color:#006CFA;border-left-color:#006CFA;font-weight:500}.dark #changelog-month-nav .changelog-month-nav__year{color:#cdd5df}.dark #changelog-month-nav .changelog-month-nav__list{border-left-color:rgba(255, 255, 255, 0.12)}.dark #changelog-month-nav .changelog-month-nav__list a{color:#9aa4b2}.dark #changelog-month-nav .changelog-month-nav__list a:hover{color:#ffffff}.dark #changelog-month-nav .changelog-month-nav__list a.is-active{color:#4d9bff;border-left-color:#4d9bff}.update-container>div:first-child{display:none}.update-container>div:nth-child(2){flex:1 1 100%;max-width:100%;width:100%}.update-container{gap:0}#footer a[href*=\"utm_campaign=poweredBy\"]{display:none}"}]}
{"page":{"pagePath":"api-reference/customers/object","slug":"/api-reference/customers/object","pageMetadata":{"title":"The customer object","openapi-schema":"CustomerObjectExtended","description":"This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.","href":"/api-reference/customers/object"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"The customer object","openapi-schema":"CustomerObjectExtended","description":"This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.","href":"/api-reference/customers/object"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/lago/a0e77058367d9146/canonical.js","/_mintlify/custom/lago/fa2446312177e9c6/loader.js","/_mintlify/custom/lago/c55d8403f7fc83ad/changelog-anchor-redirect.js","/_mintlify/custom/lago/8c326c8b67b47933/changelog-month-nav.js","/_mintlify/custom/lago/103c90943d27f62a/webmcp.js","/_mintlify/custom/lago/1219fb859e5c496e/github-outbound.js"],"openApiReferenceData":{"schemaData":{"type":"object","required":["lago_id","sequential_id","slug","external_id","billing_entity_code","address_line1","address_line2","applicable_timezone","city","country","currency","email","legal_name","legal_number","logo_url","name","firstname","lastname","account_type","customer_type","phone","state","tax_identification_number","timezone","url","zipcode","net_payment_term","payment_term","external_salesforce_id","created_at","updated_at","finalize_zero_amount_invoice","skip_invoice_custom_sections","billing_configuration","shipping_address","metadata"],"properties":{"lago_id":{"type":"string","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","description":"Unique identifier assigned to the customer within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the customer's record within the Lago system","isRequired":true,"uniqueKey":"lago_id","typeLabel":"string\u003cuuid>"},"sequential_id":{"type":"integer","example":1,"description":"The unique identifier assigned to the customer within the organization's scope. This identifier is used to track and reference the customer's order of creation within the organization's system. It ensures that each customer has a distinct `sequential_id` associated with them, allowing for easy identification and sorting based on the order of creation","isRequired":true,"uniqueKey":"sequential_id","typeLabel":"integer"},"slug":{"type":"string","example":"LAG-1234-001","description":"A concise and unique identifier for the customer, formed by combining the Organization's `name`, `id`, and customer's `sequential_id`","isRequired":true,"uniqueKey":"slug","typeLabel":"string"},"external_id":{"type":"string","description":"The customer external unique identifier (provided by your own application)","example":"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba","isRequired":true,"uniqueKey":"external_id","typeLabel":"string"},"billing_entity_code":{"type":"string","example":"acme_corp","description":"The unique code of the billing entity associated with the customer.","isRequired":true,"uniqueKey":"billing_entity_code","typeLabel":"string"},"address_line1":{"oneOf":[{"type":"string","description":"The first line of the billing address","example":"5230 Penfield Ave","isRequired":true,"uniqueKey":"address_line1.oneOf.0","typeLabel":"string"},{"type":"null","description":"The first line of the billing address","example":"5230 Penfield Ave","isRequired":true,"uniqueKey":"address_line1.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"address_line1","typeLabel":"string | null"},"address_line2":{"oneOf":[{"type":"string","description":"The second line of the billing address","example":null,"isRequired":true,"uniqueKey":"address_line2.oneOf.0","typeLabel":"string"},{"type":"null","description":"The second line of the billing address","example":null,"isRequired":true,"uniqueKey":"address_line2.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"address_line2","typeLabel":"string | null"},"applicable_timezone":{"type":"string","example":"America/Los_Angeles","enum":["UTC","Africa/Algiers","Africa/Cairo","Africa/Casablanca","Africa/Harare","Africa/Johannesburg","Africa/Monrovia","Africa/Nairobi","America/Argentina/Buenos_Aires","America/Bogota","America/Caracas","America/Chicago","America/Chihuahua","America/Denver","America/Guatemala","America/Guyana","America/Halifax","America/Indiana/Indianapolis","America/Juneau","America/La_Paz","America/Lima","America/Los_Angeles","America/Mazatlan","America/Mexico_City","America/Monterrey","America/Montevideo","America/New_York","America/Nuuk","America/Phoenix","America/Puerto_Rico","America/Regina","America/Santiago","America/Sao_Paulo","America/St_Johns","America/Tijuana","Asia/Almaty","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Chongqing","Asia/Colombo","Asia/Dhaka","Asia/Hong_Kong","Asia/Irkutsk","Asia/Jakarta","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuwait","Asia/Magadan","Asia/Muscat","Asia/Novosibirsk","Asia/Riyadh","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tokyo","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Cape_Verde","Atlantic/South_Georgia","Australia/Adelaide","Australia/Brisbane","Australia/Darwin","Australia/Hobart","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Copenhagen","Europe/Dublin","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Madrid","Europe/Minsk","Europe/Moscow","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Sarajevo","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zurich","GMT+12","Pacific/Apia","Pacific/Auckland","Pacific/Chatham","Pacific/Fakaofo","Pacific/Fiji","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Majuro","Pacific/Midway","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Port_Moresby","Pacific/Tongatapu"],"description":"The customer's applicable timezone, used for billing purposes in their local time.","isRequired":true,"uniqueKey":"applicable_timezone","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","description":"The city of the customer's billing address","example":"Woodland Hills","isRequired":true,"uniqueKey":"city.oneOf.0","typeLabel":"string"},{"type":"null","description":"The city of the customer's billing address","example":"Woodland Hills","isRequired":true,"uniqueKey":"city.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Country code of the customer's billing address. Format must be ISO 3166 (alpha-2)","enum":[null,"AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],"example":"US","isRequired":true,"uniqueKey":"country.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Country code of the customer's billing address. Format must be ISO 3166 (alpha-2)","enum":[null,"AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],"example":"US","isRequired":true,"uniqueKey":"country.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"country","typeLabel":"enum\u003cstring> | null"},"currency":{"oneOf":[{"type":"string","description":"Currency of the customer. Format must be ISO 4217","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","isRequired":true,"uniqueKey":"currency.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Currency of the customer. Format must be ISO 4217","enum":[null,"AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ETB","EUR","FJD","FKP","GBP","GEL","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","ISK","JMD","JPY","KES","KGS","KHR","KMF","KRW","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SEK","SGD","SHP","SLL","SOS","SRD","STD","SYP","SZL","THB","TJS","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"example":"USD","isRequired":true,"uniqueKey":"currency.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring> | null"},"email":{"oneOf":[{"type":"string","description":"The email of the customer","format":"email","example":"dinesh@piedpiper.example","isRequired":true,"uniqueKey":"email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","description":"The email of the customer","format":"email","example":"dinesh@piedpiper.example","isRequired":true,"uniqueKey":"email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"email","typeLabel":"string\u003cemail> | null"},"legal_name":{"oneOf":[{"type":"string","description":"The legal company name of the customer","example":"Coleman-Blair","isRequired":true,"uniqueKey":"legal_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The legal company name of the customer","example":"Coleman-Blair","isRequired":true,"uniqueKey":"legal_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"legal_name","typeLabel":"string | null"},"legal_number":{"oneOf":[{"type":"string","description":"The legal company number of the customer","example":"49-008-2965","isRequired":true,"uniqueKey":"legal_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"The legal company number of the customer","example":"49-008-2965","isRequired":true,"uniqueKey":"legal_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"legal_number","typeLabel":"string | null"},"logo_url":{"oneOf":[{"type":"string","description":"The logo URL of the customer","example":"http://hooli.com/logo.png","isRequired":true,"uniqueKey":"logo_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The logo URL of the customer","example":"http://hooli.com/logo.png","isRequired":true,"uniqueKey":"logo_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"logo_url","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","description":"The full name of the customer","example":"Gavin Belson","isRequired":true,"uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The full name of the customer","example":"Gavin Belson","isRequired":true,"uniqueKey":"name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"name","typeLabel":"string | null"},"firstname":{"oneOf":[{"type":"string","description":"First name of the customer","example":"Gavin","isRequired":true,"uniqueKey":"firstname.oneOf.0","typeLabel":"string"},{"type":"null","description":"First name of the customer","example":"Gavin","isRequired":true,"uniqueKey":"firstname.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"firstname","typeLabel":"string | null"},"lastname":{"oneOf":[{"type":"string","description":"Last name of the customer","example":"Belson","isRequired":true,"uniqueKey":"lastname.oneOf.0","typeLabel":"string"},{"type":"null","description":"Last name of the customer","example":"Belson","isRequired":true,"uniqueKey":"lastname.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"lastname","typeLabel":"string | null"},"account_type":{"type":"string","enum":["customer","partner"],"example":"customer","description":"The type of the account. It can have one of the following values:\n- `customer`: the account is a customer.\n- `partner`: the account is a partner.","isRequired":true,"uniqueKey":"account_type","typeLabel":"enum\u003cstring>"},"customer_type":{"oneOf":[{"type":"string","description":"The type of the customer. It can have one of the following values:\n- `company`: the customer is a company.\n- `individual`: the customer is an individual.","enum":["company","individual",null],"example":"company","isRequired":true,"uniqueKey":"customer_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The type of the customer. It can have one of the following values:\n- `company`: the customer is a company.\n- `individual`: the customer is an individual.","enum":["company","individual",null],"example":"company","isRequired":true,"uniqueKey":"customer_type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer_type","typeLabel":"enum\u003cstring> | null"},"phone":{"oneOf":[{"type":"string","description":"The phone number of the customer","example":"1-171-883-3711 x245","isRequired":true,"uniqueKey":"phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"The phone number of the customer","example":"1-171-883-3711 x245","isRequired":true,"uniqueKey":"phone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"phone","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","description":"The state of the customer's billing address","example":"CA","isRequired":true,"uniqueKey":"state.oneOf.0","typeLabel":"string"},{"type":"null","description":"The state of the customer's billing address","example":"CA","isRequired":true,"uniqueKey":"state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"state","typeLabel":"string | null"},"tax_identification_number":{"oneOf":[{"type":"string","description":"The tax identification number of the customer","example":"EU123456789","isRequired":true,"uniqueKey":"tax_identification_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"The tax identification number of the customer","example":"EU123456789","isRequired":true,"uniqueKey":"tax_identification_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"tax_identification_number","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","description":"The customer's timezone, used for billing purposes in their local time. Overrides the organization's timezone","enum":[null,"UTC","Africa/Algiers","Africa/Cairo","Africa/Casablanca","Africa/Harare","Africa/Johannesburg","Africa/Monrovia","Africa/Nairobi","America/Argentina/Buenos_Aires","America/Bogota","America/Caracas","America/Chicago","America/Chihuahua","America/Denver","America/Godthab","America/Guatemala","America/Guyana","America/Halifax","America/Indiana/Indianapolis","America/Juneau","America/La_Paz","America/Lima","America/Los_Angeles","America/Mazatlan","America/Mexico_City","America/Monterrey","America/Montevideo","America/New_York","America/Phoenix","America/Puerto_Rico","America/Regina","America/Santiago","America/Sao_Paulo","America/St_Johns","America/Tijuana","Asia/Almaty","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Chongqing","Asia/Colombo","Asia/Dhaka","Asia/Hong_Kong","Asia/Irkutsk","Asia/Jakarta","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuwait","Asia/Magadan","Asia/Muscat","Asia/Novosibirsk","Asia/Rangoon","Asia/Riyadh","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tokyo","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Cape_Verde","Atlantic/South_Georgia","Australia/Adelaide","Australia/Brisbane","Australia/Darwin","Australia/Hobart","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Copenhagen","Europe/Dublin","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Madrid","Europe/Minsk","Europe/Moscow","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Sarajevo","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zurich","GMT+12","Pacific/Apia","Pacific/Auckland","Pacific/Chatham","Pacific/Fakaofo","Pacific/Fiji","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Majuro","Pacific/Midway","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Port_Moresby","Pacific/Tongatapu"],"example":"America/Los_Angeles","isRequired":true,"uniqueKey":"timezone.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The customer's timezone, used for billing purposes in their local time. Overrides the organization's timezone","enum":[null,"UTC","Africa/Algiers","Africa/Cairo","Africa/Casablanca","Africa/Harare","Africa/Johannesburg","Africa/Monrovia","Africa/Nairobi","America/Argentina/Buenos_Aires","America/Bogota","America/Caracas","America/Chicago","America/Chihuahua","America/Denver","America/Godthab","America/Guatemala","America/Guyana","America/Halifax","America/Indiana/Indianapolis","America/Juneau","America/La_Paz","America/Lima","America/Los_Angeles","America/Mazatlan","America/Mexico_City","America/Monterrey","America/Montevideo","America/New_York","America/Phoenix","America/Puerto_Rico","America/Regina","America/Santiago","America/Sao_Paulo","America/St_Johns","America/Tijuana","Asia/Almaty","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Chongqing","Asia/Colombo","Asia/Dhaka","Asia/Hong_Kong","Asia/Irkutsk","Asia/Jakarta","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuwait","Asia/Magadan","Asia/Muscat","Asia/Novosibirsk","Asia/Rangoon","Asia/Riyadh","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Tokyo","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Cape_Verde","Atlantic/South_Georgia","Australia/Adelaide","Australia/Brisbane","Australia/Darwin","Australia/Hobart","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Copenhagen","Europe/Dublin","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Madrid","Europe/Minsk","Europe/Moscow","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Sarajevo","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zurich","GMT+12","Pacific/Apia","Pacific/Auckland","Pacific/Chatham","Pacific/Fakaofo","Pacific/Fiji","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Majuro","Pacific/Midway","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Port_Moresby","Pacific/Tongatapu"],"example":"America/Los_Angeles","isRequired":true,"uniqueKey":"timezone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"timezone","typeLabel":"enum\u003cstring> | null"},"url":{"oneOf":[{"type":"string","description":"The custom website URL of the customer","example":"http://hooli.com","isRequired":true,"uniqueKey":"url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The custom website URL of the customer","example":"http://hooli.com","isRequired":true,"uniqueKey":"url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"url","typeLabel":"string | null"},"zipcode":{"oneOf":[{"type":"string","description":"The zipcode of the customer's billing address","example":"91364","isRequired":true,"uniqueKey":"zipcode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The zipcode of the customer's billing address","example":"91364","isRequired":true,"uniqueKey":"zipcode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"zipcode","typeLabel":"string | null"},"payment_term":{"oneOf":[{"type":"object","description":"The structured payment term of the customer. It is `null` when the customer has no term of its own, in which case the term of its billing entity applies.","required":["term_type"],"properties":{"term_type":{"type":"string","enum":["due_on_receipt","net","end_of_month","net_end_of_month","days_end_of_month","day_of_month"],"example":"net","description":"The type of payment term. It decides which other fields are accepted and returned.","isRequired":true,"uniqueKey":"payment_term.oneOf.0.term_type","typeLabel":"enum\u003cstring>"},"days":{"type":"integer","minimum":0,"maximum":365,"example":30,"description":"The number of days. Required for `net`, `net_end_of_month` and `days_end_of_month`; not accepted for other term types.","uniqueKey":"payment_term.oneOf.0.days","typeLabel":"integer"},"day_of_month":{"type":"integer","minimum":1,"maximum":31,"example":15,"description":"The day of the month the invoice is due on. Required for `day_of_month`; not accepted for other term types.","uniqueKey":"payment_term.oneOf.0.day_of_month","typeLabel":"integer"},"month_offset":{"type":"integer","minimum":0,"maximum":12,"default":1,"example":1,"description":"The number of months after the issuing month. Only accepted for `day_of_month`. Defaults to `1` (the following month) when omitted; always returned for a `day_of_month` term.","uniqueKey":"payment_term.oneOf.0.month_offset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"payment_term.oneOf.0","typeLabel":"object"},{"type":"null","description":"The structured payment term of the customer. It is `null` when the customer has no term of its own, in which case the term of its billing entity applies.","isRequired":true,"uniqueKey":"payment_term.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment_term","typeLabel":"object | null"},"net_payment_term":{"oneOf":[{"type":"integer","description":"**Deprecated.** Use `payment_term` instead. Legacy alias of `payment_term`, expressed in days. It is the `days` of a `net` term, `0` for a `due_on_receipt` term, and `null` for every other term type or when the customer has no term of its own.","deprecated":true,"example":30,"isRequired":true,"uniqueKey":"net_payment_term.oneOf.0","typeLabel":"integer"},{"type":"null","description":"**Deprecated.** Use `payment_term` instead. Legacy alias of `payment_term`, expressed in days. It is the `days` of a `net` term, `0` for a `due_on_receipt` term, and `null` for every other term type or when the customer has no term of its own.","deprecated":true,"example":30,"isRequired":true,"uniqueKey":"net_payment_term.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"net_payment_term","typeLabel":"integer | null"},"external_salesforce_id":{"oneOf":[{"type":"string","description":"The customer ID within the Salesforce system","example":"0015p00001JQx1QAAT","isRequired":true,"uniqueKey":"external_salesforce_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The customer ID within the Salesforce system","example":"0015p00001JQx1QAAT","isRequired":true,"uniqueKey":"external_salesforce_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_salesforce_id","typeLabel":"string | null"},"created_at":{"type":"string","format":"date-time","example":"2022-04-29T08:59:51Z","description":"The date of the customer creation, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). The creation_date provides a standardized and internationally recognized timestamp for when the customer object was created","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","example":"2022-04-29T08:59:51Z","description":"The date of the customer update, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). The update_date provides a standardized and internationally recognized timestamp for when the customer object was updated","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"finalize_zero_amount_invoice":{"type":"string","enum":["inherit","skip","finalize"],"example":"inherit","description":"Specifies how invoices with a zero total amount should be handled:\n- `inherit`: (Default) Follows the organization-level configuration.\n- `finalize`: Invoices are issued and finalized even if the total amount is zero.\n- `skip`: Invoices with a total amount of zero are not finalized.","isRequired":true,"uniqueKey":"finalize_zero_amount_invoice","typeLabel":"enum\u003cstring>"},"skip_invoice_custom_sections":{"type":"boolean","example":false,"description":"Set to true to exclude all invoice custom sections from PDF generation for this customer only.","isRequired":true,"uniqueKey":"skip_invoice_custom_sections","typeLabel":"boolean"},"billing_configuration":{"type":"object","description":"Configuration specific to the payment provider, utilized for billing the customer. `provider_customer_id` and `provider_payment_methods` are only returned when the customer has a payment provider. The `sync` and `sync_with_provider` fields of the create payload are never returned.","required":["invoice_grace_period","subscription_invoice_issuing_date_anchor","subscription_invoice_issuing_date_adjustment","payment_provider","payment_provider_code","document_locale"],"properties":{"invoice_grace_period":{"oneOf":[{"type":"integer","description":"The grace period, expressed in days, for the invoice. This period refers to the additional time granted to the customer beyond the invoice due date to adjust usage and line items. It is null when the customer has no grace period of its own and falls back to the billing entity. This is a premium feature, the value is ignored without a premium license.","example":3,"isRequired":true,"uniqueKey":"billing_configuration.invoice_grace_period.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The grace period, expressed in days, for the invoice. This period refers to the additional time granted to the customer beyond the invoice due date to adjust usage and line items. It is null when the customer has no grace period of its own and falls back to the billing entity. This is a premium feature, the value is ignored without a premium license.","example":3,"isRequired":true,"uniqueKey":"billing_configuration.invoice_grace_period.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing_configuration.invoice_grace_period","typeLabel":"integer | null"},"subscription_invoice_issuing_date_anchor":{"oneOf":[{"type":"string","description":"Defines whether the issuing date follows the current billing period's end date or the next period starting date.","default":null,"enum":["current_period_end","next_period_start",null],"example":"next_period_start","isRequired":true,"uniqueKey":"billing_configuration.subscription_invoice_issuing_date_anchor.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Defines whether the issuing date follows the current billing period's end date or the next period starting date.","default":null,"enum":["current_period_end","next_period_start",null],"example":"next_period_start","isRequired":true,"uniqueKey":"billing_configuration.subscription_invoice_issuing_date_anchor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing_configuration.subscription_invoice_issuing_date_anchor","typeLabel":"enum\u003cstring> | null"},"subscription_invoice_issuing_date_adjustment":{"oneOf":[{"type":"string","description":"The logic applied on top of the subscription_invoice_issuing_date_anchor rule. You can opt to use the invoice finalization date, that includes any configured grace period.","default":null,"enum":["align_with_finalization_date","keep_anchor",null],"example":"keep_anchor","isRequired":true,"uniqueKey":"billing_configuration.subscription_invoice_issuing_date_adjustment.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The logic applied on top of the subscription_invoice_issuing_date_anchor rule. You can opt to use the invoice finalization date, that includes any configured grace period.","default":null,"enum":["align_with_finalization_date","keep_anchor",null],"example":"keep_anchor","isRequired":true,"uniqueKey":"billing_configuration.subscription_invoice_issuing_date_adjustment.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing_configuration.subscription_invoice_issuing_date_adjustment","typeLabel":"enum\u003cstring> | null"},"payment_provider":{"oneOf":[{"type":"string","description":"The payment provider utilized to initiate payments for invoices issued by Lago.\nAccepted values: `stripe`, `adyen`, `cashfree`, `flutterwave`, `gocardless`, `moneyhash` or null. This field is required if you intend to assign a `provider_customer_id`. Send null to detach the customer from its current payment provider.","enum":["stripe","adyen","cashfree","flutterwave","gocardless","moneyhash",null],"example":"stripe","isRequired":true,"uniqueKey":"billing_configuration.payment_provider.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The payment provider utilized to initiate payments for invoices issued by Lago.\nAccepted values: `stripe`, `adyen`, `cashfree`, `flutterwave`, `gocardless`, `moneyhash` or null. This field is required if you intend to assign a `provider_customer_id`. Send null to detach the customer from its current payment provider.","enum":["stripe","adyen","cashfree","flutterwave","gocardless","moneyhash",null],"example":"stripe","isRequired":true,"uniqueKey":"billing_configuration.payment_provider.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing_configuration.payment_provider","typeLabel":"enum\u003cstring> | null"},"payment_provider_code":{"oneOf":[{"type":"string","description":"Unique code used to identify a payment provider connection.","example":"stripe-eu-1","isRequired":true,"uniqueKey":"billing_configuration.payment_provider_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique code used to identify a payment provider connection.","example":"stripe-eu-1","isRequired":true,"uniqueKey":"billing_configuration.payment_provider_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing_configuration.payment_provider_code","typeLabel":"string | null"},"document_locale":{"oneOf":[{"type":"string","description":"The document locale, specified in the ISO 639-1 format. This field represents the language or locale used for the documents issued by Lago","example":"fr","isRequired":true,"uniqueKey":"billing_configuration.document_locale.oneOf.0","typeLabel":"string"},{"type":"null","description":"The document locale, specified in the ISO 639-1 format. This field represents the language or locale used for the documents issued by Lago","example":"fr","isRequired":true,"uniqueKey":"billing_configuration.document_locale.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing_configuration.document_locale","typeLabel":"string | null"},"provider_payment_methods":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"billing_configuration.provider_payment_methods.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Specifies the available payment methods that can be used for this customer when `payment_provider` is set to `stripe`. The `provider_payment_methods` field is an array that allows multiple payment options to be defined. If this field is not explicitly set, the payment methods will be set to `card`. For now, possible values are `card`, `sepa_debit`, `us_bank_account`, `bacs_debit`, `boleto`, `link`, `crypto` and `customer_balance`. Note that when `link` is selected, `card` should also be provided in the array. When `customer_balance` is selected, no other payment can be selected.","example":["card","sepa_debit","us_bank_account","bacs_debit","link","boleto","crypto","customer_balance"],"uniqueKey":"billing_configuration.provider_payment_methods.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Specifies the available payment methods that can be used for this customer when `payment_provider` is set to `stripe`. The `provider_payment_methods` field is an array that allows multiple payment options to be defined. If this field is not explicitly set, the payment methods will be set to `card`. For now, possible values are `card`, `sepa_debit`, `us_bank_account`, `bacs_debit`, `boleto`, `link`, `crypto` and `customer_balance`. Note that when `link` is selected, `card` should also be provided in the array. When `customer_balance` is selected, no other payment can be selected.","example":["card","sepa_debit","us_bank_account","bacs_debit","link","boleto","crypto","customer_balance"],"uniqueKey":"billing_configuration.provider_payment_methods.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_configuration.provider_payment_methods","typeLabel":"string[] | null"},"provider_customer_id":{"oneOf":[{"type":"string","description":"The customer ID within the payment provider's system. It is `null` until the customer record exists in that system.","example":"cus_12345","uniqueKey":"billing_configuration.provider_customer_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The customer ID within the payment provider's system. It is `null` until the customer record exists in that system.","example":"cus_12345","uniqueKey":"billing_configuration.provider_customer_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_configuration.provider_customer_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"billing_configuration","typeLabel":"object"},"shipping_address":{"type":"object","description":"The shipping address of the customer.","properties":{"address_line1":{"oneOf":[{"type":"string","description":"The first line of the shipping address","example":"5230 Penfield Ave","uniqueKey":"shipping_address.address_line1.oneOf.0","typeLabel":"string"},{"type":"null","description":"The first line of the shipping address","example":"5230 Penfield Ave","uniqueKey":"shipping_address.address_line1.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.address_line1","typeLabel":"string | null"},"address_line2":{"oneOf":[{"type":"string","description":"The second line of the shipping address","example":null,"uniqueKey":"shipping_address.address_line2.oneOf.0","typeLabel":"string"},{"type":"null","description":"The second line of the shipping address","example":null,"uniqueKey":"shipping_address.address_line2.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.address_line2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","description":"The city of the customer's shipping address","example":"Woodland Hills","uniqueKey":"shipping_address.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"The city of the customer's shipping address","example":"Woodland Hills","uniqueKey":"shipping_address.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Country code of the customer's shipping address. Format must be ISO 3166 (alpha-2)","enum":[null,"AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],"example":"US","uniqueKey":"shipping_address.country.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Country code of the customer's shipping address. Format must be ISO 3166 (alpha-2)","enum":[null,"AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],"example":"US","uniqueKey":"shipping_address.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.country","typeLabel":"enum\u003cstring> | null"},"state":{"oneOf":[{"type":"string","description":"The state of the customer's shipping address","example":"CA","uniqueKey":"shipping_address.state.oneOf.0","typeLabel":"string"},{"type":"null","description":"The state of the customer's shipping address","example":"CA","uniqueKey":"shipping_address.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.state","typeLabel":"string | null"},"zipcode":{"oneOf":[{"type":"string","description":"The zipcode of the customer's shipping address","example":"91364","uniqueKey":"shipping_address.zipcode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The zipcode of the customer's shipping address","example":"91364","uniqueKey":"shipping_address.zipcode.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.zipcode","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"shipping_address","typeLabel":"object"},"metadata":{"type":"array","items":{"type":"object","description":"Set of key-value pairs that you can attach to a customer. This can be useful for storing additional information about the customer in a structured format","required":["lago_id","key","value","display_in_invoice","created_at"],"properties":{"lago_id":{"type":"string","description":"A unique identifier for the customer metadata object in the Lago application. Can be used to update a key-value pair","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"metadata.items.[INDEX].lago_id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"The metadata object key","example":"Purchase Order","isRequired":true,"uniqueKey":"metadata.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The metadata object value","example":"123456789","isRequired":true,"uniqueKey":"metadata.items.[INDEX].value","typeLabel":"string"},"display_in_invoice":{"type":"boolean","description":"Determines whether the item or information should be displayed in the invoice. If set to true, the item or information will be included and visible in the generated invoice. If set to false, the item or information will be excluded and not displayed in the invoice.","example":true,"isRequired":true,"uniqueKey":"metadata.items.[INDEX].display_in_invoice","typeLabel":"boolean"},"created_at":{"type":"string","description":"The date of the metadata object creation, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). The creation_date provides a standardized and internationally recognized timestamp for when the metadata object was created","format":"date-time","example":"2022-04-29T08:59:51Z","isRequired":true,"uniqueKey":"metadata.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"metadata.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object[]"},"integration_customers":{"type":"array","items":{"type":"object","required":["lago_id","type","external_customer_id","integration_code","code","is_default","category"],"description":"Configuration specific to the accounting and tax integrations. This object contains settings and parameters necessary for syncing documents and payments.","properties":{"lago_id":{"type":"string","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","description":"A unique identifier for the integration customer object in the Lago application.","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].lago_id","typeLabel":"string\u003cuuid>"},"type":{"type":"string","example":"netsuite","description":"The integration type used for accounting, tax and CRM syncs.\nAccepted values: `netsuite`, `anrok`, `avalara`, `xero`, `hubspot`, `salesforce`.","enum":["netsuite","anrok","avalara","xero","hubspot","salesforce"],"isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"integration_code":{"type":"string","example":"netsuite-eu-1","description":"Unique code used to identify an integration connection.","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].integration_code","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"Unique code identifying this integration customer. It defaults to the code of the integration connection.","example":"netsuite-eu-1","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique code identifying this integration customer. It defaults to the code of the integration connection.","example":"netsuite-eu-1","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].code","typeLabel":"string | null"},"is_default":{"type":"boolean","example":true,"description":"Whether this integration customer is the default one of its category for the customer.","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].is_default","typeLabel":"boolean"},"category":{"oneOf":[{"type":"string","description":"The category of the integration connection. It is derived from the integration type.\nAccepted values: `payment`, `tax`, `accounting`, `crm`.","enum":["payment","tax","accounting","crm",null],"example":"accounting","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].category.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The category of the integration connection. It is derived from the integration type.\nAccepted values: `payment`, `tax`, `accounting`, `crm`.","enum":["payment","tax","accounting","crm",null],"example":"accounting","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].category.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].category","typeLabel":"enum\u003cstring> | null"},"external_customer_id":{"oneOf":[{"type":"string","description":"The customer ID within the integration's system. It is `null` when the customer has not been created in the integration's system yet.","example":"cus_12345","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].external_customer_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The customer ID within the integration's system. It is `null` when the customer has not been created in the integration's system yet.","example":"cus_12345","isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].external_customer_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"integration_customers.items.[INDEX].external_customer_id","typeLabel":"string | null"},"sync_with_provider":{"oneOf":[{"type":"boolean","description":"Set this field to `true` if you want to create a customer record in the integration's system. This option is applicable only when the `external_customer_id` is null and the `sync_with_provider` field is set to `true`. By default, the value is set to `false`","example":true,"uniqueKey":"integration_customers.items.[INDEX].sync_with_provider.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Set this field to `true` if you want to create a customer record in the integration's system. This option is applicable only when the `external_customer_id` is null and the `sync_with_provider` field is set to `true`. By default, the value is set to `false`","example":true,"uniqueKey":"integration_customers.items.[INDEX].sync_with_provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"integration_customers.items.[INDEX].sync_with_provider","typeLabel":"boolean | null"},"subsidiary_id":{"type":"string","example":"2","description":"This optional field is needed only when working with `netsuite` connection.","uniqueKey":"integration_customers.items.[INDEX].subsidiary_id","typeLabel":"string"},"targeted_object":{"oneOf":[{"type":"string","description":"This optional field is present only when working with `hubspot` connection.","example":"contacts","uniqueKey":"integration_customers.items.[INDEX].targeted_object.oneOf.0","typeLabel":"string"},{"type":"null","description":"This optional field is present only when working with `hubspot` connection.","example":"contacts","uniqueKey":"integration_customers.items.[INDEX].targeted_object.oneOf.1","typeLabel":"null"}],"uniqueKey":"integration_customers.items.[INDEX].targeted_object","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"This optional field is present only when working with `hubspot` connection.","example":"dinesh@piedpiper.example","uniqueKey":"integration_customers.items.[INDEX].email.oneOf.0","typeLabel":"string"},{"type":"null","description":"This optional field is present only when working with `hubspot` connection.","example":"dinesh@piedpiper.example","uniqueKey":"integration_customers.items.[INDEX].email.oneOf.1","typeLabel":"null"}],"uniqueKey":"integration_customers.items.[INDEX].email","typeLabel":"string | null"}},"uniqueKey":"integration_customers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"integration_customers","typeLabel":"object[]"},"taxes":{"description":"List of customer taxes","type":"array","items":{"type":"object","required":["lago_id","name","code","description","rate","applied_to_organization","created_at"],"properties":{"lago_id":{"type":"string","format":"uuid","description":"Unique identifier of the tax, created by Lago.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"taxes.items.[INDEX].lago_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the tax.","example":"TVA","isRequired":true,"uniqueKey":"taxes.items.[INDEX].name","typeLabel":"string"},"code":{"type":"string","description":"Unique code used to identify the tax associated with the API request.","example":"french_standard_vat","isRequired":true,"uniqueKey":"taxes.items.[INDEX].code","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Internal description of the tax.","example":"French standard VAT","isRequired":true,"uniqueKey":"taxes.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal description of the tax.","example":"French standard VAT","isRequired":true,"uniqueKey":"taxes.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"taxes.items.[INDEX].description","typeLabel":"string | null"},"rate":{"type":"number","description":"The percentage rate of the tax.","example":20,"isRequired":true,"uniqueKey":"taxes.items.[INDEX].rate","typeLabel":"number"},"applied_to_organization":{"type":"boolean","deprecated":true,"description":"**Deprecated.** This field will be removed in a future version. When set to true, it applies the tax to the organization's default billing entity. To apply or remove a tax from any billing entity (including the default one), please use the `PUT /billing_entities/:code` endpoint instead.","example":true,"isRequired":true,"uniqueKey":"taxes.items.[INDEX].applied_to_organization","typeLabel":"boolean"},"created_at":{"type":"string","format":"date-time","description":"Creation date of the tax.","example":"2023-07-06T14:35:58Z","isRequired":true,"uniqueKey":"taxes.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"applied_to_billing_entities_codes":{"type":"array","items":{"type":"string","uniqueKey":"taxes.items.[INDEX].applied_to_billing_entities_codes.items.[INDEX]","typeLabel":"string"},"description":"The codes of the billing entities the tax is applied to, sorted alphabetically. It is empty when the tax is only attached to customers. This field is only returned by the tax endpoints, not by taxes nested in another object.","example":["acme_corp","foo_bar"],"uniqueKey":"taxes.items.[INDEX].applied_to_billing_entities_codes","typeLabel":"string[]"}},"uniqueKey":"taxes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"taxes","typeLabel":"object[]"},"applicable_invoice_custom_sections":{"description":"The customer's invoice custom sections used for generating invoices.","type":"array","items":{"type":"object","required":["lago_id","name","code"],"properties":{"lago_id":{"type":"string","format":"uuid","description":"Unique identifier for the invoice custom section in the Lago application, generated by Lago to ensure record uniqueness within the system.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].lago_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"Name of the invoice custom section.","example":"EU Bank Details","isRequired":true,"uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].name","typeLabel":"string"},"code":{"type":"string","description":"Unique code identifying the invoice custom section for the API request.","example":"eu_bank_details","isRequired":true,"uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].code","typeLabel":"string"},"description":{"type":"string","description":"Internal description of the invoice custom section.","example":"This section contains the bank details for EU customers.","uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].description","typeLabel":"string"},"details":{"type":"string","description":"The value shown on the invoice PDF.","example":"Bank Name: Lago Bank, IBAN: FR7630004000031234567890143","uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].details","typeLabel":"string"},"display_name":{"type":"string","description":"The name of the invoice custom section displayed on the invoice.","example":"Bank Details:","uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].display_name","typeLabel":"string"},"applied_to_organization":{"type":"boolean","deprecated":true,"description":"**Deprecated.** This field will be removed in a future version. When set to true, it applies the invoice custom section to the organization's default billing entity. To apply or remove an invoice custom section from any billing entity (including the default one), please use the `PUT /billing_entities/:code` endpoint instead.","example":true,"uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].applied_to_organization","typeLabel":"boolean"},"organization_id":{"type":"string","format":"uuid","description":"Unique identifier for the organization associated with the invoice custom section.","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].organization_id","typeLabel":"string\u003cuuid>"},"created_at":{"type":"string","format":"date-time","description":"Creation date of the tax.","example":"2023-07-06T14:35:58Z","uniqueKey":"applicable_invoice_custom_sections.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"applicable_invoice_custom_sections.items.[INDEX]","typeLabel":"object"},"uniqueKey":"applicable_invoice_custom_sections","typeLabel":"object[]"},"error_details":{"description":"List of errors with details that might have been raised while processing background actions for the customer","type":"array","items":{"type":"object","required":["lago_id","error_code","details"],"properties":{"lago_id":{"oneOf":[{"type":"string","description":"Unique identifier assigned to the error_detail within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the error's record within the Lago system.","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"error_details.items.[INDEX].lago_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"Unique identifier assigned to the error_detail within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the error's record within the Lago system.","format":"uuid","example":"1a901a90-1a90-1a90-1a90-1a901a901a90","isRequired":true,"uniqueKey":"error_details.items.[INDEX].lago_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error_details.items.[INDEX].lago_id","typeLabel":"string\u003cuuid> | null"},"error_code":{"type":"string","description":"Code that specifies part of the application / connection, where the error originally happened","example":"tax_error","isRequired":true,"uniqueKey":"error_details.items.[INDEX].error_code","typeLabel":"string"},"details":{"type":"object","description":"Key value list of more elaborated error detail, where by the key of error_code an external service error details are stored","example":{"tax_error":"taxDateTooFarInFuture"},"additionalProperties":{"type":"string","uniqueKey":"error_details.items.[INDEX].details.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"error_details.items.[INDEX].details","typeLabel":"object"}},"uniqueKey":"error_details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error_details","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object","example":{"title":"Example","value":{"lago_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","sequential_id":1,"slug":"LAG-1234-001","external_id":"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba","billing_entity_code":"acme_corp","address_line1":"5230 Penfield Ave","address_line2":null,"applicable_timezone":"America/Los_Angeles","city":"Woodland Hills","country":"US","currency":"USD","email":"dinesh@piedpiper.example","legal_name":"Coleman-Blair","legal_number":"49-008-2965","logo_url":"http://hooli.com/logo.png","name":"Gavin Belson","firstname":"Gavin","lastname":"Belson","account_type":"customer","customer_type":"company","phone":"1-171-883-3711 x245","state":"CA","tax_identification_number":"EU123456789","timezone":"America/Los_Angeles","url":"http://hooli.com","zipcode":"91364","payment_term":{"term_type":"net","days":30,"day_of_month":15,"month_offset":1},"net_payment_term":30,"external_salesforce_id":"0015p00001JQx1QAAT","created_at":"2022-04-29T08:59:51Z","updated_at":"2022-04-29T08:59:51Z","finalize_zero_amount_invoice":"inherit","skip_invoice_custom_sections":false,"billing_configuration":{"invoice_grace_period":3,"subscription_invoice_issuing_date_anchor":"next_period_start","subscription_invoice_issuing_date_adjustment":"keep_anchor","payment_provider":"stripe","payment_provider_code":"stripe-eu-1","document_locale":"fr","provider_payment_methods":["card","sepa_debit","us_bank_account","bacs_debit","link","boleto","crypto","customer_balance"],"provider_customer_id":"cus_12345"},"shipping_address":{"address_line1":"5230 Penfield Ave","address_line2":null,"city":"Woodland Hills","country":"US","state":"CA","zipcode":"91364"},"metadata":[{"lago_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","key":"Purchase Order","value":"123456789","display_in_invoice":true,"created_at":"2022-04-29T08:59:51Z"}],"integration_customers":[{"lago_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","type":"netsuite","integration_code":"netsuite-eu-1","code":"netsuite-eu-1","is_default":true,"category":"accounting","external_customer_id":"cus_12345","sync_with_provider":true,"subsidiary_id":"2","targeted_object":"contacts","email":"dinesh@piedpiper.example"}],"taxes":[{"lago_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","name":"TVA","code":"french_standard_vat","description":"French standard VAT","rate":20,"applied_to_organization":true,"created_at":"2023-07-06T14:35:58Z","applied_to_billing_entities_codes":["acme_corp","foo_bar"]}],"applicable_invoice_custom_sections":[{"lago_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","name":"EU Bank Details","code":"eu_bank_details","description":"This section contains the bank details for EU customers.","details":"Bank Name: Lago Bank, IBAN: FR7630004000031234567890143","display_name":"Bank Details:","applied_to_organization":true,"organization_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","created_at":"2023-07-06T14:35:58Z"}],"error_details":[{"lago_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","error_code":"tax_error","details":{"tax_error":"taxDateTooFarInFuture"}}]}}},"originalFileLocation":"https://swagger.getlago.com/openapi.yaml"},"subdomain":"lago","siteName":"Lago","title":"The customer object - Lago","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-28T09:36:37.753Z","originalFileLocation":"api-reference/customers/object.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.\">\u003cmeta data-mint-head name=\"keywords\" content=\"Lago API, billing API, usage metering API, OpenAPI, billing SDK, Lago MCP\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lago\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"The customer object - Lago\">\u003cmeta data-mint-head property=\"og:description\" content=\"This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lago\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://getlago.com/docs/api-reference/customers/object\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lago.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=The+customer+object\u0026amp;description=This+object+represents+a+customer+of+your+business.+It+lets+you+create+or+update+a+customer%2C+but+also+track+usage+and+create+invoices+for+the+same+customer.\u0026amp;theme=c87c02c0bc02f3449659acb9\u0026amp;signature=7387c2528bfe6ac97e17062523a10d4edd65024d7f38955dd57253ddd4150d25\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"The customer object - Lago\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lago.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=The+customer+object\u0026amp;description=This+object+represents+a+customer+of+your+business.+It+lets+you+create+or+update+a+customer%2C+but+also+track+usage+and+create+invoices+for+the+same+customer.\u0026amp;theme=c87c02c0bc02f3449659acb9\u0026amp;signature=7387c2528bfe6ac97e17062523a10d4edd65024d7f38955dd57253ddd4150d25\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lago/doBC1oa9Nrw1GvKX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lago\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006CFA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://getlago.com/docs/api-reference/customers/object\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/customers/object.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://getlago.com/#organization\",\"name\":\"Lago\",\"legalName\":\"Get Lago Corp.\",\"url\":\"https://getlago.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://getlago.com/docs/logo/light.svg\"},\"sameAs\":[\"https://github.com/getlago\",\"https://www.linkedin.com/company/getlago\",\"https://x.com/GetLago\",\"https://www.youtube.com/channel/UCp6ltp7n3SgDVsmerJ7O7ZA\"]},{\"@type\":\"WebSite\",\"@id\":\"https://getlago.com/docs#website\",\"name\":\"Lago\",\"url\":\"https://getlago.com/docs\",\"publisher\":{\"@id\":\"https://getlago.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://getlago.com/docs/api-reference/customers/object#webpage\",\"url\":\"https://getlago.com/docs/api-reference/customers/object\",\"name\":\"The customer object\",\"description\":\"This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.\",\"dateModified\":\"2026-01-28T09:36:37.753Z\",\"isPartOf\":{\"@id\":\"https://getlago.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://getlago.com/docs/api-reference/customers/object#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://getlago.com/docs/api-reference/customers/object#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://getlago.com/docs/api-reference/intro\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The customer object\",\"item\":\"https://getlago.com/docs/api-reference/customers/object\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://getlago.com/docs/api-reference/customers/object#apireference\",\"headline\":\"The customer object\",\"name\":\"The customer object\",\"description\":\"This object represents a customer of your business. It lets you create or update a customer, but also track usage and create invoices for the same customer.\",\"url\":\"https://getlago.com/docs/api-reference/customers/object\",\"mainEntityOfPage\":{\"@id\":\"https://getlago.com/docs/api-reference/customers/object#webpage\"},\"dateModified\":\"2026-01-28T09:36:37.753Z\",\"publisher\":{\"@id\":\"https://getlago.com/#organization\"},\"isPartOf\":{\"@id\":\"https://getlago.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lago\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lago\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/customers/object.md","siteName":"Lago","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://getlago.com/blog"},{"anchor":"Community","icon":"slack","href":"https://getlago.com/slack"},{"anchor":"GitHub","icon":"github","href":"https://github.com/getlago/lago"},{"anchor":"Status","icon":"signal-bars","href":"https://status.getlago.com/"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/welcome"}]},{"tab":"Guide","pages":[{"title":"Guide","href":"/guide/introduction/welcome-to-lago"}]},{"tab":"API References","groups":[{"group":"API Reference","pages":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/api-reference/intro"},{"title":"API standards","href":"/api-reference/api-standards"},{"title":"API versioning and deprecation policy","href":"/api-reference/versioning"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Pagination","href":"/api-reference/pagination"},{"title":"Rate limits","href":"/api-reference/rate-limits"}]},{"group":"Add-ons","pages":[{"title":"The add-on object","href":"/api-reference/add-ons/add-on-object"},{"openapi":"POST /add_ons","title":"Create an add-on","href":"/api-reference/add-ons/create"},{"openapi":"PUT /add_ons/{code}","title":"Update an add-on","href":"/api-reference/add-ons/update"},{"openapi":"DELETE /add_ons/{code}","title":"Delete an add-on","href":"/api-reference/add-ons/destroy"},{"openapi":"GET /add_ons/{code}","title":"Retrieve an add-on","href":"/api-reference/add-ons/get-specific"},{"openapi":"GET /add_ons","title":"List all add-ons","href":"/api-reference/add-ons/get-all"}]},{"group":"Alerts","pages":[{"title":"The alert object","href":"/api-reference/alerts/alert-object"},{"openapi":"POST /subscriptions/{external_id}/alerts","title":"Create an alert","href":"/api-reference/alerts/create"},{"openapi":"PUT /subscriptions/{external_id}/alerts/{code}","title":"Update an alert","href":"/api-reference/alerts/update"},{"openapi":"DELETE /subscriptions/{external_id}/alerts/{code}","title":"Delete an alert","href":"/api-reference/alerts/delete"},{"openapi":"GET /subscriptions/{external_id}/alerts/{code}","title":"Retrieve an alert","href":"/api-reference/alerts/get-specific"},{"openapi":"GET /subscriptions/{external_id}/alerts","title":"List all alerts","href":"/api-reference/alerts/get-all"}]},{"group":"Audit logs","pages":[{"title":"The activity log object","href":"/api-reference/audit-logs/activity-logs-object"},{"openapi":"GET /activity_logs","title":"List all activity logs","href":"/api-reference/audit-logs/get-all-activity-logs"},{"openapi":"GET /activity_logs/{activity_id}","title":"Retrieve an activity log","href":"/api-reference/audit-logs/get-specific-activity-log"},{"title":"The API log object","href":"/api-reference/audit-logs/api-logs-object"},{"openapi":"GET /api_logs","title":"List all API logs","href":"/api-reference/audit-logs/get-all-api-logs"},{"openapi":"GET /api_logs/{request_id}","title":"Retrieve an API log","href":"/api-reference/audit-logs/get-specific-api-log"}]},{"group":"Billable metrics","pages":[{"title":"The billable metric object","href":"/api-reference/billable-metrics/object"},{"title":"Create a billable metric","openapi":"POST /billable_metrics","href":"/api-reference/billable-metrics/create"},{"title":"Update a billable metric","openapi":"PUT /billable_metrics/{code}","href":"/api-reference/billable-metrics/update"},{"openapi":"DELETE /billable_metrics/{code}","title":"Delete a billable metric","href":"/api-reference/billable-metrics/destroy"},{"openapi":"GET /billable_metrics/{code}","title":"Retrieve a billable metric","href":"/api-reference/billable-metrics/get-specific"},{"openapi":"GET /billable_metrics","title":"List all billable metrics","href":"/api-reference/billable-metrics/get-all"}]},{"group":"Billing entities","pages":[{"title":"The billing entity object","href":"/api-reference/billing-entities/object"},{"title":"Create a billing entity","openapi":"POST /billing_entities","href":"/api-reference/billing-entities/create"},{"title":"Update a billing entity","openapi":"PUT /billing_entities/{code}","href":"/api-reference/billing-entities/update"},{"title":"Retrieve a billing entity","openapi":"GET /billing_entities/{code}","href":"/api-reference/billing-entities/get-specific"},{"title":"List all billing entities","openapi":"GET /billing_entities","href":"/api-reference/billing-entities/get-all"}]},{"group":"Coupons","pages":[{"title":"The coupon object","href":"/api-reference/coupons/coupon-object"},{"openapi":"POST /coupons","title":"Create a coupon","href":"/api-reference/coupons/create"},{"openapi":"PUT /coupons/{code}","title":"Update a coupon","href":"/api-reference/coupons/update"},{"openapi":"DELETE /coupons/{code}","title":"Delete a coupon","href":"/api-reference/coupons/destroy"},{"openapi":"GET /coupons/{code}","title":"Retrieve a coupon","href":"/api-reference/coupons/get-specific"},{"openapi":"GET /coupons","title":"List all coupons","href":"/api-reference/coupons/get-all"},{"title":"The applied coupon object","href":"/api-reference/coupons/applied-coupon-object"},{"openapi":"POST /applied_coupons","title":"Apply a coupon","href":"/api-reference/coupons/apply"},{"openapi":"DELETE /customers/{external_customer_id}/applied_coupons/{applied_coupon_id}","title":"Delete an applied coupon","href":"/api-reference/coupons/destroy-applied-coupon"},{"openapi":"GET /applied_coupons","title":"List all applied coupons","href":"/api-reference/coupons/get-all-applied"}]},{"group":"Credit notes","pages":[{"title":"The credit note object","href":"/api-reference/credit-notes/credit-note-object"},{"openapi":"POST /credit_notes/estimate","title":"Estimate a credit note","href":"/api-reference/credit-notes/estimate"},{"openapi":"POST /credit_notes","title":"Create a credit note","href":"/api-reference/credit-notes/create"},{"openapi":"POST /credit_notes/{lago_id}/download","title":"Download a credit note","href":"/api-reference/credit-notes/download"},{"openapi":"PUT /credit_notes/{lago_id}","title":"Update a credit note","href":"/api-reference/credit-notes/update"},{"openapi":"PUT /credit_notes/{lago_id}/void","title":"Void available credit","href":"/api-reference/credit-notes/void"},{"openapi":"GET /credit_notes/{lago_id}","title":"Retrieve a credit note","href":"/api-reference/credit-notes/get-specific"},{"openapi":"GET /credit_notes","title":"List all credit notes","href":"/api-reference/credit-notes/get-all"},{"group":"Metadata","pages":[{"openapi":"POST /credit_notes/{lago_id}/metadata","title":"Replace all metadata","href":"/api-reference/credit-notes/metadata/create-metadata-cn"},{"openapi":"PATCH /credit_notes/{lago_id}/metadata","title":"Update metadata","href":"/api-reference/credit-notes/metadata/update-metadata-cn"},{"openapi":"DELETE /credit_notes/{lago_id}/metadata/{key}","title":"Delete a metadata","href":"/api-reference/credit-notes/metadata/delete-a-metadata-cn"},{"openapi":"DELETE /credit_notes/{lago_id}/metadata","title":"Delete all metadata","href":"/api-reference/credit-notes/metadata/delete-all-metadata-cn"}]}]},{"group":"Customer usage","pages":[{"title":"The customer usage object","href":"/api-reference/customer-usage/customer-usage-object"},{"openapi":"GET /analytics/usage","title":"Retrieve usages","href":"/api-reference/customer-usage/usages"},{"openapi":"GET /customers/{external_customer_id}/current_usage","title":"Retrieve current usage","href":"/api-reference/customer-usage/get-current"},{"openapi":"GET /customers/{external_customer_id}/projected_usage","title":"Retrieve projected usage","href":"/api-reference/customer-usage/get-projected"},{"openapi":"GET /customers/{external_customer_id}/past_usage","title":"Retrieve past usage","description":"Fetch historical customer usage data for closed billing periods.","href":"/api-reference/customer-usage/get-past"}]},{"group":"Customers","pages":[{"title":"The customer object","href":"/api-reference/customers/object"},{"openapi":"POST /customers","title":"Create a customer","description":"This endpoint creates a customer. When a customer with the same `external_id` already exists, it is updated instead, and only the fields present in the payload are changed.","href":"/api-reference/customers/create"},{"openapi":"POST /customers","title":"Update a customer","href":"/api-reference/customers/update"},{"openapi":"POST /customers/{external_customer_id}/checkout_url","title":"Regenerate checkout URL","href":"/api-reference/customers/psp-checkout-url"},{"openapi":"DELETE /customers/{external_customer_id}","title":"Delete a customer","href":"/api-reference/customers/delete"},{"openapi":"GET /customers/{external_customer_id}","title":"Retrieve a customer","href":"/api-reference/customers/get-specific"},{"openapi":"GET /customers","title":"List all customers","href":"/api-reference/customers/get-all"},{"openapi":"GET /customers/{external_customer_id}/portal_url","title":"Retrieve customer portal URL","href":"/api-reference/customers/customer-portal"}]},{"group":"Entitlements","pages":[{"title":"The feature object","href":"/api-reference/entitlements/features/feature-object"},{"openapi":"POST /features","title":"Create a feature","href":"/api-reference/entitlements/features/create-feature"},{"openapi":"PUT /features/{code}","title":"Update a feature","href":"/api-reference/entitlements/features/update-feature"},{"openapi":"DELETE /features/{code}","title":"Delete a feature","href":"/api-reference/entitlements/features/delete-feature"},{"openapi":"DELETE /features/{code}/privileges/{privilege_code}","title":"Delete a feature privilege","href":"/api-reference/entitlements/features/delete-privilege"},{"openapi":"GET /features/{code}","title":"Retrieve a feature","href":"/api-reference/entitlements/features/get-feature"},{"openapi":"GET /features","title":"List all features","href":"/api-reference/entitlements/features/get-all-features"},{"title":"The plan entitlement object","href":"/api-reference/entitlements/plan-entitlements/plan-entitlement-object"},{"openapi":"POST /plans/{code}/entitlements","title":"Create plan entitlements","href":"/api-reference/entitlements/plan-entitlements/create-plan-entitlement"},{"openapi":"PATCH /plans/{code}/entitlements","title":"Update plan entitlements","href":"/api-reference/entitlements/plan-entitlements/update-plan-entitlement"},{"openapi":"DELETE /plans/{code}/entitlements/{feature_code}","title":"Delete a plan entitlement","href":"/api-reference/entitlements/plan-entitlements/delete-plan-entitlement"},{"openapi":"DELETE /plans/{code}/entitlements/{feature_code}/privileges/{privilege_code}","title":"Delete a plan entitlement privilege","href":"/api-reference/entitlements/plan-entitlements/delete-plan-entitlement-privilege"},{"openapi":"GET /plans/{code}/entitlements/{feature_code}","title":"Retrieve a plan entitlement","href":"/api-reference/entitlements/plan-entitlements/get-specific-plan-entitlement"},{"openapi":"GET /plans/{code}/entitlements","title":"List plan entitlements","href":"/api-reference/entitlements/plan-entitlements/get-all-plan-entitlements"},{"title":"The subscription entitlement object","href":"/api-reference/entitlements/subscription-entitlements/subscription-entitlement-object"},{"openapi":"PATCH /subscriptions/{external_id}/entitlements","title":"Update subscription entitlements","href":"/api-reference/entitlements/subscription-entitlements/update-subscription-entitlement"},{"openapi":"DELETE /subscriptions/{external_id}/entitlements/{feature_code}","title":"Delete a subscription entitlement","href":"/api-reference/entitlements/subscription-entitlements/delete-subscription-entitlement"},{"openapi":"DELETE /subscriptions/{external_id}/entitlements/{feature_code}/privileges/{privilege_code}","title":"Delete a subscription entitlement privilege","href":"/api-reference/entitlements/subscription-entitlements/delete-subscription-entitlement-privilege"},{"openapi":"GET /subscriptions/{external_id}/entitlements","title":"List subscription entitlements","href":"/api-reference/entitlements/subscription-entitlements/get-all-subscription-entitlements"}]},{"group":"Events","pages":[{"title":"The event object","href":"/api-reference/events/event-object"},{"openapi":"POST /events","title":"Send usage event","href":"/api-reference/events/usage"},{"openapi":"POST /events/batch","title":"Batch usage events","href":"/api-reference/events/batch"},{"openapi":"POST /events/estimate_fees","title":"Estimate an upcoming fee","href":"/api-reference/events/estimated-fee"},{"openapi":"GET /events/{transaction_id}","title":"Retrieve an event","href":"/api-reference/events/get-specific"},{"openapi":"GET /events","title":"List all events","href":"/api-reference/events/list-events"}]},{"group":"Fees","pages":[{"title":"The fee object","href":"/api-reference/fees/fee-object"},{"openapi":"PUT /fees/{lago_id}","title":"Update a fee","href":"/api-reference/fees/update-fee"},{"openapi":"DELETE /fees/{lago_id}","title":"Delete a fee","href":"/api-reference/fees/destroy-fee"},{"openapi":"GET /fees/{lago_id}","title":"Retrieve a fee","href":"/api-reference/fees/retrieve-fee"},{"openapi":"GET /fees","title":"List all fees","href":"/api-reference/fees/list-fees"}]},{"group":"Governance","pages":[{"title":"The governance entity object","href":"/api-reference/governance/entity-object"},{"openapi":"POST /usage_attribution_types","title":"Create a governance entity","href":"/api-reference/governance/create-entity"},{"openapi":"PUT /usage_attribution_types/{code}","title":"Update a governance entity","href":"/api-reference/governance/update-entity"},{"openapi":"DELETE /usage_attribution_types/{code}","title":"Delete a governance entity","href":"/api-reference/governance/delete-entity"},{"openapi":"GET /usage_attribution_types/{code}","title":"Retrieve a governance entity","href":"/api-reference/governance/get-specific-entity"},{"openapi":"GET /usage_attribution_types","title":"List all governance entities","href":"/api-reference/governance/get-all-entities"},{"title":"The attributed usage object","href":"/api-reference/governance/attributed-usage-object"},{"openapi":"GET /customers/{external_customer_id}/attributed_usage","title":"Retrieve attributed usage","href":"/api-reference/governance/get-attributed-usage"}]},{"group":"Invoices","pages":[{"title":"The invoice object","href":"/api-reference/invoices/invoice-object"},{"openapi":"POST /invoices","title":"Create a one-off invoice","href":"/api-reference/invoices/create-oneoff"},{"openapi":"POST /invoices/preview","title":"Preview an invoice","href":"/api-reference/invoices/preview"},{"openapi":"POST /invoices/{lago_id}/download","title":"Download an invoice","href":"/api-reference/invoices/download"},{"openapi":"POST /invoices/{lago_id}/void","title":"Void an invoice","href":"/api-reference/invoices/void"},{"openapi":"POST /invoices/{lago_id}/retry","title":"Retry an invoice finalization","href":"/api-reference/invoices/retry_finalization"},{"openapi":"POST /invoices/{lago_id}/retry_payment","title":"Retry an invoice payment","href":"/api-reference/invoices/retry"},{"openapi":"POST /invoices/{lago_id}/payment_url","title":"Generate a payment URL","href":"/api-reference/invoices/payment-url"},{"openapi":"PUT /invoices/{lago_id}/refresh","title":"Refresh an invoice","href":"/api-reference/invoices/refresh"},{"openapi":"PUT /invoices/{lago_id}/finalize","title":"Finalize an invoice","href":"/api-reference/invoices/finalize"},{"openapi":"PUT /invoices/{lago_id}","title":"Update an invoice","href":"/api-reference/invoices/update"},{"openapi":"GET /invoices/{lago_id}","title":"Retrieve an invoice","href":"/api-reference/invoices/get-specific"},{"openapi":"GET /invoices","title":"List all invoices","href":"/api-reference/invoices/get-all"}]},{"group":"Organizations","pages":[{"title":"The organization object","href":"/api-reference/organizations/organization-object"},{"openapi":"PUT /organizations","title":"Update organization (deprecated)","href":"/api-reference/organizations/update"}]},{"group":"Payments","pages":[{"title":"The payment object","href":"/api-reference/payments/payment-object"},{"title":"Create a payment","openapi":"POST /payments","href":"/api-reference/payments/create"},{"title":"Retrieve a payment","openapi":"GET /payments/{lago_id}","href":"/api-reference/payments/get-specific"},{"title":"List all payments","openapi":"GET /payments","href":"/api-reference/payments/get-all"}]},{"group":"Payment methods","pages":[{"title":"The payment method object","href":"/api-reference/payment-methods/payment-method-object"},{"openapi":"PUT /customers/{external_customer_id}/payment_methods/{lago_id}/set_as_default","title":"Update a payment method","href":"/api-reference/payment-methods/update"},{"openapi":"DELETE /customers/{external_customer_id}/payment_methods/{lago_id}","title":"Delete a payment method from a customer","href":"/api-reference/payment-methods/delete"},{"openapi":"GET /customers/{external_customer_id}/payment_methods","title":"List all payment methods for a customer","href":"/api-reference/payment-methods/get-all"}]},{"group":"Payment receipts","pages":[{"title":"The payment receipt object","href":"/api-reference/payment-receipts/payment-receipt-object"},{"openapi":"GET /payment_receipts/{lago_id}","title":"Retrieve a payment receipt","href":"/api-reference/payment-receipts/get-specific"},{"openapi":"GET /payment_receipts","title":"List all payment receipts","href":"/api-reference/payment-receipts/get-all"}]},{"group":"Payment requests","pages":[{"title":"The payment request object","href":"/api-reference/payment-requests/payment-request-object"},{"title":"Create a payment request","openapi":"POST /payment_requests","href":"/api-reference/payment-requests/create"},{"title":"List all payment requests","openapi":"GET /payment_requests","href":"/api-reference/payment-requests/get-all"}]},{"group":"Plans","pages":[{"title":"The plan object","href":"/api-reference/plans/object"},{"title":"Create a plan","openapi":"POST /plans","href":"/api-reference/plans/create"},{"title":"Update a plan","openapi":"PUT /plans/{code}","href":"/api-reference/plans/update"},{"openapi":"DELETE /plans/{code}","title":"Delete a plan","href":"/api-reference/plans/destroy"},{"openapi":"GET /plans/{code}","title":"Retrieve a plan","href":"/api-reference/plans/get-specific"},{"openapi":"GET /plans","title":"List all plans","href":"/api-reference/plans/get-all-plans"},{"group":"Charges","pages":[{"title":"The charge object","href":"/api-reference/plans/charges/object"},{"title":"Create a charge","openapi":"POST /plans/{code}/charges","href":"/api-reference/plans/charges/create"},{"title":"Update a charge","openapi":"PUT /plans/{code}/charges/{charge_code}","href":"/api-reference/plans/charges/update"},{"title":"Delete a charge","openapi":"DELETE /plans/{code}/charges/{charge_code}","href":"/api-reference/plans/charges/destroy"},{"title":"Retrieve a charge","openapi":"GET /plans/{code}/charges/{charge_code}","href":"/api-reference/plans/charges/get-specific"},{"title":"List all charges","openapi":"GET /plans/{code}/charges","href":"/api-reference/plans/charges/get-all"},{"group":"Filters","pages":[{"title":"The charge filter object","href":"/api-reference/plans/charges/filters/object"},{"title":"Create a charge filter","openapi":"POST /plans/{code}/charges/{charge_code}/filters","href":"/api-reference/plans/charges/filters/create"},{"title":"Update a charge filter","openapi":"PUT /plans/{code}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/plans/charges/filters/update"},{"title":"Delete a charge filter","openapi":"DELETE /plans/{code}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/plans/charges/filters/destroy"},{"title":"Retrieve a charge filter","openapi":"GET /plans/{code}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/plans/charges/filters/get-specific"},{"title":"List all charge filters","openapi":"GET /plans/{code}/charges/{charge_code}/filters","href":"/api-reference/plans/charges/filters/get-all"}]}]},{"group":"Fixed Charges","pages":[{"title":"The fixed charge object","href":"/api-reference/plans/fixed-charges/object"},{"title":"Create a fixed charge","openapi":"POST /plans/{code}/fixed_charges","href":"/api-reference/plans/fixed-charges/create"},{"title":"Update a fixed charge","openapi":"PUT /plans/{code}/fixed_charges/{fixed_charge_code}","href":"/api-reference/plans/fixed-charges/update"},{"title":"Delete a fixed charge","openapi":"DELETE /plans/{code}/fixed_charges/{fixed_charge_code}","href":"/api-reference/plans/fixed-charges/destroy"},{"title":"Retrieve a fixed charge","openapi":"GET /plans/{code}/fixed_charges/{fixed_charge_code}","href":"/api-reference/plans/fixed-charges/get-specific"},{"title":"List all fixed charges","openapi":"GET /plans/{code}/fixed_charges","href":"/api-reference/plans/fixed-charges/get-all"}]}]},{"group":"Quotes \u0026 Order forms","pages":[{"group":"Quotes","pages":[{"title":"The quote object","href":"/api-reference/quotes/quote-object"},{"title":"The quote version object","href":"/api-reference/quotes/quote-version-object"},{"openapi":"POST /quote_versions/{lago_id}/approve","title":"Approve a quote version","href":"/api-reference/quotes/approve-version"},{"openapi":"POST /quote_versions/{lago_id}/void","title":"Void a quote version","href":"/api-reference/quotes/void-version"},{"openapi":"POST /quote_versions/{lago_id}/clone","title":"Clone a quote version","href":"/api-reference/quotes/clone-version"},{"openapi":"GET /quotes/{lago_id}","title":"Retrieve a quote","href":"/api-reference/quotes/get-specific"},{"openapi":"GET /quotes","title":"List all quotes","href":"/api-reference/quotes/get-all"},{"openapi":"GET /quote_versions/{lago_id}","title":"Retrieve a quote version","href":"/api-reference/quotes/get-specific-version"},{"openapi":"GET /quotes/{lago_id}/versions","title":"List all versions of a quote","href":"/api-reference/quotes/get-all-versions"}]},{"group":"Order forms","pages":[{"title":"The order form object","href":"/api-reference/quotes/order-forms/order-form-object"},{"openapi":"POST /order_forms/{lago_id}/mark_as_signed","title":"Mark an order form as signed","href":"/api-reference/quotes/order-forms/mark-as-signed"},{"openapi":"POST /order_forms/{lago_id}/void","title":"Void an order form","href":"/api-reference/quotes/order-forms/void"},{"openapi":"GET /order_forms/{lago_id}","title":"Retrieve an order form","href":"/api-reference/quotes/order-forms/get-specific"},{"openapi":"GET /order_forms","title":"List all order forms","href":"/api-reference/quotes/order-forms/get-all"}]},{"group":"Orders","pages":[{"title":"The order object","href":"/api-reference/quotes/orders/order-object"},{"openapi":"POST /orders/{lago_id}/execute","title":"Execute an order","href":"/api-reference/quotes/orders/execute"},{"openapi":"GET /orders/{lago_id}","title":"Retrieve an order","href":"/api-reference/quotes/orders/get-specific"},{"openapi":"GET /orders","title":"List all orders","href":"/api-reference/quotes/orders/get-all"}]}]},{"group":"Resources","pages":[{"title":"Currencies","href":"/api-reference/resources/currencies"},{"title":"Timezones","href":"/api-reference/resources/timezones"},{"title":"Document locales","href":"/api-reference/resources/locales"}]},{"group":"Subscriptions","pages":[{"title":"The subscription object","href":"/api-reference/subscriptions/subscription-object"},{"title":"Create a subscription","openapi":"POST /subscriptions","href":"/api-reference/subscriptions/assign-plan"},{"title":"Update a subscription","openapi":"PUT /subscriptions/{external_id}","href":"/api-reference/subscriptions/update"},{"title":"Terminate a subscription","openapi":"DELETE /subscriptions/{external_id}","href":"/api-reference/subscriptions/terminate"},{"title":"Retrieve a subscription","openapi":"GET /subscriptions/{external_id}","href":"/api-reference/subscriptions/get-specific"},{"title":"List all subscriptions","openapi":"GET /subscriptions","href":"/api-reference/subscriptions/get-all"},{"group":"Lifetime Usage","pages":[{"title":"The lifetime usage object","href":"/api-reference/subscriptions/lifetime-usage-object"},{"title":"Update subscription lifetime usage","openapi":"PUT /subscriptions/{external_id}/lifetime_usage","href":"/api-reference/subscriptions/update-lifetime-usage"},{"title":"Retrieve subscription lifetime usage","openapi":"GET /subscriptions/{external_id}/lifetime_usage","href":"/api-reference/subscriptions/get-lifetime-usage"}]},{"group":"Charges","pages":[{"title":"The charge object","href":"/api-reference/subscriptions/charges/object"},{"title":"Update a charge","openapi":"PUT /subscriptions/{external_id}/charges/{charge_code}","href":"/api-reference/subscriptions/charges/update"},{"title":"Retrieve a charge","openapi":"GET /subscriptions/{external_id}/charges/{charge_code}","href":"/api-reference/subscriptions/charges/get-specific"},{"title":"List all charges","openapi":"GET /subscriptions/{external_id}/charges","href":"/api-reference/subscriptions/charges/get-all"},{"group":"Filters","pages":[{"title":"The charge filter object","href":"/api-reference/subscriptions/charges/filters/object"},{"title":"Create a charge filter","openapi":"POST /subscriptions/{external_id}/charges/{charge_code}/filters","href":"/api-reference/subscriptions/charges/filters/create"},{"title":"Update a charge filter","openapi":"PUT /subscriptions/{external_id}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/subscriptions/charges/filters/update"},{"title":"Delete a charge filter","openapi":"DELETE /subscriptions/{external_id}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/subscriptions/charges/filters/destroy"},{"title":"Retrieve a charge filter","openapi":"GET /subscriptions/{external_id}/charges/{charge_code}/filters/{filter_id}","href":"/api-reference/subscriptions/charges/filters/get-specific"},{"title":"List all charge filters","openapi":"GET /subscriptions/{external_id}/charges/{charge_code}/filters","href":"/api-reference/subscriptions/charges/filters/get-all"}]}]},{"group":"Fixed Charges","pages":[{"title":"The fixed charge object","href":"/api-reference/subscriptions/fixed-charges/object"},{"title":"Update a fixed charge","openapi":"PUT /subscriptions/{external_id}/fixed_charges/{fixed_charge_code}","href":"/api-reference/subscriptions/fixed-charges/update"},{"title":"Retrieve a fixed charge","openapi":"GET /subscriptions/{external_id}/fixed_charges/{fixed_charge_code}","href":"/api-reference/subscriptions/fixed-charges/get-specific"},{"title":"List all fixed charges","openapi":"GET /subscriptions/{external_id}/fixed_charges","href":"/api-reference/subscriptions/fixed-charges/get-all"}]}]},{"group":"Taxes","pages":[{"title":"The tax object","href":"/api-reference/taxes/tax-object"},{"openapi":"POST /taxes","title":"Create a tax rate","href":"/api-reference/taxes/create"},{"openapi":"PUT /taxes/{code}","title":"Update a tax rate","href":"/api-reference/taxes/update"},{"openapi":"DELETE /taxes/{code}","title":"Delete a tax rate","href":"/api-reference/taxes/destroy"},{"openapi":"GET /taxes/{code}","title":"Retrieve a tax rate","href":"/api-reference/taxes/get-specific"},{"openapi":"GET /taxes","title":"List all tax rates","href":"/api-reference/taxes/get-all"}]},{"group":"Wallets","pages":[{"title":"The wallet object","href":"/api-reference/wallets/wallet-object"},{"openapi":"POST /wallets","title":"Create a wallet","href":"/api-reference/wallets/create"},{"openapi":"PUT /wallets/{lago_id}","title":"Update a wallet","href":"/api-reference/wallets/update"},{"openapi":"DELETE /wallets/{lago_id}","title":"Terminate a wallet","href":"/api-reference/wallets/terminate"},{"openapi":"GET /wallets/{lago_id}","title":"Retrieve a wallet","href":"/api-reference/wallets/get-specific"},{"openapi":"GET /wallets","title":"List all wallets","href":"/api-reference/wallets/get-all"},{"group":"Wallets by code","pages":[{"openapi":"POST /customers/{external_customer_id}/wallets","title":"Create a wallet for a customer","href":"/api-reference/wallets/create-for-customer"},{"openapi":"PUT /customers/{external_customer_id}/wallets/{code}","title":"Update a wallet by code","href":"/api-reference/wallets/update-by-code"},{"openapi":"DELETE /customers/{external_customer_id}/wallets/{code}","title":"Terminate a wallet by code","href":"/api-reference/wallets/terminate-by-code"},{"openapi":"GET /customers/{external_customer_id}/wallets/{code}","title":"Retrieve a wallet by code","href":"/api-reference/wallets/get-specific-by-code"},{"openapi":"GET /customers/{external_customer_id}/wallets","title":"List all wallets for a customer","href":"/api-reference/wallets/get-all-for-customer"}]},{"group":"Wallet transactions","pages":[{"title":"The wallet transaction object","href":"/api-reference/wallets/wallet-transaction-object"},{"openapi":"POST /wallet_transactions","title":"Top-up a wallet","href":"/api-reference/wallets/top-up"},{"openapi":"POST /wallet_transactions/{lago_id}/payment_url","title":"Generate a payment URL","href":"/api-reference/wallets/wallet-transaction-payment-url"},{"openapi":"GET /wallet_transactions/{lago_id}","title":"Retrieve a transaction","href":"/api-reference/wallets/get-specific-transaction"},{"openapi":"GET /wallets/{lago_id}/wallet_transactions","title":"List all wallet transactions","href":"/api-reference/wallets/get-all-transactions"},{"openapi":"GET /wallet_transactions/{lago_id}/consumptions","title":"List all consumptions for a wallet transaction","href":"/api-reference/wallets/get-all-consumptions"},{"openapi":"GET /wallet_transactions/{lago_id}/fundings","title":"List all fundings for a wallet transaction","href":"/api-reference/wallets/get-all-fundings"}]},{"group":"Wallet alerts","pages":[{"title":"The wallet alert object","href":"/api-reference/wallets/wallet-alert-object"},{"openapi":"POST /customers/{external_customer_id}/wallets/{wallet_code}/alerts","title":"Create a wallet alert","href":"/api-reference/wallets/create-alert"},{"openapi":"PUT /customers/{external_customer_id}/wallets/{wallet_code}/alerts/{code}","title":"Update a wallet alert","href":"/api-reference/wallets/update-alert"},{"openapi":"DELETE /customers/{external_customer_id}/wallets/{wallet_code}/alerts/{code}","title":"Delete a wallet alert","href":"/api-reference/wallets/delete-alert"},{"openapi":"GET /customers/{external_customer_id}/wallets/{wallet_code}/alerts/{code}","title":"Retrieve a wallet alert","href":"/api-reference/wallets/get-specific-alert"},{"openapi":"GET /customers/{external_customer_id}/wallets/{wallet_code}/alerts","title":"List all wallet alerts","href":"/api-reference/wallets/get-all-alerts"}]}]},{"group":"Webhook endpoints","pages":[{"title":"The webhook endpoint object","href":"/api-reference/webhook-endpoints/webhook-endpoint-object"},{"openapi":"POST /webhook_endpoints","title":"Create a webhook endpoint","href":"/api-reference/webhook-endpoints/create"},{"openapi":"PUT /webhook_endpoints/{lago_id}","title":"Update a webhook endpoint","href":"/api-reference/webhook-endpoints/update"},{"openapi":"DELETE /webhook_endpoints/{lago_id}","title":"Delete a webhook endpoint","href":"/api-reference/webhook-endpoints/destroy"},{"openapi":"GET /webhook_endpoints","title":"List all webhook endpoints","href":"/api-reference/webhook-endpoints/get-all"},{"openapi":"GET /webhook_endpoints/{lago_id}","title":"Retrieve a webhook endpoint","href":"/api-reference/webhook-endpoints/get-specific"}]},{"group":"Webhooks","pages":[{"title":"Format and signature","href":"/api-reference/webhooks/format---signature"},{"title":"Messages","href":"/api-reference/webhooks/messages"}]}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/introduction"}]},{"tab":"Templates","pages":[{"title":"Templates","href":"/templates/introduction"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq/about-lago"}]},{"tab":"Knowledge Base","href":"https://knowledge.getlago.com"},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/product"}]}]},"basePath":"","title":"The customer object - Lago","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","SectionHeading-Cc2r-uqU.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js","Markdown-0RkHcMOI.js","AssistantPageLink-DeJZCj9t.js","dist-DVqS175j.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}