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).
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 progressmessage- human-readable confirmation of how many orders are being imported
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 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 — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
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.