Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • driver_idstringrequired

    TypeID with the drv prefix.

  • daydaterequired
  • order_idsarray of stringsrequired

    1–60 open local delivery orders.

  • location_idstring · or null

    Where 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.
  • 422validation_failedValidation failed.