Skip to main content

Update Product Packaging Requirements

PUT 

/api/v2/products/:product/packaging-requirements

Replace a product's packaging requirements. Send the whole list; an empty list removes them. They are not a recipe: the product stays a bought product.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: a Personal Access Token in the Authorization header with the products scope. Requires permission to edit products.

Body:

  • lines (array, required, up to 50; may be empty)
  • lines.*.product_id (integer, required): the packaging. Not the product itself, a bundle, a matrix product, a serial-tracked product, or listed twice.
  • lines.*.quantity (number, required, >0, max 1000000): per unit of the product.
  • lines.*.uom_id (integer, optional): unit of the quantity; default the packaging's stock unit. Needs a conversion to it.
  • lines.*.expected_scrap_percent (number, optional, 0-100): used on top of the quantity.
  • lines.*.notes (string, optional, max 1000)

Request​

Responses​

OK

Response Headers
    Content-Type