Skip to main content

Import Pre-Start-Date Walmart Orders

POST 

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

Import selected pre-start-date orders from Walmart. For each purchase order id, the full order is downloaded from the Walmart Marketplace API, saved through the standard order pipeline, and flagged as a pre-start-date import (so it does not affect inventory).

Authorization

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

Because each order requires its own throttled Walmart Marketplace API call, 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 Walmart integration instance ID

Request Body:

  • purchase_order_ids (required, array of strings, 1-10,000 entries) — Walmart purchase order ids to import.

Behavior:

  • Runs as a background import — the request returns right away with a tracked job log id; the orders are fetched and stored asynchronously
  • Orders that already exist locally are flagged as pre-start-date imports instead of being re-imported
  • Cancelled or not-found orders are skipped

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

Request

Responses

OK

Response Headers
    Content-Type