Documentatie
Deze sectie is alleen van toepassing indien de module Factuur actief is.

PUT invoice/deleteline

Used for

Deletes a line from an invoice. The linenumber needs to exists and cannot be the total line.

Authenticatie

Gebruiker dient ingelogd te zijn op beheerdersniveau.

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"
  ]
}
Onderstaand recht kan nodig zijn om deze functionaliteit te kunnen gebruiken.