Export subscription charges as CSV
GET/reports/subscription-charges/exportExport subscription charges — succeeded and failed — as a CSV file for reconciliation and dunning analysis.
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: succeeded | failed[] | — |
Example Request
Request
const response = await fetch('https://checkout-api.exodus-int.com/reports/subscription-charges/export?from=<from>&to=<to>&status=<status>', {
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
"charge_id,subscription_id,subscriber,charge_nonce,amount,fee,kind,status,failure_reason,tx_hash,block_number,charged_at\nsubc_6789abcdef012345,0x9f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a,0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21,3,9990000,0,cycle,succeeded,,0x8a9c67b2d1e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9,12346789,2026-05-19T12:02:18.000Z"Error Response
Error (e.g. 400)
{
"error": {
"type": "validation_error",
"message": "amount must be a positive number",
"param": "amount"
}
}