Expenses
Export expenses (CSV)
GET
/api/v1/expenses/export/csvExports expenses as a CSV file, respecting the same filters as the list endpoint.
Requires Authorization
ADMIN, ACCOUNTANT only
Session
Query parameters
statusstring | |
categorystring |
Request
curl --request GET \
--url https://api.swiftgoma.com/api/v1/expenses/export/csv \
--header 'Authorization: Bearer <access_token>'200Example response
{
"success": true,
"data": {
"message": "Returns text/csv — not a JSON body."
}
}