stable本次发布有变化全部展示
来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 Common parameters
When calling TikTok Shop APIs, include the following common parameters unless the endpoint documentation states otherwise.
§2 Query parameters
| Parameter | Location | Type | Description | Sample |
|---|---|---|---|---|
app_key | Query | string | The unique key assigned to your app. Refer to Create your app to find out where to get your app_key. | 29a39d |
sign | Query | string | A HMAC-SHA256 hash based on the request parameter values, used by the service to verify the sender of the request in addition to the access token. Refer to Sign your API request to learn how to generate this signature. | bc721f0e0182914e3487b81df204de37a352fc3aa96947efda6dc1e5dd0d5290 |
timestamp | Query | Unix timestamp | A 10-digit Unix timestamp in seconds, used to ensure timeliness of the request and prevent replay attacks. Do not send a millisecond-level timestamp. This value is also used to generate the digital signature for the sign parameter. Valid range: [current time - 5 mins, current time + 30 secs]. Sending an invalid timestamp may cause error 36009004 Invalid timestamp. | 1623812664 |
§3 Header parameters
| Parameter | Location | Type | Description | Sample |
|---|---|---|---|---|
x-tts-access-token | Header | string | The access token used to authenticate the shop or seller authorization for the request. For API version 202309 and later, the access token must be sent in this header instead of the query string. | act.example_access_token |
content-type | Header | string | The request content type. Use application/json when sending a JSON request body. | application/json |
Version note: For legacy APIs before version
202309, some older documents may showaccess_tokenas a query parameter. For API version202309and later, use thex-tts-access-tokenheader.
§4 Endpoint-specific common identifiers
Some endpoints require common business identifiers in addition to the parameters above. Whether these fields are required depends on the specific endpoint. Always follow the endpoint documentation for the exact location, requirement, and allowed value.
| Parameter | Location | Type | Description | Sample |
|---|---|---|---|---|
shop_cipher | Depends on endpoint | string | The encrypted shop identifier. Include this field when the endpoint requires a shop-level identifier. If the field is part of the signed request parameters for the endpoint, include it when generating sign. | GCP_XF90igAAAABh00qsWgtvOiGFNqyubMtA |
category_asset_cipher | Depends on endpoint | string | The encrypted category asset identifier. Include this field when the endpoint requires a category asset identifier. If the field is part of the signed request parameters for the endpoint, include it when generating sign. | CAT_ASSET_XF90igAAAABh00qsWgtvOiGFNqyubMtA |
