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

POST invoice/

Gebruikt voor

Adding an invoice. Returns the invoice id on successfull save.
Note that the invoice does not need to be valid at this point. The status of the invoice will be draft.
It is possible to create an invoice for a new customer and add the customer during the save process.
See the customer entity for the fields which can be used.
Wanneer customer_id achterwegen blijft wordt een nieuwe customer aangemaakt.

Authenticatie

Gebruiker dient ingelogd te zijn op beheerdersniveau.

Parameters

Parameter Description Required Example
date Factuur datum Yes 2012-06-12
customer Lijst met klantvelden No See check function

Response codes

  • 200 OK

Voorbeeld

Toevoegen factuur op datum 12 juni 2012.

POST api/rest/invoice/ 
Request: 
{
  "date": "2012-06-12"
}
Response: 
{
  "status": true,
  "invoice_id": 11,
  "messages": [
    "Invoice saved"
  ]
}
Onderstaand recht kan nodig zijn om deze functionaliteit te kunnen gebruiken.