Expense Sheet Print (Create a file)

Downloads a document into the browser

Expense Sheet Print (Create a file)

Print an expense sheet

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaexpensesheets.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=expensesheetfile-2227
Expense sheetYesExpense sheet ID or UUIDexpensesheet=1234

Note: The number displayed after the action parameter is the internal ID of the requested HM reports layout used to build the document.
To find the available template IDs see Expense Sheet Print Templates

Example requests (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=1&action=expensesheetfile-2227&expensesheet=1234

Example request (legacy username/password):

http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=1&action=expensesheetfile-2227&expensesheet=1234&user=<username>&password=<password>

Example response:

Downloads a PDF file to the browser (binary response, not JSON).