products/<gtin>/merchant-links/ page.
When to use
- A brand owner wants shoppers who scan a product to see where to buy it online, with a direct link to the product at each store.
- A store moved the product to a new address, or stopped selling it.
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 or
link another organization owns answers 404, so the API never confirms it exists.
Flow
- List — every merchant link of the product in
gtin, ordered by name, with each link’sid,name,urland the read-onlymerchant_name. - Create — the body is
gtin,name(the store’s name) andurl; fields are listed in the OpenAPI document at/products/api/v1/openapi.json. Theurlmust start withhttps://. - Update —
PATCHwith only the fields you are changing, addressed by the link’sid. - Delete — removes the link permanently.
- Read back — every create and update returns the saved link; list again to confirm.
403 for a read-only key, 404 for a product or link the caller cannot see, and 422
for an invalid value, such as an address that is not https://.
Notes
Closient staff can attach a merchant from Closient’s catalog to a link (merchant_name), and the
hosted page then shows that merchant’s name in place of name. The API cannot change that
attachment.
The fields a brand writes on a link are defined once on the model
(MerchantLink.BRAND_EDITABLE_FIELDS); both API schemas and the dashboard form are pinned to
that set.