Copies an expense sheet.
Expense Sheet Copy
| 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 |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=expensesheetcopy | |
| Identifier | Yes | Expense sheet ID or UUID | expensesheet=1791 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=1&action=expensesheetcopy&expensesheet=1791
Example request (legacy username/password):
http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=1&action=expensesheetcopy&expensesheet=1791&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Expense sheet 1791 copied to 1815.",
"warningmessage": "",
"success": true,
"data": [
{
"expensesheetInternalRef": 1815,
"expensesheetUuid": "A501A22A052E104B8912EB9F73544169"
}
]
}