Retire the active pack level of a catalogue item (RetirePackLevel)
POST/catalog-items/:catalogItemId/packaging/:level/retirements
Retires the active definition at the level and publishes CatalogItemPackLevelRetired. The definition is kept (active false), its GTIN is never reusable. A level that only has retired history is returned unchanged and publishes nothing; a level never declared is 404 pack-level-not-found. Takes no body.
Request
Responses
- 200
- 400
- 404
- 409
- 413
- 422
- 500
The item with its packaging.
Response Headers
"true" when the response replays the stored answer of the same Idempotency-Key (only a success, a final refusal or a recorded outcome is stored; see the Idempotency-Key parameter).
idempotency-key-required or idempotency-key-invalid (state-changing routes); invalid-limit, invalid-cursor or unknown-query-parameter (list reads); malformed-request-body (bad JSON, an unknown field, a wrong type, an empty body, trailing data or a NUL character) or malformed-request-query (a NUL character).
not-found (unknown catalogItemId) or pack-level-not-found.
concurrent-update (ErrConcurrentUpdate) after one automatic retry, or idempotency-key-reused.
request-body-too-large: the request body is over 64 KiB.
invalid-pack-level.
internal-error: an unmapped failure; the detail never leaks the internal message.