Export payments as CSV
GET/reports/payments/exportExport payment history as a CSV file. Each row is one payment with its checkout's fiat amount, currency, and customer email. Filter by date range and status.
Headers
| Header | Description | Required |
|---|---|---|
| Authorization | Bearer token with your secret API key | yes |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| from | string | — | |
| to | string | yes | |
| status | enum: client_deposit_pending | client_deposit_detected | client_deposit_confirmed | client_deposit_expired | escrow_confirmed | settlement_pending | settled | failed | refunded | cancelled[] | — | |
| recoverable | enum: true | enum: false | — |
Example Request
Request
const response = await fetch('https://checkout-api.exodus-int.com/reports/payments/export?from=<from>&to=<to>&status=<status>&recoverable=<recoverable>', {
method: 'GET',
headers: {
Authorization: 'Bearer sk_live_xxxxxxxxxxxxxxxx',
},
});Responses
| Status | Description |
|---|---|
| 200 | A CSV export. |
| 400 | Validation error |
| 401 | Missing or invalid authentication |
| 403 | API key lacks the required scope |
Response body
string
Example Response
"payment_id,checkout_id,created_at,status,method,token,chain,token_amount,deposit_address,payer_address,on_chain_id,checkout_amount,checkout_currency,customer_email\ntz4a98xxat96iws9zmbrgj3a,chk_1234567890abcdef,2024-01-15T12:30:00.000Z,settled,TWO_STEP,USDC,eip155:1,50,0x5fbdb2315678afecb367f032d93f642f64180aa3,0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21,0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b,50,USD,[email protected]"Error Response
Error (e.g. 400)
{
"error": {
"type": "validation_error",
"message": "amount must be a positive number",
"param": "amount"
}
}