Skip to Content
CheckoutAPI ReferenceReportsExport payments as CSV

Export payments as CSV

GET/reports/payments/export

Export 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

HeaderDescriptionRequired
AuthorizationBearer token with your secret API keyyes

Query Parameters

NameTypeRequiredDescription
fromstring
tostringyes
statusenum: client_deposit_pending | client_deposit_detected | client_deposit_confirmed | client_deposit_expired | escrow_confirmed | settlement_pending | settled | failed | refunded | cancelled[]
recoverableenum: 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

StatusDescription
200A CSV export.
400Validation error
401Missing or invalid authentication
403API 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"
  }
}

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help