Skip to main content

Complete a task on behalf of the station that claimed it

POST 

/tasks/:id/completions

Finishes the task's lifecycle (Claimed -> Completed) and publishes TaskCompleted. Only the owning station's claim may complete it, and a completed task can never be completed again — this endpoint enforces the no-double-complete invariant, returning 409 on a repeat call rather than silently succeeding twice. A RELOCATE task (a slot-plan move, ADR-0047) completes only with the operator's confirmation: quantity (counted, at least 1) and the bins the move left open — fromBin for an Assign, toBin for a Vacate (see the task's relocation). A scan of a side the plan fixed must equal the planned bin. The confirmed move is published on TaskCompleted (sku, from_bin, to_bin, quantity, relocation_ref). A REPLENISH task (a pick-face replenishment, ADR-0050) completes only with quantity (counted, at least 1); fromBin and toBin are optional scans that must equal the task's planned replenishment bins. The confirmed move is published on TaskCompleted (sku, from_bin, to_bin, quantity, request_ref). Any other task type takes none of these fields.

Request​

Responses​

Task completed. No response body.

Response Headers
    Idempotency-Replayed

    Present, with the value true, ONLY when this answer is the stored replay of an earlier request that used the same Idempotency-Key (the handler did not run again). The first execution never carries it.