List Customers

Returns a paginated list of customers for your merchant account.

Endpoint

GET /v1/customers

Authentication

Requires API key authentication via X-API-Key header.

For JWT authentication, use GET /v1/customers/jwt instead.

Query Parameters

Parameter
Type
Description

limit

integer

Number of customers to return (default: 10, max: 100)

starting_after

string

Cursor for forward pagination. Returns customers created after this ID

ending_before

string

Cursor for backward pagination. Returns customers created before this ID

email

string

Filter by exact email match

search

string

Search by name or email (partial match)

Example Request

curl "https://api.example.com/v1/customers?limit=10" \
  -H "X-API-Key: sk_live_xxxxx"

Example Response

Pagination

Use cursor-based pagination to iterate through results:

Filtering by Email

Searching

Errors

Code
Description

400

Invalid query parameters

401

Invalid or missing API key

Last updated