Errors
One error format, and what each status code means.
Every error has the same shape:
json
{"statusCode": 400,"message": "Provider uber is not enabled for your account.","error": "Bad Request"}
When the request itself is invalid, message is an array with one entry per problem:
json
{"statusCode": 400,"message": ["customer.phoneNumber should not be empty"],"error": "Bad Request"}
Status codes
400
The request is invalid, no fleet can take it, the price went up, an address cannot be found, or the delivery is already finished or picked up.
401
The API key is missing, wrong or turned off (
Invalid API key.).403
New quotes and deliveries are blocked: an invoice is past due or the credit limit is reached. See Billing & invoices.
404
The delivery, restaurant or invoice does not exist, or belongs to another account.
409
Another request is creating the same delivery (
externalId). Retry in a few seconds.5xx
An error on our side or at the fleet. Retrying Create delivery with the same
externalId is safe.Each endpoint lists its own errors, with the exact messages.