cURL
Stats API
Get Transactions
Retrieves transaction history including payments, payouts, deposits, withdrawals, and disputes with detailed financial information
GET
cURL
Retrieves transaction history including payments, payouts, deposits, withdrawals, and disputes with detailed financial information.
Request Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
page | Integer | Page number for pagination. Default is 1. | No |
per_page | Integer | Number of results per page. Default is 10. Maximum is 100. | No |
child_organization_id | Integer | Filter transactions by specific child organization ID | No |
start_date | String | Filter transactions from this date (MM/DD/YYYY format) | No |
end_date | String | Filter transactions until this date (MM/DD/YYYY format) | No |
transaction_type | String | Filter by transaction type (payment, payout, deposit, withdrawal, dispute) | No |
search | String | Search transactions by creator name | No |
Request Example
Response Example
Response Fields
Transaction Object
| Field | Type | Description |
|---|---|---|
id | Integer | Unique identifier for the transaction |
formatted_amount | String | Transaction amount in formatted currency with sign (amounts are in cents) |
transaction_type | String | Type of transaction (Payment, Payout, Deposit, etc.) |
currency | String | Currency code (e.g., “usd”) |
formatted_fee_amount | String | Processing fee amount in formatted currency (amounts are in cents) |
formatted_total | String | Total amount including fees in formatted currency (amounts are in cents) |
status | String | Transaction status (Paid, Available, Failed, etc.) |
balance | Number | Account balance after transaction (in cents) |
pending_balance | Number | Pending balance amount (in cents) |
description | String | Transaction description |
organization_id | Integer | ID of the organization |
creator_payout_id | Integer | Associated creator payout ID (null if not applicable) |
invoice_id | Integer | Associated invoice ID (null if not applicable) |
payment_method_id | Integer | Payment method ID (null if not applicable) |
external_id | String | External system identifier |
source | String | Transaction source (Balance, External, etc.) |
destination | String | Transaction destination |
created | Integer | Unix timestamp of transaction creation |
organization_name | String | Name of the organization |
organization_logo_url | String | URL to organization logo |
organization_slug | String | Organization slug identifier |
invoice_description | String | Description from associated invoice |
Invoice Object (when applicable)
| Field | Type | Description |
|---|---|---|
invoice.id | Integer | Invoice unique identifier |
invoice.currency | String | Invoice currency |
invoice.hosted_invoice_url | String | URL to hosted invoice (null if not available) |
invoice.status | String | Invoice status |
invoice.total_formatted | Number | Invoice total amount (in cents) |
invoice.created_at_formatted | String | Invoice creation date (MM/DD/YY format) |
invoice.description | String | Invoice description |
invoice.pretty_status | String | Human-readable status |
invoice.paid_at | String | ISO timestamp when invoice was paid |
invoice.payment_method | String | Payment method used |
invoice.line_items | Array | Array of line item objects |
Line Item Object
| Field | Type | Description |
|---|---|---|
line_items[].id | Integer | Line item unique identifier |
line_items[].amount | Number | Line item amount (in cents) |
line_items[].user_name | String | Creator/user name |
line_items[].campaign_name | String | Associated campaign name |
line_items[].user_id | Integer | Creator/user ID |
line_items[].status | String | Line item status |
line_items[].creator_payout_id | Integer | Associated creator payout ID |
line_items[].description | String | Line item description |
line_items[].refunded | Boolean | Whether the item was refunded |
Metadata
| Field | Type | Description |
|---|---|---|
meta.row_count | Integer | Total number of transactions |
meta.page_count | Integer | Total number of pages |
meta.current_page | Integer | Current page number |
Additional Data (Financial Summary)
| Field | Type | Description |
|---|---|---|
additional_data.amount_sum | Number | Total available balance amount (in cents) |
additional_data.fee_sum | Number | Total fees collected (in cents) |
additional_data.payout_sum | Number | Total payout amount (negative value, in cents) |
additional_data.payment_sum | Number | Total payment amount received (in cents) |
additional_data.deposit_sum | Number | Total deposit amount (in cents) |
additional_data.withdrawal_sum | Number | Total withdrawal amount (in cents) |
additional_data.dispute_sum | Number | Total dispute amount (in cents) |
additional_data.payout_other_sum | Number | Total payouts from payment methods (in cents) |
additional_data.payout_balance_sum | Number | Total payouts from balance (in cents) |
Transaction Types
- Payment: Incoming payments from customers
- Payout: Outgoing payments to creators or external accounts
- Deposit: Manual deposits to account balance
- Withdrawal: Manual withdrawals from account balance
- Dispute: Chargebacks or disputed transactions
Authorization
This endpoint requires viewer role or higher. Users with ‘viewer’ role will receive a 401 Unauthorized error.Error Responses
| Status Code | Description |
|---|---|
| 401 | Unauthorized - Invalid API key or viewer role |
| 400 | Bad Request - Invalid parameters |
| 500 | Internal Server Error |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Page number for pagination. Default is 1.
Number of results per page. Default is 10. Maximum is 100.
Required range:
x <= 100Filter transactions by specific child organization ID
Filter transactions from this date (MM/DD/YYYY format)
Filter transactions until this date (MM/DD/YYYY format)
Filter by transaction type
Available options:
payment, payout, deposit, withdrawal, dispute Search transactions by creator name