Skip to main content
Retrieves a paginated list of customers with optional filtering.

Request Body

integer
default:"10"
Number of items to return. Default is 10, maximum is 1000.
integer
default:"0"
Number of items to skip before returning results. Used for pagination.
array
Filter by plan ID and version. Returns customers with active subscriptions to the specified plans.Each item in the array should have:
  • id (string, required) - The plan ID
  • versions (array of numbers, optional) - Specific plan versions to filter by
Example: [{"id": "pro_plan", "versions": [1, 2]}]
string
Filter by subscription status. Available options:
  • active - Only customers with active subscriptions
  • scheduled - Only customers with scheduled subscriptions
Defaults to returning both active and scheduled if not specified.
Search customers by ID, name, or email. Performs a case-insensitive partial match.

Response

Returns a paginated response with the following structure:
array
Array of Customer objects matching the filter criteria. Each customer includes all standard customer fields (id, name, email, subscriptions, balances, etc.).
number
The offset value used for this request.
number
The limit value used for this request.
number
Total number of customers matching the filter criteria.
boolean
Whether there are more results available beyond this page.

Example Requests

Example Response

Pagination Example

Here’s how to paginate through all customers: