Documentation
Difficulty level:
API - Invoice - POST invoice/check
POST invoice/check
Used for
Function to check if there are any issues with the invoice before adding the invoice. The invoice will not be saved in this function.
Only a status message will be displayed. This can be useful to validate user input.
When customer_id is ommited a new customer wil be created.
Authentication
Requires authentication.
Parameters
| Parameter | Description | Required | Example |
|---|---|---|---|
| date | invoice date | Yes | 2012-06-12 |
| customer | Array of customer fields | No | Customer fields |
Response codes
- 200 OK
Example
Check issues for an invoice with invoice date equals 12th of June 2012.
POST api/rest/invoice/check/
Request:
{
"date": "2012-06-12",
"customer": {
"lastname": "Test lastname",
"email": "info@teqa.nl"
}
}
Response:
{
"status": true,
"messages": [
"No issues found"
]
}





