Copies an expense line.
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | expenselines.json | |
General | Yes | Parameters described in overview | user=user&password=user | 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:
http://<SERVER>/jsonAPI/expenselines.json?user=user&password=user&version=3.9&company=1&action=expenselinecopy&expenseline=3404
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Expense line 3468 created.",
"warningmessage": "",
"success": true,
"data": [
{
"expenselineSheetInternal": 1822,
"expenselineInternal": 3468,
"expenselineUuid": "832036984DD46B4DAA2F9A5C9B753A21"
}
]
}