Skip to main content

Import Pre-Start-Date Orders

POST 

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

Import selected pre-start-date orders from Temu by their parent order SNs. Each order is fetched from the Temu API and written so it shows up in the local order list, flagged as a pre-start-date import.

Authorization

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

Because each order requires its own throttled Temu 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 local inventory_start_date to be set — returns 422 otherwise.

Request Body:

  • parent_order_sns (required, array of strings, 1-10,000 entries) — Temu parent order SNs 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

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