Create SKU Product From Magento
POST/api/magento2/integration-instances/:magento2IntegrationInstance/products/:product/create-sku-product
Create a brand-new SKU.io product seeded from this Magento 2 product (with optional user overrides + a field-mapping override list), then map the Magento row to the newly created SKU product. The whole operation runs inside a single DB transaction.
Idempotency: if a SKU.io product with the supplied sku already exists, the manager links to that existing product instead of creating a new one. The response then sets linked_existing: true and the message becomes "Linked to existing SKU product.".
Pre-condition: the Magento product MUST be unmapped. Mapped products return 422 and must be unmapped first.
Body (all fields optional; modal pre-fills from Magento):
sku(string, max 255)name(string, max 255)description(string)image_url(string, max 1024)barcode(string, max 255)cost(number ≥ 0)price(number ≥ 0)weight(number ≥ 0)field_mappings[]— array of{ magento_field, sku_field }pairs the manager applies to the Magento payload before persisting. Same shapeGET .../products/field-mappingsreturns.
Error responses:
404— product does not exist OR belongs to a different instance.422— product is already mapped, or validation failed.
Request
Responses
- 201
- 401
- 403
- 404
- 422
- 429
Created
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.