Paddle Billing
Search

Filter and sort

Use query parameters to filter and sort the data returned by Paddle.

Most list endpoints let you filter and sort the data returned by the Paddle API.

Filter

You can filter returned results using query parameters. For example, use the collection_mode query parameter to filter transactions or subscriptions by collection mode:

Some query parameters have the type array[string]. In this case, you pass a comma separated list to filter by multiple values. For example, to return any products that have the tax category standard, saas, or digital-goods:

Check the API reference for a specific endpoint to learn more about the parameters available for filtering.

Advanced operators

When listing transactions, you can use operators to work with date query parameters. The following operators are available:

[LT]Less than. Return entities created before the specified date and time.
[LTE]Less than or equal to. Return entities created before or on the specified date and time.
[GT]Greater than. Return entities created after the specified date and time.
[GTE]Greater than or equal to. Return entities created after or on the specified date and time.

For example, to return transactions that were created in May 2024:

Sort

You can sort returned results using the order_by parameter, followed by a field and direction:

[ASC]Ascending. Sort returned entities in ascending order.
[DESC]Descending. Sort returned entities in descending order.

You can sort by the id field when working with most list endpoints.

Paddle IDs are lexicographically sortable. Sorting by Paddle ID results in the same order as sorting by the creation date of an entity.

List endpoints return entities created newest first (i.e. id[DESC]).

Search

Some entities include a search parameter that lets you search using a string. For example, to return customers with a name or email address that contains paddle:

Remember to percent-encode query strings. For example, to search max+paddle@example.com:

Related pages