Create Integration Instance
POST/api/temu
Creates a Temu integration instance directly from the supplied settings and credentials, and creates the linked sales channel record in the same transaction. Most production connections are established through the OAuth flow instead (POST /api/temu/oauth/initialize followed by POST /api/temu/oauth/complete), which populates the connection credentials automatically — use this endpoint when you already hold valid credentials.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Request body fields:
name(string, required) — must be unique across all integration instances.integration_id(integer, required) — id of the Temu integration definition.connection_settings(object, optional) —appKey,appSecret,url,accessToken,expiresAt(all nullable strings).integration_settings(object, required):start_date(string, required) — orders before this date are not imported.store_id(integer, required) — must reference an existing store.auto_link_products(boolean, defaulttrue),auto_create_products(boolean, defaultfalse).- Optional accounting fields:
sales_nominal_code_id,cogs_nominal_code_id,shipping_revenue_nominal_code_id,shipping_refund_nominal_code_id,sales_returns_allowances_nominal_code_id(nullable integers referencing nominal codes),sync_sales_order_invoices_to_accounting,sync_sales_credit_to_accounting(booleans). - Optional
pricingandinventoryobjects,emailCustomers(boolean),proforma_marketplace_cost_percentage,proforma_payment_cost_percentage(nullable numbers).
is_automatic_sync_enabled(boolean, defaultfalse).environment(string, optional) —productionorsandbox. On production servers the environment is always pinned toproduction.
The response returns the created instance. Note that the API normalizes all success status codes to 200.
Authentication: Requires Bearer token.
Request
Responses
- 200
- 401
- 403
- 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.
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.