The customer object
A comprehensive list of the customer resource's attributes and relationships
A customer object is returned as part of the response body of each successful list, retrieve, create or update API call to the /api/customers
endpoint.
Fields
Field | Type | Description |
---|---|---|
type |
|
|
id |
| The customer unique identifier |
links.self |
| The customer endpoint URL |
attributes.email |
| The customer's email address. |
attributes.password |
| The customer's password. Initiate a customer password reset flow if you need to change it. |
attributes.status |
| The customer's status. One of 'prospect' (default), 'acquired', or 'repeat'. |
attributes.has_password |
| Indicates if the customer has a password. |
attributes.total_orders_count |
| The total number of orders for the customer. |
attributes.shopper_reference |
| A reference to uniquely identify the shopper during payment sessions. |
attributes.created_at |
| Time at which the resource was created. |
attributes.updated_at |
| Time at which the resource was last updated. |
attributes.reference |
| A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. |
attributes.reference_origin |
| Any identifier of the third party system that defines the reference code. |
attributes.metadata |
| Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. |
relationships.customer_group |
| The group to which this customer belongs (optional). |
relationships.customer_addresses |
| The customer's saved addresses, i.e. their address book. |
relationships.customer_payment_sources |
| The customer's saved credit cards, i.e. their wallet. |
relationships.customer_subscriptions |
| The customer's subscriptions. |
relationships.orders |
| The customer's orders, either pending or placed. |
relationships.order_subscriptions |
| The customer's order subscriptions. |
relationships.returns |
| The customer's returns, either pending or shipped. |
relationships.sku_lists |
| The associated SKU lists. |
relationships.attachments |
| The associated attachments. |
relationships.events |
| The associated events. |
relationships.tags |
| The associated tags. |
meta.mode |
| The resource environment (can be one of |
Last updated