API reference

Customers

On this page

Your contact list: customers, leads, subscribers and other people. Read only. Email and phone are masked unless the key has the personal details option. Consent, notes, tags and spend are never returned.

The customer (contact) object#

FieldTypeMeaning
idintegerThe contact id.
namestringThe contact's name. A contact without a name shows as "Contact #id" while personal details are hidden.
typestringcustomer, lead, partner, subscriber, retailer, distributor, restaurant, bulk_buyer, consumer or other.
statusstringactive, inactive or archived.
emailstring or nullEmail address. Masked (for example c***@example.com) unless the key has the personal details option.
phonestring or nullPhone number. Masked (only the last 4 digits show) unless the key has the personal details option.
citystring or nullCity.
statestring or nullState.
orders_countintegerHow many orders the contact has placed.
paid_orders_countintegerHow many of those orders are paid.
last_order_atstring or nullWhen the contact last ordered (ISO 8601, UTC).
created_atstringWhen the contact was added (ISO 8601, UTC).
updated_atstringWhen the contact was last changed (ISO 8601, UTC).

List customers (contacts)#

GET/api/v1/customersread:customers

Your contact list: name, type, status, order counts and dates. Email and phone are MASKED (a***@example.com, ******3210) unless the key has the personal details option. Consent, notes, tags and spend are never returned.

Without the personal details option, email and phone are masked (for example b***@example.com and ********0000).

Query parameters

NameTypeMeaning
typestringcustomer, lead, partner, subscriber, retailer, distributor, restaurant, bulk_buyer, consumer or other.
statusstringactive, inactive or archived.
One of: active, inactive, archived
limitintegerRows per page, 1 to 100 (default 25). per_page works too.
pageintegerPage number, starting at 1.
updated_sincestringOnly rows changed at or after this time (ISO 8601, for example 2026-11-21T10:00:00Z, or a date).

Example request

curl -s "https://yourstore.example.com/api/v1/customers?status=active&limit=50" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example answer (200 OK)

{
    "data": [
        {
            "id": 55,
            "name": "Sample Customer",
            "type": "customer",
            "status": "active",
            "email": "b***@example.com",
            "phone": "********0000",
            "city": "Sample City",
            "state": "Sample State",
            "orders_count": 1,
            "paid_orders_count": 1,
            "last_order_at": "2026-11-21T10:15:00Z",
            "created_at": "2026-11-21T10:15:00Z",
            "updated_at": "2026-11-21T10:15:00Z"
        }
    ],
    "meta": {
        "page": 1,
        "per_page": 25,
        "total": 1,
        "last_page": 1
    },
    "links": {
        "first": "https://yourstore.example.com/api/v1/customers?page=1",
        "last": "https://yourstore.example.com/api/v1/customers?page=1",
        "prev": null,
        "next": null
    }
}

Errors

StatusCodeWhen
401missing_api_key, invalid_api_key, revoked_api_key, expired_api_keyThe key is missing, not valid, revoked or expired.
403insufficient_scopeThe key does not have the read:customers scope. error.required_scope names it. (api_key_disabled and ip_not_allowed also give 403.)
422validation_failedupdated_since could not be read as a date or time.
429rate_limitedMore requests than the key's limit in a minute. Wait for Retry-After.

Example error answer (403):

{
    "error": {
        "code": "insufficient_scope",
        "message": "This API key does not have the \"read:customers\" scope. Add it to the key in the admin (API & webhooks > API keys), or use a key that has it.",
        "required_scope": "read:customers"
    }
}

Get a customer#

GET/api/v1/customers/{id}read:customers

One contact by id (masked unless the key has the personal details option).

Address parameters

NameTypeMeaning
idintegerThe contact id (a whole number).

Example request

curl -s "https://yourstore.example.com/api/v1/customers/7" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example answer (200 OK)

{
    "data": {
        "id": 55,
        "name": "Sample Customer",
        "type": "customer",
        "status": "active",
        "email": "b***@example.com",
        "phone": "********0000",
        "city": "Sample City",
        "state": "Sample State",
        "orders_count": 1,
        "paid_orders_count": 1,
        "last_order_at": "2026-11-21T10:15:00Z",
        "created_at": "2026-11-21T10:15:00Z",
        "updated_at": "2026-11-21T10:15:00Z"
    },
    "meta": {}
}

Errors

StatusCodeWhen
401missing_api_key, invalid_api_key, revoked_api_key, expired_api_keyThe key is missing, not valid, revoked or expired.
403insufficient_scopeThe key does not have the read:customers scope. error.required_scope names it. (api_key_disabled and ip_not_allowed also give 403.)
404not_foundThat contact does not exist.
429rate_limitedMore requests than the key's limit in a minute. Wait for Retry-After.

Example error answer (403):

{
    "error": {
        "code": "insufficient_scope",
        "message": "This API key does not have the \"read:customers\" scope. Add it to the key in the admin (API & webhooks > API keys), or use a key that has it.",
        "required_scope": "read:customers"
    }
}