Get Opening Stock Preview
GET/api/shopify/:integrationInstance/inventory/opening-stock/preview/:previewId
Get a preview's summary and one page of its product rows. Each row shows Shopify's on hand and available, the units sold, returned and otherwise moved in SKU.io, the current opening count, the computed opening count, the quantity that will be loaded (never below zero), the unit cost and where it came from (opening_count, default_cost, shopify_cost_per_item or best_available:<source>), and a status.
integrations:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Statuses: ready (will be written), unchanged, missing_cost (skipped unless include_missing_cost), negative (SKU.io already holds more than Shopify; skipped), no_shopify_level, untracked, not_mapped (sold in SKU.io but not linked to a Shopify variant), not_stocked (bundle or matrix).
Authentication: Requires Bearer token.
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
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.