Query Pre-Start-Date Orders
GET/api/temu/:integration_instance/pre-start-date-orders
Query Temu for orders created before the tenant's inventory start date. Returns lightweight order data with eligibility flags for the import modal — orders that already exist locally are flagged as already_imported, and cancelled orders are flagged as ineligible.
Authenticate with a Personal Access Token (PAT).
Path Parameters:
integration_instance— Temu Integration Instance ID
Query Parameters:
created_at_min(required) — Earliest order creation date (YYYY-MM-DD). Must be before the tenant's inventory start date.created_at_max(optional) — Latest order creation date. Defaults to inventory start date - 1 day.parent_order_status(optional) — Temu parentOrderStatus value orany.
Response:
Returns { data: [...], inventory_start_date, meta: { total_queried, eligible_count, already_imported_count } }.
Notes:
- The Temu API uses
updateAtStart/updateAtEndfilters; results are filtered client-side byparentOrderTimeagainst the inventory start date. - Maximum 10 pages × 100 orders = 1000 orders per query.
Request
Responses
- 200
Successful response