Documentation
Difficulty level:
This section only applies if the module CRM is active.
API - Order - POST order/check
POST order/check
Used for
Function to check if there are any issues with the order before adding the order. The order 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 | order date | Yes | 2012-06-12 |
| customer | Array of customer fields | No | Customer fields |
Response codes
- 200 OK
Example
Check issues for an invoice with order date equals 12th of June 2012.
POST api/rest/order/check/
Request:
{
"date": "2012-06-12",
"customer": {
"lastname": "Test lastname",
"email": "info@teqa.nl"
}
}
Response:
{
"status": true,
"messages": [
"No issues found"
]
}





