Retire a pack level
POST/products/:sku/pack-levels/:level/retirements
End-dates the ACTIVE definition at level (effectiveTo = now). The
definition and its GTIN are kept: the GTIN still resolves, inactive,
and is never assigned again. The body is optional; reason (1 to 200
characters, no control characters) defaults to retired. Retiring a
level that is already retired returns 200 with that level and changes
nothing; a level the product never had is 404 pack-level-not-found.
Levels above the retired one are not retired by this call.
Request
Responses
- 200
- 400
- 404
- 409
- 500
The retired level.
Response Headers
true when this answer is the stored response of an earlier request with the same Idempotency-Key (the operation did not run again). Never present on the first execution. A refusal whose problem type is RETRYABLE (nothing committed, the answer depends on state that can change) is never stored, so it never replays: the same key executes again (ADR 0015).
The level, a GTIN, a quantity, a dimension, a reason or the JSON body is invalid.
The product is not registered, or never had that level.
Another request changed the product between this request's read and write (concurrent-modification), or the Idempotency-Key was already used with a different request (idempotency-key-reused).
Unexpected server error.