Declare a pack level
PUT/products/:sku/pack-levels/:level
Declares the pack level level of a registered product with its GTIN
(ADR 0011). EACH has no child and exactly one unit per pack; every
other level names childGtin (an ACTIVE lower level of this product)
and qtyOfChild (2 to 1000000). unitsPerPack, the direct factor to
eaches, is derived from the chain when omitted and must equal it when
given. dims are the declared dimensions of ONE pack (ADR 0002 bounds);
a pack must not weigh less than its contents when both weights are
known.
Repeating the identical declaration returns 200 and changes nothing.
isOrderable, isDespatchUnit and dims of an active level can be
changed in place by declaring the same gtin again. The content
quantity (childGtin, qtyOfChild, unitsPerPack) of an active level
can NOT change: that is 409 pack-quantity-immutable. A new quantity
is declared with a NEW gtin at the same level, which end-dates the
old level (reason superseded, kept and still resolvable) in the same
transaction; the levels above it must be declared again by the caller.
Returns 201 when the product had no level there, else 200.
Request
Responses
- 200
- 201
- 400
- 404
- 409
- 500
The level after the call (already declared, changed in place, or a new GTIN that superseded the old one).
The product had no level there; it is declared now.
The level, a GTIN, a quantity, a dimension, a reason or the JSON body is invalid.
The SKU is not registered.
The request conflicts with the product's pack levels or another writer.
Unexpected server error.