Restaurants
Pickup locations come from your deliveries: no setup ahead, one id per restaurant.
You do not register restaurants ahead of time. Every quote and delivery carries a pickup object with your own id of the restaurant in pickup.externalId.
- The first request with a new
externalIdcreates the pickup location on our side. Later requests reuse it. - A different address, name, phone or instructions for the same
externalIdupdates the location. - Keep
externalIdstable: a new id is a new restaurant.
The pickup object
Your own id of the restaurant (store id). Keep it the same across requests: a new id is a new restaurant.
Restaurant name, shown to the driver and to the customer on tracking.
Restaurant phone, for the driver.
Pickup instructions for the driver.
Where the driver picks up. See Address.
To set a restaurant up before its first delivery, use Save pickup location. List pickup locations shows all of them.
Coordinates
Send latitude and longitude with every address when you have them. Without them we geocode the address, and one we cannot find is refused:
{"statusCode": 400,"message": "The pickup address could not be found. Send its latitude and longitude.","error": "Bad Request"}
400 Pickup location <id> is disabled. Contact us to turn it back on.