Reports
Download report (PDF)
GET
/api/v1/accounting/report/pdfGenerates the same report as a downloadable PDF, and stores a copy for later retrieval via the report history.
Requires Authorization
ADMIN, ACCOUNTANT only
Session
Query parameters
fromstring | ISO date. |
tostring | ISO date. |
Request
curl --request GET \
--url https://api.swiftgoma.com/api/v1/accounting/report/pdf \
--header 'Authorization: Bearer <access_token>'200Example response
{
"success": true,
"data": {
"message": "Returns application/pdf — not a JSON body."
}
}