Skip to main content
Programmatic equivalent of the dashboard’s products/<gtin>/register-product/ page.

When to use

  • A brand owner wants shoppers who scan a product to register it (to activate a warranty, or to be told about a recall), prefilled with the identifiers from the scan.
  • The registration page moved, or its call to action changed.

Auth

X-API-Key header or OAuth token. Writing takes membership of the product’s organization with the contribute role (Editor or Manager). A read-only key is refused with 403; a product another organization owns answers 404, so the API never confirms it exists.

Flow

  • Read — the product’s registration link. 404 while none is on file.
  • Set or replace — a product has at most one registration link. PUT with a body of url, label and description creates it, or replaces the whole link: a field left out is cleared, so send the label and text on file with any correction. The url must start with https:// and may hold scan tokens such as {gtin}, {lot}, {serial} and {expiry}, which the hosted page fills from the scan; any other {...} is refused. Fields are listed in the OpenAPI document at /dashboard/api/v1/openapi.json.
  • Delete — removes the link permanently. 404 if none is on file.
  • Read back — PUT returns the saved link; GET again to confirm.
Returns 403 for a read-only key, 404 for a product the caller cannot see, and 422 for an invalid value.

Notes

The fields a brand writes on the link are defined once on the model (RegisterProduct.BRAND_EDITABLE_FIELDS); the API schema and the dashboard form are pinned to that set.