Map Purple Dot Variant to Product
POST/api/purple-dot/:instance/variant-mappings
Point a Purple Dot SKU and/or Shopify variant at a SKU.io product. Held pre-order lines for that variant that had no product are matched and become backorder demand.
inventory:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body: external_sku (string, required without shopify_variant_id), shopify_variant_id (string, required without external_sku), product_id (integer, required, an existing product). Requires integrations.update.
422 not_allowed — a pre-order sync or matching-key change is running for this connection (they share the connection's matching lock, so a running poll can't overwrite the new mapping). Nothing is saved; retry in a minute.
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 Content
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.