Resubmits an expense line.
Expense Line Resubmit
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | expenselines.json | |
| General | Yes | Parameters described in overview | Authorization: Bearer <access_token> header — see Synergist API Authentication | Structure of an API call |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=expenselineresubmit | |
| Identifier | Yes | Expense line ID or UUID | expenseline=3462 | |
| ResubmitReason | No | Reason for resubmission | resubmitreason=resubmitreason |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expenselines.json?&version=6&company=1&action=expenselineresubmit&expenseline=3462&resubmitreason=resubmitreason
Example request (legacy username/password):
http://<SERVER>/jsonapi/expenselines.json?&version=6&company=1&action=expenselineresubmit&expenseline=3462&resubmitreason=resubmitreason&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Expense line re-submitted.",
"warningmessage": "",
"success": true,
"data": [
{
"expensesheetInternalRef": 1824,
"expensesheetUuid": "A500CC58C6D2C741A3B02674BE2B3576"
}
]
}