Break a sealed case into loose eaches
POST/containers/:lpn/case-breaks
BreakCase (ADR 0045): the whole sealed case is opened and its eaches move to loose stock of the same owner in looseBin. Full-quantity and conserving: exactly unitsPerPack eaches leave the SEALED_CASE unit and arrive as loose stock, and the container goes SEALED, OPEN, EMPTY in one transaction, with CaseBroken and ContainerEmptied in the transactional outbox. A case that is reserved (a cases reservation) cannot be broken; a container that is not SEALED and stowed cannot either; looseBin must accept loose eaches and be in the container's site.
Behind the Idempotency-Key middleware (ADR 0018).
Request
Responses
- 200
- 400
- 404
- 409
- 500
The container, now EMPTY.
Response Headers
Present, with the value true, ONLY when this response is a replay of the stored answer for the request's Idempotency-Key (the handler did not run again). The first execution of a key never carries it, and neither does a retry of a refusal that was not stored (ADR 0053: concurrent-modification and every refusal that depends on state that can change): that retry executes again.
Malformed body, an empty looseBin, or the Idempotency-Key header absent.
The container or the bin is unknown.
The container is not SEALED (container-not-sealed) or not stowed (container-not-stowed), it is reserved (container-reserved), the unit does not hold exactly the case (break-not-conserving), looseBin does not accept loose eaches (bin-handling-unit-mismatch), looseBin is in another site (container-not-at-site) or has no room (bin-full), or a concurrent writer changed it (concurrent-modification), or the bin is an AutomatedStorage location, which holds container stock only (automated-storage-requires-container, ADR 0054). The same Idempotency-Key reused with a different method, path or body is also a 409 (idempotency-key-reused).
An unexpected internal error occurred.