Transactions & Ledger
Export ledger (CSV)
GET
/api/v1/payments/ledger/export/csvExports the payment ledger as a CSV file, respecting the same filters as the JSON endpoint.
Requires Authorization
ADMIN, ACCOUNTANT only
Session
Query parameters
sourcestring | |
directionstring | IN or OUT. |
Request
curl --request GET \
--url https://api.swiftgoma.com/api/v1/payments/ledger/export/csv \
--header 'Authorization: Bearer <access_token>'200Example response
{
"success": true,
"data": {
"message": "Returns text/csv — not a JSON body."
}
}