Print an expense sheet
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | expensesheets.json | |
General | Yes | Parameters described in overview | user=user&password=user&version=3.9 | Overview |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=expensesheetinputprint-2227 | |
Expense sheet | Yes | Expense sheet ID or UUID | expensesheet=1914 |
Example requests:
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 List print templates/files
example - returns -a Base64 Blob
http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.9&company=1&action=expensesheetinputprint%20-2227&expensesheet=2093
4022
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "PDF created successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"expensesheetAttachmentBase64Blob": "JVBJhaWxlcgo8PC9JRFs8ODg1MzyIDAgUi9Sb290IDEgMCBSL1NpemUgMTU+PgpzdGFydHhyZWYKOTcwNzkzCiUlRU9GCg==",
"expensesheetAttachmentFilename": "Expense Sheet1914.PDF"
}
]
}