Skip to navigation

List customers

Lists customers newest first. Archived customers are left out unless includeArchived is true.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the customers=v1 beta. Send this header to use it.

Allowed values:

Query parameters

cursorstringOptional

The nextCursor of the previous page. Omit it for the first page.

emailstringOptional
Only customers with this billing email, ignoring case.
expandlist of enumsOptional
References to return as full objects instead of IDs. Repeat it for several, up to 4. A reference that cannot be read with this key stays an ID.
Allowed values:
externalIdstringOptional
Only the customer with this external ID, ignoring case.
includeArchivedenumOptional

Pass true to include archived objects.

Allowed values:
limitintegerOptional1-100Defaults to 10
How many objects to return, 1 to 100. Defaults to 10.
parentstringOptional1-255 characters

Only the direct children of this customer, by cus_ ID, externalId or alias.

segmentstringOptional1-255 characters

Only customers in this segment, by key or seg_ ID.

statusenumOptional

draft: created automatically when an event named a customer that did not exist yet; never billed. active: created through the API or dashboard, or promoted from a draft by creating it.

Allowed values:

Response

200
objectenum

The type of object. Always list.

Allowed values:
datalist of objects
The customers on this page, newest first.
hasMoreboolean
Whether another page follows this one.
nextCursorstring or null

Send it as cursor to get the next page. Null on the last page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error