Documentation
Difficulty level:
This section only applies if the module Invoice is active.
API - Invoice - PUT invoice/updateline
PUT invoice/updateline/{id}
Used for
Updating a line of an invoice. It is possible to update only one field, or a combination of fields. See list of possible fields in function addline.
Authentication
Requires authentication.
Parameters
| Parameter | Description | Required | Example |
|---|---|---|---|
| invoice_id | invoice id | Yes | 12 |
| linenumber | id of the line, where the total line is number 0 | Yes | 1 |
| <fields> | See possible fields in function addline | No |
Response codes
- 200 OK
Example
Updating a line of an invoice with invoice id 12.
PUT api/rest/invoice/updateline
Request:
{
"invoice_id": "12",
"linenumber": "2",
"desc": "after update"
}
Response:
{
"status": true,
"invoice_id": 12,
"messages": [
"Invoice updated - Line 2 updated"
]
}





