Documentatie
difficulty level:
Module textPhrase before ModuleName Factuur Module textPhrase after ModuleName.
API - Invoice - POST invoice/
POST invoice/
Verwendet für
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.
Wenn die customer_id weggelassen wird, wird ein neuer Kunde angelegt.
Authentifizierung
Der Benutzer muss auf Administratorebene angemeldet sein.
Parameters
| Parameter | Description | Required | Example |
|---|---|---|---|
| date | Rechnungsdatum | Yes | 2012-06-12 |
| customer | Liste mit Kundenfeldern | No | See check function |
Response codes
- 200 OK
Beispiel
Hinzufügen einer Rechnung mit Datum 12. Juni 2012.
POST api/rest/invoice/
Request:
{
"date": "2012-06-12"
}
Response:
{
"status": true,
"invoice_id": 11,
"messages": [
"Invoice saved"
]
}






