Documentation
This section only applies if the module Invoice is active.

PUT invoice/addline

Used for

Adding a line to an invoice.

Authentication

Requires authentication.

Parameters

Parameter Description Required Example
invoice_id invoice id Yes 12
desc Description No This is a description
from From Date No 2012-01-12
till Till Date No 2012-01-12
fromtime From time No 12:15
tilltime Till time No 13:20
subtotal Sub total of the line No 10,25
price Price No 5,89
months Number of months No 3
nights Number of nights No 0
number Number of places No 2
currency Currency No EUR
vat VAT amount No 1,90
vat_exclusive VAT exclusive amount No 1,78
prt_desc Participant description No Adult
obj_desc Object description No Squash
account_code Account code No 8000
account_sign Account sign No DB

Response codes

  • 200 OK

Example

Adding line to an invoice with invoice id 12.

PUT api/rest/invoice/addline
Request: 
{
  "invoice_id": "12",
  "desc": "Squashen",
  "from": "2011-11-23",
  "fromtime": "13:30:00",
  "subtotal": "48,00",
  "price": "48,00",
  "currency": "EUR"
}
Response: 
{
  "status": true,
  "invoice_id": 12,
  "messages": [
    "Invoice updated - Line added"
  ]
}
The following right may be necessary in order to use this functionality.