快工助手跨境电商知识与商机助手

Common errors

TikTok Shop 官方资料 · TikTok Shop Partner Center 开发者文档 · 适合开发者

stable本次发布有变化全部展示

来自 TikTok Shop 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
TikTok Shop / profile.tiktok.docs_api
语言
en-US
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/tiktok_shopaudience/developercategory/api_doctopic/compliancetopic/developer

资料正文

§1 Common errors

When making API requests, ensuring the correct structure and format is key to smooth communication with TikTok Shop's servers. This topic covers common gateway and cross-domain errors related to the request query, header, and body format. These fundamental errors occur before business logic processing and must be resolved for a request to be processed successfully. Note:0 in the response code indicates that the request was successfully processed. Business error codes: This page does not exhaustively list endpoint-specific business errors. For business logic failures, open the corresponding endpoint reference page and check the Errorcode section at the bottom of that page. For the full API reference entry point, refer to TTS API reference docs. Recommended troubleshooting path:

  1. Confirm the HTTP status code first, especially 401, 403, 404, 408, 429, and 5xx.
  2. Check the API response code and message together. Some common request-validation failures reuse the same numeric code.
  3. If the failure is endpoint-specific, check the endpoint reference page's Errorcode section.
  4. If the failure is authorization-related, compare the endpoint's required scope with both the app's scopes in Partner Center and the token's granted_scopes field.
#

§2 Message keyword index for `36009004`

Message keyword index for 36009004

The code 36009004 is reused for multiple different request-validation failures. Do not use the numeric code alone for programmatic branching. Combine it with the response message keyword, and log the full response including request_id.

Message keywordLikely meaningWhat to check
Missing credentials, signatureThe required sign query parameter is missing.Generate a valid signature by referring to Sign your API request.
access_token header is invalidThe access_token header is invalid.Pass the access token obtained from Get Access Token.
x-tts-access-token header is invalidThe x-tts-access-token header is invalid.Pass the access token obtained from Get Access Token, and confirm the token belongs to the correct authorization principal.
Invalid app_keyThe app_key query parameter is invalid, disabled, deleted, or cannot be resolved.Check the app key on the App details page in Partner Center.
timestamp, lesser than 0The timestamp query parameter is negative.Use a Unix timestamp within the accepted time window.
timestamp, earlier than 5 minutesThe timestamp is too old.Keep the timestamp within 5 minutes before the current time.
timestamp, more than 30 secondsThe timestamp is too far in the future.Keep the timestamp no more than 30 seconds beyond the current time.
shop_cipher, not requiredThe request contains an unnecessary shop_cipher.Remove shop_cipher and check the endpoint's required identifier.
category_asset_cipher, not requiredThe request contains an unnecessary category_asset_cipher.Remove category_asset_cipher and check the endpoint's required identifier.
shop_id, invalidThe shop_id query parameter is invalid.Retrieve the correct shop identifier from Get Authorized Shops.
Invalid API versionThe API version is invalid or unsupported.See the version note in Parameter errors. The API versioning guide may use 36009014, while legacy/common gateway responses may still surface 36009004; verify the actual response for the endpoint/version being called.
#

§3 General errors

Code Error message Details and guidance
36009002Too many requests. You've made too many requests in a short period of time.Treat this as a rate-limit condition. The HTTP response should be handled together with the business code: HTTP 429 and 36009002 both indicate rate limiting. Apply retry/backoff logic, respect Retry-After if present, and refer to Rate limits for details.
36009007Request timeout. The request to the endpoint timed out.Please try again, or consider splitting it into smaller requests.
36009009Invalid path. The specified path does not match any available endpoint.Refer to the API documentation for details.
36009010Invalid method. The HTTP method used is not supported by this endpoint.Refer to the API documentation for details.
36009021Invalid file size. The uploaded file size exceeds the maximum limit.Refer to the API documentation for details.
36009022Invalid request format. The request body format must be application/json for structured data or multipart/form-data for binary files.Refer to the API documentation for details.
36009023Invalid request format. The value of the content-type header must be multipart/form-data.Refer to the API documentation for details.
#

§4 Authorization errors

Code Error message Details and guidance
105005Access denied. The app is not authorized to access the endpoint because the access scopes granted for the app or the access token do not contain the required access scope for the endpoint.Most common access-scope failure. Check this first when an API call fails with "Access denied" or when calls from Developer Tool / API Testing Tool fail after app setup. Suggested checks: 1. Check the granted scopes for the app in Partner Center > App & Service > Manage API. If the required scope is missing, apply or enable it in Partner Center. 2. Check the granted scopes for the token in the granted_scopes field of the Get Access Token response. If the required scope is missing, request the user to reauthorize the required scope, and then generate a new token accordingly.
101000Invalid query or header. The category_asset_cipher query parameter or x-tts-access-token header is invalid.For category_asset_cipher, ensure you retrieve the correct value from the Get Authorized Category Assets endpoint. For x-tts-access-token, possible causes include: - The token has an invalid user_type for this endpoint. See the user_type value definitions in Generate a test access token, and check the endpoint's entity tag in API entity tags to confirm whether it expects a seller, creator, partner, shop, or asset-level token. - The token is not associated with a shop, or the associated shop does not match the provided shop_cipher query parameter. Refer to the authorization guide for details.
36009033Access denied. Your IP address is not in the IP allow list configured for this app.Add your IP address in Partner Center > App & Service.
#

§5 Authentication errors

Code Error message Details and guidance
105002Expired credentials. The access_token or x-tts-access-token header has expired.Refresh your token by using the Get Refresh Token endpoint.
106001Invalid credentials. The sign query parameter is invalid.Ensure you generate a valid signature by referring to the guide on signing your request.
36009004Missing credentials. The request does not include a required signature in the query.Generate a signature by referring to the guide on signing your request.
36009004Invalid credentials. The access_token header is invalid.Please pass in the access_token you obtained from the Get Access Token endpoint.
36009004Invalid credentials. The x-tts-access-token header is invalid.Please pass in the access_token you obtained from the Get Access Token endpoint.
36009004Invalid credentials. Invalid app_key query parameter.Possible reasons include an invalid key format, the app not being found, the app being disabled or deleted, or there was an error in retrieving the required authorization. Ensure you are retrieving the correct value from the App details page in Partner Center.
36009004Invalid timestamp. The value of the timestamp query parameter must not be lesser than 0.Timestamps must lie within the range of 5 minutes before to 30 seconds beyond the current time.
36009004Invalid timestamp. The value of the timestamp query parameter must not be earlier than 5 minutes before the current time.Timestamps must lie within the range of 5 minutes before to 30 seconds beyond the current time.
36009004Invalid timestamp. The value of the timestamp query parameter must not exceed the current time by more than 30 seconds.Timestamps must lie within the range of 5 minutes before to 30 seconds beyond the current time.
#

§6 Parameter errors

Code Error message Details and guidance
106013Missing identifier. The shop_cipher query parameter is required to identify the target shop.Retrieve this value from the Get Authorized Shops endpoint.
36009004Unexpected identifier. The shop_cipher query parameter is not required for this request.Remove it and try again. Refer to the API documentation for details on the identifier required.
36009004Unexpected identifier. The category_asset_cipher query parameter is not required for this request.Remove it and try again. Refer to the API documentation for details on the identifier required.
36009004Invalid identifier. The shop_id query parameter is invalid.Retrieve the correct value from the Get Authorized Shops endpoint.
36009014 / 36009004Invalid API version. The version value is invalid or unsupported.The API versioning topic identifies invalid API versions with 36009014, while older/common gateway examples may show 36009004 with the same Invalid API version message. Until all docs and runtime responses are aligned, handle this condition by checking both the code and the Invalid API version message keyword, and verify the actual response for the endpoint/version you are calling. Refer to TTS API versioning and the endpoint reference page for valid versions.
36004004Invalid auth code.The auth_code has already been used, is expired, or is invalid.
#