products/<gtin>/families/ page.
When to use
- A brand sells one product in several sizes, flavours, colours or scents, each with its own GTIN, and wants a shopper who scans one to see the others.
- A variant was added or discontinued, the family’s default variant changed, or a variant’s type or value was recorded wrong.
Auth
X-API-Key header or OAuth token. Writing takes membership of the family’s organization with
the contribute role (Editor or Manager). A read-only key is refused with 403; a family,
member or product another organization owns answers 404, so the API never confirms it
exists.
Flow
- Find —
?gtin=returns the one family a product is in (a product is a variant in at most one family);?organization_id=lists your organization’s families. List with?external_ref=to find a family again on a re-run. - Create a family — the body is
organization_id,nameand optionallybrand,description,external_ref,owning_brand_id,category_id,country_of_originandaxes; fields are listed in the OpenAPI document at/products/api/v1/openapi.json.409ifexternal_refis already used in the organization. - Add a variant —
POST .../memberswith the product’sgtin,variant_type,variant_valueand optionallyis_default,positionandaxis_values. The product must be owned by the family’s organization (404otherwise);409if it is already a variant in this or another family. - Set the default —
PATCHthe member withis_default: true; the previous default is cleared in the same write, so a family has at most one. - Update a variant —
PATCHthe member with only the fields you change (variant_type,variant_value,is_default,position,axis_values). - Reorder —
POST .../members/reorderwith every member id in the new order, applied in one transaction. - Remove a variant —
DELETEthe member; the product itself is untouched. Deleting the family removes every membership and no product. - Read back — every create and update returns the saved row; list again to confirm.
403 for a read-only key, 404 for a family, member or product the caller cannot
see, 409 for a conflict, and 422 for an invalid value.
Notes
Record a family only when the brand sells the products as variants of one another, as its own website, packaging or catalog shows. The fields a brand writes are defined once on each model (ProductFamily.BRAND_EDITABLE_FIELDS
and ProductFamilyMember.BRAND_EDITABLE_FIELDS); the API schemas and the dashboard form are
pinned to those sets.