Skip to content

Finish delivery stop

POST/admin/v1/stores/{store_id}/delivery/runs/{run_id}/stops/{stop_id}/finish
  • Idempotency-Key supported

Mark a stop for the driver: delivered (with the cash taken) or not, and why.

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.

  • run_idstringrequired

    The run's ID, like drun_01k8qs5s….

  • stop_idstringrequired

    The stop's ID, like dstop_01k8qs5s….

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

  • outcomeenumrequired

    What happened at a stop.

    • delivered
    • failed
  • cash_collectedobject · or null

    For delivered: the cash taken, in the order's currency; the amount due when absent.

  • reasonstring · or null

    For failed: why.

Returns

200 The run.

Errors

  • 409The stop is already marked, or the run isn't out.
  • 422validation_failedValidation failed.