Skip to main content

Import Pre-Start-Date Orders

POST 

/api/woo-commerce/:integrationInstance/pre-start-date-orders/import

Import selected pre-start-date orders from WooCommerce by their WooCommerce order IDs. Full order data is downloaded and stored flagged as a pre-start-date import so it does not affect inventory. Orders that already exist locally are marked instead of duplicated, and cancelled orders are skipped.

Authorization

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

Because each order is fetched individually from WooCommerce, the import runs asynchronously as a queued background job. The request returns immediately with a tracked job log id that can be polled to follow the import's progress.

Requires the inventory start date to be set — returns 422 otherwise.

Path Parameters:

  • integrationInstance - The WooCommerce integration instance ID

Request Body:

  • woo_commerce_order_ids (required, array of integers, 1-10,000 entries) — WooCommerce order IDs to import.

Response:

  • data.tracked_job_log_id - id of the tracked job log; poll it to follow import progress
  • message - human-readable confirmation of how many orders are being imported

Route name: woo-commerce.pre-start-date-orders.import

Request

Responses

OK

Response Headers
    Content-Type