Get Payments
Payments
Get Payments
Get Payments
GET
Get Payments
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
Get Payments Description: The/payment/ endpoint retrieves a list of payments with filtering and pagination options.
Method:
GET
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
| q (Optional) | string | Search query to filter payments |
| page (Optional) | integer | Page number for pagination. Default: 1 |
| size (Optional) | integer | Number of payments per page. Default: 10 |
| sort (Optional) | string | Field to sort by. Default: ‘updatedAt’ |
| order (Optional) | string | Sort order (‘asc’ or ‘desc’). Default: ‘desc’ |
| user (Optional) | string | Filter by user ID |
| status (Optional) | string | Filter by status |
| startDate (Optional) | string | Filter payments from this date |
| endDate (Optional) | string | Filter payments to this date |
| include (Optional) | string | Specify ‘count’ to include the total count of items |
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Query Parameters
Search query to filter payments
Page number for pagination
Number of payments per page
Field to sort by
Sort order ('asc' or 'desc')
Available options:
asc, desc Filter by user ID
Filter payments from this date
Filter payments to this date
Specify 'count' to include the total count of items
Filter payments by status
Available options:
completed, processing, failed