Skip to main content

Shopify

📄️Import Pre-Start-Date Orders

Imports selected pre-start-date orders from Shopify. Each order is fetched from Shopify individually, so the import runs asynchronously: this endpoint enqueues the work and immediately returns a tracked job id. Poll the tracked jobs API with that id to follow progress and read the final imported/skipped counts. Full order data is downloaded and stored flagged as a pre-start-date import so it stays out of inventory calculations. Orders that already exist locally are flagged instead of being re-imported.

📄️Resume Customer PII Access

Clear the customer PII access blocked state for this Shopify integration instance and re-enable automatic order syncing. Call this after the Shopify store administrator has granted the app access to protected customer data (Shopify Partner Dashboard -> API access -> Protected customer data). The blocked state is set automatically when Shopify rejects an orders query with 'This app is not approved to use the [field] field' (protected customer data), which also disables automatic sync - orders without customer PII are unusable in SKU.io.

📄️Resume Invalid Access Token

Clear the invalid access token state for this Shopify integration instance and re-enable automatic syncing. Call this after the Shopify app has been reauthorized and a fresh access token has been issued (e.g. the app was reinstalled or the token was rotated). The invalid state is set automatically when Shopify rejects an API call with 401 'Invalid API key or access token (unrecognized login or wrong password)', which also disables automatic sync to stop the failed-job retry storm.

📄️List Payout Type Mappings

Returns the resolved payout type mappings for the integration instance: per-instance override rows plus the global default rows they have not overridden. Each row maps a financial code (a normalized type / source / reason combination from Shopify Payments balance transactions) to a general-ledger account and an optional mapping group; is_override indicates an instance-specific row. Before listing, any financial codes newly seen in the instance's synced balance transactions are registered as unmapped global rows so they can be configured.