Map Single Product to SKU.io Product
POST//:domain/api/amazon/:integrationInstance/products/:product/map
Per-row mapping endpoint used by the unified products mapping modal (Faire/Shopify parity). Maps a single Amazon product to either an existing SKU.io product (product_id) or a subscription offering (subscription_offering_id).
Body (one of, required):
product_id(int, required_without:subscription_offering_id, must exist inproducts) — link to a SKU.io product.subscription_offering_id(int, required_without:product_id, must exist insubscription_offerings) — link to a subscription offering.
Behavior:
- If the Amazon product is already mapped (
productListingexists), the existing row is updated in place — supports the Remap flow. - Otherwise a new
ProductListingrow is created withsales_channel_id= the instance's sales channel,listing_sku=seller_sku,document_type=AmazonProduct::class. - After mapping, any unmapped
SalesOrderLinerows matching this listing are dispatched toGenerateMapSalesOrderLinesToSalesChannelProductsJobsJobso back-fill happens automatically.
Returns HTTP 201 with the refreshed AmazonProductResource.
Named route: amazon.products.map (single).
Request
Responses
- 201
- 422
Created
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type