listAllPayments
listAllPaymentsRetrieve a paginated list of payments, including refunds, and filter or sort records by status, customer, invoice, amount, and date to review transaction history.
Instructions
Retrieve a paginated list of all payments, including refund records, with extensive filtering and sorting options. Payment amounts and amount filters are in cents.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "listAllPayments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Filter by payment ID. | |
| type | No | Filter by payment type (e.g., 'payment', 'refund'). | |
| limit | No | Maximum number of payments to return per page (defaults to 10). | |
| order | No | Order of results (e.g., '-created_at'). | -created_at |
| cursor | No | The cursor for pagination. | |
| search | No | General search query. | |
| status | No | Filter by payment status (e.g., 'success', 'failed'). | |
| sort_key | No | Key to sort the results by (e.g., 'id'). | |
| parent_id | No | Filter by parent payment ID. | |
| sort_type | No | Sort order type (e.g., 'asc'). | |
| autocharge | No | Filter by auto-charge status. | |
| amount__gte | No | Filter by amount greater than or equal to. | |
| amount__lte | No | Filter by amount less than or equal to. | |
| customer_id | No | Filter by customer ID. | |
| invoice__id | No | Filter by associated invoice ID. | |
| connector_id | No | Filter by connector ID. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow | |
| payment_method | No | Filter by payment method (e.g., 'card', 'cash', 'bank_transfer'). | |
| timestamp__gte | No | Filter by timestamp greater than or equal to (Unix time). | |
| timestamp__lte | No | Filter by timestamp less than or equal to (Unix time). | |
| created_at__gte | No | Filter by creation date greater than or equal to (ISO 8601). | |
| created_at__lte | No | Filter by creation date less than or equal to (ISO 8601). | |
| external_id__ilike | No | Case-insensitive partial match for external ID. | |
| amount_refunded__gte | No | Filter by amount refunded greater than or equal to. | |
| amount_refunded__lte | No | Filter by amount refunded less than or equal to. | |
| currency_code__ilike | No | Case-insensitive partial match for currency code. | |
| receipt_number__ilike | No | Case-insensitive partial match for receipt number. | |
| invoice__approved_at__gte | No | Filter by invoice approval date greater than or equal to (ISO 8601). | |
| invoice__approved_at__lte | No | Filter by invoice approval date less than or equal to (ISO 8601). | |
| invoice__bill_for_date__gte | No | Filter by invoice billing date greater than or equal to (ISO 8601). | |
| invoice__bill_for_date__lte | No | Filter by invoice billing date less than or equal to (ISO 8601). | |
| customer__business_entity_id | No | Filter by customer's business entity ID. |