List customers

Returns your customers, 50 at a time by default, in ascending ID order. Narrow the list with the filters below and page through it with the X-Next-Page header.

Heads up: this is a GET request, but it changes data. Don't call it just to look something up, and keep it away from link prefetchers and caches.

See Filtering, sorting and search for how the filters, ranges and sort work.

Required permission (any one of these):

GroupPermission
CustomersList and view customers
CustomersCreate, edit and delete customers (includes view)
Query Params
integer
1 to 250
Defaults to 50

How many records to return per page. Defaults to 50, maximum 250.

string

Opaque paging cursor. Don't build this yourself: follow the path in the X-Next-Page or X-Prev-Page response header.

integer

Only return customers with an ID greater than this one. Handy for picking up where you left off.

string

Comma-separated list of customer IDs to fetch, e.g. 2099268,2099269.

string

Free-text search across customer details.

string

Only return customers with this email address.

string

Only return customers with this first name.

string

Only return customers with this last name.

string

Only records with any of these tags. Send one tag or a comma-separated list, up to 50.

string

Older way to choose the sort field, used with sort=asc or sort=desc. Still supported. Keys: id, created, updated, lastname, firstname, fullname, email, loyaltypoints, loyaltytier, creditbalance, birthdate.

string

Sort order. Use sort=key for ascending or sort=-key for descending, for example sort=-created. Keys: id, created, updated, lastname, firstname, fullname, email, loyaltypoints, loyaltytier, creditbalance, birthdate. The older sort_field=key&sort=asc|desc style still works.

string

Partial match on middle_name.

string

Partial match on full_name.

string

Exact match on loyalty_optin.

string
^\d+(,\d+)*$

Matches one market id or a comma-separated list (up to 200).

string
^\d+(,\d+)*$

Matches one loyalty tier or a comma-separated list (up to 200).

integer

Minimum loyalty tier, inclusive.

integer

Maximum loyalty tier, inclusive.

string
^\d+(,\d+)*$

Matches one loyalty points or a comma-separated list (up to 200).

integer

Minimum loyalty points, inclusive.

integer

Maximum loyalty points, inclusive.

number

Minimum credit balance, inclusive.

number

Maximum credit balance, inclusive.

boolean

Filter on email subscriber: true or false (1/0 and yes/no work too).

boolean

Filter on sms subscriber: true or false (1/0 and yes/no work too).

string

Exact match on the free-text sex value. Send one value or a comma-separated list.

string

From this birthdate. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this birthdate. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this loyalty optin date. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this loyalty optin date. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this loyalty tier expiration. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this loyalty tier expiration. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this updated. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this updated. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json