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

Search Package

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

资料正文

§2 Method: [POST]

#

§3 Function Description

Retrieve package IDs based on specified conditions. Package creation time and information update time are the common querying conditions.


#

§4 Common Parameters

For common parameters, refer to How to call TikTok Shop APIs - Common Parameters

Properties Location Type Require Sample Properties description
shop_cipherquerystringYGCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3Use this property to pass shop information in requesting the API. Failure in passing the correct value when requesting the API for cross-border shops will return incorrect response.
Get by API Get Authorization Shop
content-typeheaderstringYapplication/jsonAllowed type: application/json
#

§5 Request Query Parameters

Properties Type Require Sample Properties description
app_keystringY38abcdEvery single app will have a unique key. Please use the specific key assigned to your app.
signstringY5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8cSignature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders.
timestampintY1623812664Unix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time.
page_sizeintY20The number of results to be returned per page. Valid range: [1-50].
sort_fieldstringNorder_pay_timeThe returned results will be sorted by the specified field.
Default: create_time
Possible values:
  • create_time
  • update_time
  • order_pay_time

Specify the order for sorting the returned results by using the sort_order parameter. | sort_order |string |N |ASC |The sort order for the sort_field parameter. Default: DESC Possible values:

  • ASC: Ascending order
  • DESC: Descending order | page_token |string |N |6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFA |An opaque token used to retrieve the next page of a paginated result set. Retrieve this value from the result of the next_page_token from a previous response. It is not needed for the first page. | shop_cipher |string |N |GCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3 |Use this property to pass shop information in requesting the API. Failure in passing the correct value when requesting the API for cross-border shops will return incorrect response. Get by API Get Authorization Shop |
#

§6 Request Body Parameters

Properties Type Require Sample Properties description
create_time_geintN1623812664Filter the packages to show only those that are created after (or at) the specified date and time. Unix timestamp.
create_time_ltintN1623812664Filter the packages to show only those that are created before the specified date and time. Unix timestamp.
update_time_geintN1623812664Filter the packages to show only those that are updated after (or at) the specified date and time. Unix timestamp.
update_time_ltintN1623812664Filter the packages to show only those that are updated before the specified date and time. Unix timestamp.
package_statusstringNPROCESSINGPossible values:
  • PROCESSING: Package has been arranged by seller. Waiting for carrier to collect the parcel.
  • FULFILLING: Package has been collected by carrier and in transit.
  • COMPLETED: Package has been delivered.
  • CANCELLED: Package has been canceled. Normally, the package is canceled due to the package being lost or damaged. |
#

§7 Request Sample

Query

https://open-api.tiktokglobalshop.com/fulfillment/202309/packages/search?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c&timestamp=1625484268&shop_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY&page_size=20&sort_field=order_pay_time&sort_order=ASC&page_token=6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFA

Body

{"create_time_ge":1623812664,"create_time_lt":1623812664,"update_time_ge":1623812664,"update_time_lt":1623812664,"package_status":"PROCESSING"}
#

§8 Response Parameters

Properties Type Sample Properties description
codeint0The success or failure status code returned in API response.
messagestringSuccessThe success or failure messages returned in API response. Reasons of failure will be described in the message.
request_idstring202203070749000101890810281E8C70B7Request log
dataobjectSpecific return information
^next_page_tokenstring6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFAAn opaque token used to retrieve the next page of a paginated result set. Provide this value in the page_token parameter of your request if the current response does not return all the results.
^total_countint221The number of packages that meet the query conditions.
^packages[]objectThe response list of packages.
^^idstring577828281214600000Package ID.
^^orders[]objectThe response list of TikTok Shop orders.
^^^idstring577828281214600000TikTok Shop order ID.
^^^skus[]object[Deprecated]The response list of SKUs.
^^^^idstring577828281214883345[Deprecated]The SKU ID.
^^^^namestringwhite,128g[Deprecated]The SKU name.
^^^^image_urlstringhttps://p19-oec-sg.ibyteimg.com/tos-maliva-i-o3syd03w52-us/12345670[Deprecated]The SKU image in order snapshot.
^^^^quantityint5[Deprecated]The SKU quantity.
^^create_timeint1635338186Package creation time. Unix timestamp.
^^update_timeint1635338186Package latest update time. Unix timestamp
^^statusstringPROCESSINGPossible values:
  • PROCESSING: Package has been arranged by seller. Waiting for carrier to collect the parcel.
  • FULFILLING: Package has been collected by carrier and in transit.
  • COMPLETED: Package has been delivered.
  • CANCELLED: Package has been canceled. Normally, the package is canceled due to the package being lost or damaged. | ^^tracking_number |string |6617675021119438849 |Package tracking number. | ^^shipping_provider_name |string |TT Virtual express |Package shipping provider. | ^^shipping_provider_id |string |6617675021119438849 |Package shipping provider ID. | ^^order_line_item_ids |[]string |["1729382476852921560"] |The order line item ID contained in the package. |
#

§9 Response Sample

{"code":0,"data":{"next_page_token":"6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFA","total_count":221,"packages":[{"id":"577828281214600000","orders":[{"id":"577828281214600000","skus":[{"id":"577828281214883345","name":"white,128g","image_url":"https://p19-oec-sg.ibyteimg.com/tos-maliva-i-o3syd03w52-us/12345670","quantity":5}]}],"create_time":1635338186,"update_time":1635338186,"status":"PROCESSING","tracking_number":"6617675021119438849","shipping_provider_name":"TT Virtual express","shipping_provider_id":"6617675021119438849","order_line_item_ids":["1729382476852921560"]}]},"message":"Success","request_id":"202203070749000101890810281E8C70B7"}
#

§10 Error Code

For common error codes, refer to How to call TikTok Shop APIs - Common Error Code

Code Message
36009003Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support.
#