Skip to content
Loading keys…

Customers

Create and manage reusable customer profiles.

A Customer is a reusable profile identified by email or phone.

Marketplaces: acting on behalf of a subaccount

Platforms can manage a connected subaccount's own customers by sending an X-Sync header alongside their own key (requires the customers capability). See Subaccounts for the rules and error cases.

Endpoints

MethodPathDescription
POST/customersCreate
GET/customers/{id}Retrieve
GET/customersList
PUT/customers/{id}Update
DELETE/customers/{id}Delete
POST/customers/{id}/blockBlock
POST/customers/{id}/unblockUnblock
POST/customers/{id}/activateActivate
POST/customers/{id}/deactivateDeactivate
GET/customers/{id}/tax_idsList tax IDs (live only)
POST/customers/{id}/tax_idsAdd a tax ID (live only)
DELETE/customers/{id}/tax_ids/{tax_id}Remove a tax ID (live only)

The Customer object

A field without a value is left out of the object rather than sent as null: read every field as optional. metadata is the exception, always an object, {} when empty.

idstringoptional
Unique identifier: cus_ followed by 24 characters, cus_test_ in sandbox.
typeenumoptional
individual or business.
namestringoptional
Full name, or the business name of a business.
emailstringoptional
Email address.
phonestringoptional
Phone number.
phone_countrystringoptional
Two-letter country code the phone number was read in.
descriptionstringoptional
Your description of the customer.
notesstringoptional
Your notes.
currencystringoptional
Preferred currency, ISO 4217.
statusenumoptional
active, inactive, blocked.
blockedbooleanoptional
true after POST /customers/{id}/block, until you unblock the customer.
block_reasonstringoptional
The reason sent with the block. Absent when the customer is not blocked.
blocked_atdatetimeoptional
When the customer was blocked. Absent when not blocked.
customer_groupstringoptional
The group string you set.
tagsstring[]optional
Your labels, [] when none.
preferred_currenciesstring[]optional
ISO 4217 codes, [] when none.
preferred_localesstring[]optional
Locales such as fr, [] when none.
metadataobjectoptional
Free-form data, {} when empty.
addressobjectoptional
The primary shipping address: address_line1, address_line2, city, state, postal_code, country.
billingobjectoptional
The primary billing address, same fields.
first_namestringoptional
Individuals only. Read-only through the API, which refuses it on writes.
last_namestringoptional
Individuals only. Read-only through the API, as above.
date_of_birthdateoptional
Individuals only, YYYY-MM-DD.
genderenumoptional
Individuals only: male, female or other.
business_namestringoptional
Businesses only.
business_typestringoptional
Businesses only.
business_registration_numberstringoptional
Businesses only.
tax_idstringoptional
Businesses only. The tax identifiers checked by Tax are under /customers/{id}/tax_ids.
tax_exemptenumoptional
Businesses only: none (default) or exempt, set from the Dashboard.
legal_representative_namestringoptional
Businesses only.
legal_representative_titlestringoptional
Businesses only.
sandboxbooleanoptional
true for a sandbox customer.
created_atdatetimeoptional
ISO 8601 creation timestamp.
updated_atdatetimeoptional
ISO 8601 timestamp of the last change.

What did you think of this content?