Download Product Mappings (CSV)
GET/api/shopify/:integrationInstance/product-mappings/csv/download
Downloads every Shopify variant on the instance as a CSV file for bulk mapping. Columns: shopify_variant_id, shopify_product_title, shopify_variant_title, price, shopify_sku, mapped_sku.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Unmapped variants are included with an empty mapped_sku — those are the rows to fill in. Edit the mapped_sku column and re-upload via Upload Product Mappings (CSV); clearing mapped_sku unmaps the variant. Archived variants are excluded unless an archived filter is supplied.
Accepts the same filter parameters as the product listing endpoint, so the file contains exactly the rows that listing would return for the same query. Omit them all to export the whole instance. Pagination and sort parameters are ignored: the export always streams the complete filtered set in primary-key order.
A channel with nothing mapped yet returns the header-only template rather than an error, so the file can be used to start mapping from scratch.
Authentication: Requires Bearer token.
The response is a text/csv file download, not JSON. The row tally is reported in response headers: X-Export-Row-Count (total data rows), X-Export-Mapped-Count, and X-Export-Unmapped-Count.
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.