Search Documentation
Search for a documentation page...
Customers API
REST API endpoints for managing customers and their addresses.
List Customers
Returns a paginated list of customers, sorted by creation date (newest first).
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 50 | Customers per page (1-100) |
offset | number | 0 | Customers to skip |
search | string | – | Search by customer email |
Response
locale is the language the customer last shopped in (the storefront's language code, e.g. pl-PL), or null until they have bought or picked one on their account. Emails addressed to the customer render in it.
Get Customer
Returns customer details including linked user info and all saved addresses.
Update Customer
Request Body
| Field | Type | Description |
|---|---|---|
name | string | Customer display name |
phone | string | Customer phone number |
Customer Addresses
Create Address
| Field | Type | Required | Description |
|---|---|---|---|
line1 | string | Yes | Street address line 1 |
line2 | string | No | Apartment, suite, etc. |
city | string | Yes | City |
postalCode | string | Yes | Postal/ZIP code |
country | string | No | Two-letter country code (e.g. US) |
state | string | No | State or province |
name | string | No | Recipient full name |
company | string | No | Company name |
phone | string | No | Contact phone number |
Delete Address
Removes an address from the customer's address book.
Customer Orders
Returns orders placed by this customer, paginated. See Orders API for response details.
A request made for a person – through an OAuth app or the AI Assistant – lists only the orders that person's role may see; API keys list them all. See order visibility.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Orders per page (1-100) |
offset | number | 0 | Orders to skip |