Order Validation
Validate an order model and return if the order is possible or not.
Request Body
Name
Type
Description
{
"message": "Validation Passed. You can now use /v2/Orders endpoint to create an order.",
"statusCode": "OK",
"requestDetails": {
"userId": "00000000-0000-0000-0000-000000000000",
"endpoint": "/v2/Orders/Validate",
"date": "2021-11-07T15:01:06.776251Z",
"timestamp": 1636297266,
"userAgent": "PostmanRuntime/7.28.4",
"clientIp": "::1"
},
"data": {
"price": {
"unitPrice": 55,
"totalPrice": 55
}
}
}{
"errors": [
{
"code": "InsufficientQuantityAvailable",
"message": "Insufficient quantity available for this kind of products/locations."
}
],
"message": "Request failed.",
"statusCode": "BadRequest",
"requestDetails": {
"userId": "00000000-0000-0000-0000-000000000000",
"endpoint": "/v2/Orders/Validate",
"date": "2021-11-07T15:02:02.753931Z",
"timestamp": 1636297322,
"userAgent": "PostmanRuntime/7.28.4",
"clientIp": "::1"
}
}Last updated