Returns sheets if they have issues and cannot be approved.
Expense Sheet Return Multi
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | expensesheets.json | |
| General | Yes | Parameters described in overview | Authorization: Bearer <access_token> header — see Synergist API Authentication | Structure of an API call |
| Action | Yes | The action to perform | action=expensesheetsreturn | |
| Identifier | Yes | Expense sheet ID or UUID | expensesheet=[1234,1235] |
If the sheets are Approved (A), the sheet statuses get set to Submitted (S). If the sheets are not Approved the sheets get set to Returned (T). Lines retain their original statuses.
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=expensesheetsreturn&expensesheet=[1234,1235]
Example request (legacy username/password):
http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=expensesheetsreturn&expensesheet=[1234,1235]&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "2 of 2 expense sheets returned.",
"warningmessage": "",
"success": true
}