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-Beta
This endpoint is in the customers=v1 beta. Send this header to use it.
Allowed values:
Query parameters
cursor
The nextCursor of the previous page. Omit it for the first page.
email
Only customers with this billing email, ignoring case.
expand
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:
externalId
Only the customer with this external ID, ignoring case.
includeArchived
Pass true to include archived objects.
Allowed values:
limit
How many objects to return, 1 to 100. Defaults to 10.
parent
Only the direct children of this customer, by cus_ ID, externalId or alias.
segment
Only customers in this segment, by key or seg_ ID.
status
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
object
The type of object. Always list.
Allowed values:
data
The customers on this page, newest first.
hasMore
Whether another page follows this one.
nextCursor
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