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.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
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).
Note: faire_product_id is the Faire-issued product ID (e.g. p_3bz2tdhtkq), sourced from the parent FaireProduct. It is NOT the internal faire_product_options.faire_product_id foreign key.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.