Create delivery run
POST
/ admin/ v1/ stores/ {store_id}/ delivery/ runs- Idempotency-Key supported
Start a run for a driver: stops ordered nearest first from the location's pin.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
driver_idstringrequiredTypeID with the
drvprefix.daydaterequiredorder_idsarray of stringsrequired1–60 open local delivery orders.
location_idstring · or nullWhere the driver sets off from: stops are ordered nearest first from its pin.
Returns
201 The run.
Errors
- 409An order is already on a run.
- 422
validation_failedValidation failed.