Get quotes
POST
/quotesReturns the offers of the fleets enabled for your account for one delivery, cheapest first. It is optional: Create delivery picks a fleet on its own when you do not choose one.
Ask when the order is ready to be delivered, not on every change in the cart.
A quote is not a reservation: the price is checked again when you create the delivery. Pass
maxPrice there to refuse a price that went up.Request body
pickupPickuprequired
The restaurant, by your own id. Created on its first use, see Restaurants.
dropoffAddressrequired
Where the food goes.
customerCustomerrequired
Who gets the food.
notesstring, up to 1000
Dropoff instructions for the driver.
pickupAtstring (ISO 8601)
When the food is ready. Missing, or within 5 minutes from now, means as soon as possible.
tipinteger, 0 or more
Customer tip, cents.
subTotalinteger, 0 or more
Order subtotal, cents. Some fleets need the order value.
totalinteger, 0 or more
Order total, cents.
Response
200OK
The offers, cheapest first. An empty data means no fleet can take this address or time right now.
dataQuote[]
One offer per fleet that can take the delivery.
Errors
400
A field is missing or invalid.
message is an array, one entry per problem.400
The pickup address could not be found. Send its latitude and longitude.An address came without coordinates and could not be geocoded. The same text says dropoff for the dropoff address.401
Invalid API key.The key is missing, wrong or turned off.403
Access denied: an invoice is past due. Pay it to resume deliveries.An invoice is past due. See Billing.403
Access denied: the credit limit is reached. Pay the open invoices to continue.What you owe reached your credit limit, if your account has one.