Print timesheet

Print timesheets to file or browser

Print Timesheet

Print timesheets to file or browser

Parameter

Description

Examples

API

The API area

tspending.json

Action

Print timesheets to file or base64

&action=timesheetfile/timesheetprint

Parameters described in overview

user=user&password=user&version=3.3

Resource

User Code

&resource=1/ME

Company

The company context

&company=1

Type

Type of layout

&type=-2183

Example requests:
Request to a timesheet to base64

http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.3&action=timesheetprint&resource=1/jon&company=1&type=-2183

Request to a timesheet to the browser

http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.3&action=timesheetfile&resource=1/jon&company=1&type=-2183

Example response for timesheetprint:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "PDF created successfully.",
  "warningmessage": "",
  "success": true,
  "data": [..]
}