Submits a single expense sheet.
Expense Sheet Submit Single
| 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=expensesheetsubmit | |
| Identifier | Yes | Expense sheet ID or UUID | expensesheet=1234 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=expensesheetsubmit&expensesheet=1234
Example request (legacy username/password):
http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=expensesheetsubmit&expensesheet=1234&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Expense sheet submitted.",
"warningmessage": "",
"success": true
}