Prints timesheets to file or browser.
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | tspending.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=timesheetfile | |
Resource | Yes | Resource code | resource=1/ME | |
Type | Yes | Type of layout | type=-2183 |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&action=timesheetfile&resource=1/jon&company=1&type=-2183
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "PDF created successfully.",
"warningmessage": "",
"success": true,
"data": [..]
}