Skip to main content

Import Pre-Start-Date Orders

POST 

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

Import selected pre-start-date orders from Temu. For each parent order SN, the endpoint fetches the full order from Temu and persists it locally via the standard Temu order repository pipeline. Orders that already exist locally are skipped.

Authenticate with a Personal Access Token (PAT).

Path Parameters:

  • integration_instance — Temu Integration Instance ID

Request Body:

  • parent_order_sns (required, array, 1–50 items) — The parent order SNs to import. Each must be a non-empty string.

Response: Returns { imported: int, skipped: int, details: [...] }. Each entry in details reports the per-order outcome (imported, skipped, or error).

Validation:

  • Inventory start date must be set on the tenant before calling this endpoint (otherwise returns 422).
  • Maximum of 50 orders per import call.

Request

Responses

Successful response