Expense sheet all

Expense Sheet All

Calling the expenses API with an action of expensesheetall retrieves a response of success/fail status for the request. Expensesheetall performs the following actions on the sheet (approve+process+post) providing that user has the correct permissions to do so.

ParameterDescriptionExamples
APIThe API areaexpensesheets.json
ActionExpense Sheet All&action=expensesheetall
ActionMultiple Expense Sheet All&action=expensesheetsall
<General>Parameters described in overviewuser=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 approve/process/post an expense sheet

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

Request to approve/process/post multiple expense sheet

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

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "Expense sheet approved, processed and posted.",
  "warningmessage": "",
  "success": true
}