Returns a sheet if it has issues and cannot be approved.
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | expensesheets.json | |
General | Yes | Parameters described in overview | user=user&password=user&version=3.9 | Overview |
Action | Yes | The action to perform | action=expensesheetreturn | |
Identifier | Yes | Expense sheet ID or UUID | expensesheet=1234 |
If the sheet is Approved (A), the sheet status gets set to Submitted (S). If the sheet is not Approved the sheet gets set to Returned (T). Lines retain their original statuses.
Example request:
http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.9&action=expensesheetreturn&expensesheet=1234
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Expense sheet returned.",
"warningmessage": "",
"success": true
}