Documentation
Difficulty level:
This section only applies if the module Invoice is active.
API - Invoice - PUT invoice/deleteline
PUT invoice/deleteline
Used for
Deletes a line from an invoice. The linenumber needs to exists and cannot be the total line.
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 |
Response codes
- 200 OK
Example
Deleting a line from an invoice with invoice id 12.
PUT api/rest/invoice/deleteline
Request:
{
"invoice_id": "12",
"linenumber": "2"
}
Response:
{
"status": true,
"invoice_id": 12,
"messages": [
"Invoice updated - Line 2 deleted"
]
}





