Returns a list of print files.
Expense Sheet Print Templates
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | expensesheets.json | |
| General | Yes | Parameters described in overview | Authorization: Bearer <access_token> header — see Synergist API Authentication | Structure of an API call |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=expensesheetinputprints | |
| Identifier | Yes | Expense sheet ID or UUID | expensesheet=1234 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=1&action=expensesheetinputprints&expensesheet=1790
Example request (legacy username/password):
http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=1&action=expensesheetinputprints&expensesheet=1790&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 2,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"menuClickAction": "EXPENSESHEETINPUTFILE REPORT -1790",
"menuDefault": false,
"menuDescription": "**Expense Sheet Template",
"menuExpanded": false,
"menuLevelName": "EXPENSESHEETINPUTFILE",
"menuParameter": "",
"menuParentName": "",
"menuSort": "",
"menuSortDirection": ""
},
{
"menuClickAction": "EXPENSESHEETINPUTFILE REPORT -2227",
"menuDefault": false,
"menuDescription": "Expense Sheet Template",
"menuExpanded": false,
"menuLevelName": "EXPENSESHEETINPUTFILE",
"menuParameter": "",
"menuParentName": "",
"menuSort": "",
"menuSortDirection": ""
}
]
}