Skip to main content

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​

The container, now EMPTY.

Response Headers
    Idempotency-Replayed

    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.