Skip to main content

Import Pre-Start-Date Orders

POST 

/api/shopify/:integrationInstance/pre-start-date-orders/import

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.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Authentication: Requires Bearer token.

Body fields:

  • shopify_order_ids (array of integers, required, 1-10000): Shopify order IDs as returned by the list/search endpoints.

Returns the tracked job id. Returns 422 when the inventory start date is not set or more than 10,000 orders are requested.

Request

Responses

OK

Response Headers
    Content-Type