Copies an expense line.
Expense Line Copy
| 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=expenselinecopy | |
| Identifier | Yes | Expense line ID or UUID | expenseline=3404 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expenselines.json?&version=6&company=1&action=expenselinecopy&expenseline=3404
Example request (legacy username/password):
http://<SERVER>/jsonapi/expenselines.json?&version=6&company=1&action=expenselinecopy&expenseline=3404&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Expense line 3468 created.",
"warningmessage": "",
"success": true,
"data": [
{
"expenselineSheetInternal": 1822,
"expenselineInternal": 3468,
"expenselineUuid": "832036984DD46B4DAA2F9A5C9B753A21"
}
]
}