Search Orders (Local DB)
GET/api/tiktok-shop/integration-instances/:integration_instance_id/orders/search
Searches LOCAL DB for already-synced TikTok Shop orders. Unlike Shopify's equivalent endpoint, this does NOT hit the TikTok Shop API — TikTok's API does not currently support free-text order search. Use this to find orders already synced into SKU.io and re-trigger an update via Refresh Single Order.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Query params:
search_by(required, string) —order_number,tiktok_order_id, oremail. Defaults toorder_number.query(required, string) — the search term.
Returns: { data: [{ id, legacy_resource_id, name, email, status, tiktok_create_time, tiktok_update_time, total_price, currency, exists_in_database, database_id }], total }. status is the TikTok Shop single-axis order status enum.
Request
Responses
- 200
- 401
- 403
- 404
- 429
Successful response
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.
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.