vDrive
vDrive API Docs
vgrubs.com

Save pickup location

PUT/pickup-locations/{externalId}

Creates the restaurant, or updates it if the id exists. Optional: Create delivery does the same with the pickup it gets, so you only need this to set a restaurant up ahead of time.

Path parameters

externalIdstringrequired

Your restaurant id, pickup.externalId in a delivery.

Request body

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.

Response

200OK
externalIdstring

Your restaurant id.

namestring

Restaurant name.

phonestring | null

Restaurant phone, for the driver.

instructionsstring | null

Pickup instructions for the driver.

addressAddress

As last sent; fields you did not send are null.

timeZonestring

The restaurant time zone (IANA), e.g. America/New_York.

activeboolean

false once we turn the restaurant off: its new deliveries are refused.

createdAtstring

ISO 8601.

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.