Complete a BREAK_CASE task by breaking the sealed case in inventory-storage
POST/tasks/:id/case-breaks
A BREAK_CASE task (ADR 0054) is created when an each pick finds only a sealed case at its source. Completing it asks inventory-storage to break the container (POST /containers/{lpn}/case-breaks) into the loose bin, with an Idempotency-Key stable per task, and only then completes the task and publishes TaskCompleted. If inventory-storage cannot be reached the task stays claimed (503); a retry does not break twice.
Request
Responses
- 204
- 400
- 404
- 409
- 500
- 503
The case was broken and the task completed. No response body.
Response Headers
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.
The Idempotency-Key header is missing (idempotency-key-required) or not 1-128 printable ASCII characters (idempotency-key-invalid) on a POST, or the request body could not be read or contains a NUL character (malformed-request-body), or the request body is malformed JSON, a required field is missing or empty, or a field value is invalid (e.g. a task type outside the TaskType enum).
No task exists with this id.
The task has no active claim, another station owns it, it is already completed, it is not a BREAK_CASE task (not-case-break-task), or inventory-storage rejected the break (case-break-rejected). POST /tasks/{id}/completions on a BREAK_CASE task answers case-break-completion-required. The same Idempotency-Key reused with a different method, path or body is also a 409, problem type idempotency-key-reused.
An unexpected server-side failure (e.g. a repository or event-publisher error).
inventory-storage could not be reached; the task stays claimed and the call can be retried.