vDrive
vDrive API Docs
vgrubs.com

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 externalId creates the pickup location on our side. Later requests reuse it.
  • A different address, name, phone or instructions for the same externalId updates the location.
  • Keep externalId stable: a new id is a new restaurant.

The pickup object

externalIdstring, up to 100required

Your own id of the restaurant (store id). Keep it the same across requests: a new id is a new restaurant.

namestring, up to 255required

Restaurant name, shown to the driver and to the customer on tracking.

phonestring, up to 30

Restaurant phone, for the driver.

instructionsstring, up to 500

Pickup instructions for the driver.

addressAddressrequired

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:

json
{
"statusCode": 400,
"message": "The pickup address could not be found. Send its latitude and longitude.",
"error": "Bad Request"
}
A restaurant we turned off refuses new deliveries with 400 Pickup location <id> is disabled. Contact us to turn it back on.