Skip to main content
Programmatic equivalent of the dashboard’s products/<gtin>/recyclability/ page, which lists each packaging element with its assessment.

When to use

  • A brand owner needs to record how recyclable each packaging element is, from a recycling label (How2Recycle, OPRL and the like) or the brand’s own recycling guidance.
A packaging element has at most one recyclability assessment. Record the element first with manage-product-packaging.

Auth

X-API-Key header or OAuth token. The caller must be a member of the product’s organization with the contribute role (Editor or Manager); a read-only key is refused with 403. Packaging the caller cannot see, or that another organization owns, answers 404.

Flow

  • List — list the product’s packaging elements, then its assessments (?gtin= filters both). An element with no assessment is the gap to fill.
  • Create — the body names the element with packaging_id; fields are listed in the OpenAPI document at /sustainability/api/v1/openapi.json. Returns 201, or 409 if the element already has an assessment: PATCH that one instead.
  • Update — PATCH only the fields to change; null clears an optional field. The packaging element cannot change: delete and recreate to move an assessment.
  • Delete — removes one assessment.
  • Read back — every write returns the saved row; GET the list again to confirm it shows the change.
Returns 403 for a read-only key, 404 for a row the caller cannot see, 409 for a second assessment of one element, 422 for an invalid value.

Notes

API writes go through the audited @org_action sustainability record services. Fields a brand can write are defined once on the model (RecyclabilityInfo.BRAND_EDITABLE_FIELDS), which the dashboard form also uses.