Skip to main content

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​

The retired level.

Response Headers
    Idempotency-Replayed

    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).