Get Field Mappings
GET/api/storefront/instances/:id/mappings
Which store field fills which SKU.io field when a catalog product is created from a store product, plus the option lists a mapping is chosen from.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Response:
mappings/custom_mappings— this instance's own mappings (identical arrays).default_mappings— what applies when nothing custom is set: storesku→sku, storename→item_name, storeprice→price.effective_mappings— what the importer will actually apply: the defaults with any custom mapping overriding the default that targets the SAMEsku_field, plus every custom mapping that targets a field no default covers.available_storefront_fields— every source a mapping may point at: the fixed mirror columns (sku,name,slug,price,compare_at_price,description_html,short_description_html,position,store_available, eachsource: "column") plus the attribute codes this instance's imported products actually carry (source: "attribute", sorted). Nothing else is offered — a source the importer cannot resolve would create products with silently empty values.available_sku_fields— the targets, each with agroup: core fields (sku,item_name,price), dimensions (weight,length,width,height), one entry per pricing level asprice.{level name}.value, and one per unarchived attribute asattributes.{attribute name}.
Both option lists are rebuilt on every call, so a pricing level or attribute created a moment ago in another window appears immediately.
Authentication: Bearer token (session or PAT).
Request
Responses
- 200
- 401
- 403
- 404
- 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.
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.