Expense sheet return

Expense Sheet Return

Calling the expenses API with an action of expensesheetreturn retrieves a response of success/fail status for the request. Expensesheetreturn allows a current user with approval rights to return a sheet if it has issues and cannot be approved. If the sheet is A approved, the sheet status gets set to S submitted. If the sheet is not A approved the sheet gets set to T Returned. Lines retain their original statuses.

Parameter

Description

Examples

API

The API area

expensesheets.json

Action

Expense Sheet Return

&action=expensesheetreturn

Action

Multiple Expense Sheet Return

&action=expensesheetsreturn

<General>

Parameters described in overview

user=user&password=user&version=3.3

<input mandatory>Expense ID:

Expense Sheet ID

&expensesheet=1234

OR

<input mandatory>UUID:

Expense Sheet UUID

&uuid=1234567489

Example requests:
Request to return an expense sheet

http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.3&action=expensesheetreturn&expensesheet=1234

Request to return multiple expense sheets

http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.3&action=expensesheetsreturn&expensesheet=[1821,1820]

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "Expense sheet returned.",
  "warningmessage": "",
  "success": true
}