Requests & responses
Every data in the request body should be sent in JSON format inside request body.
Default response in our API contains the following fields:
- body - array of object or objects
- success - boolean
- errors - array of string, only when success is false
Example of success response:
{
"success": true,
"body": {
"calculatedPrice": 44.99
}
}
Example of error response:
{
"success": false,
"body": "Validation errors. Invalid data provided.",
"errors": [
"Collection date has to be next working day.",
"When cod field is provided, it has to be numeric value (dot separated)."
]
}
