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

When to use

  • A brand owner wants shoppers who scan a product to reach the terms of its warranty.
  • The warranty page moved to a new address.

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 warranty link. 404 while none is on file.
  • Set or replace — a product has at most one warranty link, so PUT with a body of url creates it, or replaces the address on file. The url must be an http:// or https:// address of at most 200 characters; 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 (WarrantyLink.BRAND_EDITABLE_FIELDS); the API schema and the dashboard form are pinned to that set.