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.
Parameter | Description | Examples |
---|---|---|
API | The API area | expensesheets.json |
Action | Expense Sheet All | &action=expensesheetall |
Action | Multiple Expense Sheet All | &action=expensesheetsall |
<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 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
}