get_payments
Retrieve a paginated list of payments, sorted by most recent, with filters for product type, user, affiliate, product ID, and creation date range.
Instructions
🟢 READ-ONLY · Payments · GET /v2/payments
Get payments
Returns a list with all the payments. The payments are in sorted order, with the most recently created payment appearing first, and the list is paginated, with a default limit of 50 payments per page. To refine the list of payments, there are a number of query params outlined in the following section; In case more than one Query param is provided, then all of them will be applied (AND operator).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Filter by the page number. In case page number is higher than the maximum one, the results of last page will be returned | |
| user_id | No | Filter by user id or email (encoded string) | |
| product_id | No | Filter by product id | |
| affiliate_id | No | Filter by affiliate id or email (encoded string) | |
| product_type | No | Filter by product type | |
| created_after | No | Filter by payment creation after the given datetime (expected in UNIX timestamp format) | |
| created_before | No | Filter by payment creation before the given datetime (expected in UNIX timestamp format) | |
| items_per_page | No | Filter by the items per page number |