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_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.run_idstringrequiredThe run's ID, like
drun_01k8qs5s….stop_idstringrequiredThe stop's ID, like
dstop_01k8qs5s….
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
outcomeenumrequiredWhat happened at a stop.
- delivered
- failed
cash_collectedobject · or nullFor
delivered: the cash taken, in the order's currency; the amount due when absent.reasonstring · or nullFor
failed: why.
Returns
200 The run.
Errors
- 409The stop is already marked, or the run isn't out.
- 422
validation_failedValidation failed.