Transactions
List all transactions
Get a list of all transactions including payments, refunds, and adjustments.
The List All Transactions endpoint retrieves a paginated list of transactions for your account. You can filter by status, type, date range, or customer metadata to narrow down results.
Endpoint
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
status | string | No | Filter by status (pending, succeeded, failed, canceled). |
type | string | No | Filter by type (payment, credit, refund). |
limit | int | No | Number of results per page (default: 20, max: 100). |
starting_after | string | No | Cursor for pagination. Returns results after the given transaction ID. |
ending_before | string | No | Cursor for pagination. Returns results before the given transaction ID. |
date_from | string | No | Filter by creation date (ISO 8601). |
date_to | string | No | Filter by creation date (ISO 8601). |
Headers
Key | Value | Required |
---|---|---|
Authorization | Bearer <access_token> | Yes |
Response
Successful Response (200 OK)
Field | Type | Description |
---|---|---|
object | string | Always "list". |
data | array | List of transaction objects. |
has_more | boolean | Indicates if more results are available. |
Error Response (401)
Example Usage
cURL
JavaScript (Fetch)
Use starting_after and ending_before for cursor-based pagination. This ensures consistent ordering of results when fetching large transaction lists.