Validation


Before submitting the order, you can parse the order body JSON using the validate methods. If the JSON is a well-formed order you will get a HTTP status code 200 (OK) in the response with a isValid:true in the response message body where the content of the order contains valid data (such as driving license number is in an incorrect format). You cannot submit an order with invalid content.

If the JSON is malformed then you get HTTP status code 400 (bad request).

If the JSON is well formed but contains invalid values then you will get a HTTP status code 200 (OK) in the response with a isValid:false in the body, with the validation error messages. See some example validation errors below:

POST /api/v1/orders/candidateentry/validate
POST /api/v1/orders/cliententry/validate