Create a customer
Creates a customer to bill. If an event already created a draft customer with the same externalId, the draft is promoted to active and returned instead of a new customer.
Authentication
Headers
This endpoint is in the customers=v1 beta. Send this header to use it.
Request
Lowercase ISO 4217 code. Must be enabled on your account; defaults to the account’s currency.
Your ID for the customer, 1 to 255 characters. Unique on your account, ignoring letter case, together with every alias. Events and other resources can name the customer by it; prefer the cus_ ID for long-lived integrations.
Legal entity name for invoices, when it differs from name.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
The customer this one belongs to, such as a subsidiary’s group: its cus_ ID, your externalId or one of its aliases, or null to remove it. One level only: a parent cannot have a parent. A child’s new orders bill the parent unless billTo says otherwise.
The segments the customer starts in, by key or seg_ ID. A segment named twice counts once. At most 20 segments after that; each must exist and not be archived.
none: taxed as usual. exempt: invoices carry no tax, and the tax provider is told the customer is exempt. reverse: reverse charge, for a business customer that accounts for VAT itself; the customer’s VAT number is sent to the tax provider, which applies reverse charge where the rules allow, and the customer needs a VAT entry in taxIds. GST reverse charge is not supported yet. A change applies to invoices issued afterwards. More values may be added.
Response
The type of object. Always customer.
When the customer was archived, or null. An archived customer stays readable and on its invoices, takes no new orders, and keeps its externalId reserved.
When the customer churned, or null. Informational: it does not stop billing.
The pm_ payment method this customer’s invoices and auto top-ups follow: a card is charged, a bank transfer account is paid into. Null when there is none. Needs Paid-Beta: payments=v1. The full paymentMethod object when the request expands defaultPaymentMethod.
Your ID for the customer, 1 to 255 characters. Unique on your account, ignoring letter case, together with every alias. Events and other resources can name the customer by it; prefer the cus_ ID for long-lived integrations.
Legal entity name for invoices, when it differs from name.
true for an object on a live account, false on a test account.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
The parent customer’s cus_ ID, or null. One level: a parent has no parent of its own. The full customer object when the request expands parent.
draft: created automatically when an event named a customer that did not exist yet; never billed. active: created through the API or dashboard, or promoted from a draft by creating it.
none: taxed as usual. exempt: invoices carry no tax, and the tax provider is told the customer is exempt. reverse: reverse charge, for a business customer that accounts for VAT itself; the customer’s VAT number is sent to the tax provider, which applies reverse charge where the rules allow, and the customer needs a VAT entry in taxIds. GST reverse charge is not supported yet. A change applies to invoices issued afterwards. More values may be added.