Map Single Variant to SKU.io Product
POST/api/faire/instances/:integrationInstance/products/:option/map
Maps a single Faire product variant (option) to an existing SKU.io product. Used by the per-row Map button on the Faire products page.
If the variant is already mapped, the existing product_listings row is updated in place (no duplicate is created) — this powers the Remap flow as well.
Path Parameters:
integrationInstance- Faire integration instance ID. Returns 404 if the variant doesn't belong to this instance.option- Faire product option (variant) ID.
Body:
product_id(required, integer, exists:products,id) - The SKU.io product ID to map this Faire variant to.
Response:
Returns the updated FaireProductOptionDetail resource (same shape as GET .../products/:option), with product populated to the newly-linked SKU.io product.
Errors:
404- The variant does not belong to the given integration instance.422-product_idis missing or does not exist inproducts.500- The Faire integration instance has no associatedsales_channelrow (configuration issue).\n\nNote:faire_product_idis the Faire-issued product ID (e.g.p_3bz2tdhtkq), sourced from the parent FaireProduct. It is NOT the internalfaire_product_options.faire_product_idforeign key.
Request
Responses
- 200
Successful response