Export Ledger
Export transactions as a CSV file for compliance reporting, accounting, or offline analysis. Supports the same filters as the list endpoint.
GET/transactions/export
Export transactions as a CSV file. Supports the same filters as the list endpoint.
Requires API key authentication
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_id | string | optional | Filter by agent ID. |
| status | string | optional | Filter by status: completed, reversed, failed. |
| start_date | string | optional | ISO 8601 start date for filtering. |
| end_date | string | optional | ISO 8601 end date for filtering. |
The CSV includes all transaction fields. Large exports may take several seconds to generate.
Code Examples
BASH
curl -X GET "https://api.alsorn.com/transactions/export?agent_id=agent_7f3k9x2m&status=completed" \ -H "Authorization: Bearer YOUR_API_KEY" \ -o transactions.csv