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

Mark Package As Shipped

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 Path: /fulfillment/202309/orders/{order_id}/packages

#

§2 Method: [POST]

#

§3 Function Description

This API is currently exclusive to the following markets: US, UK, ES, IE, IT, DE, FR, JP. This API is for sellers who fulfill orders through their own selected/preferred logistics carrier, and allows sellers to upload valid package information (items in packages, shipping provider information, and tracking number) orders/order line items to TikTok Shop. Use Get Shipping Providers API to retrieve the shipping_provider_id for shipping providers.


#

§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 Path Parameters

Properties Type Require Sample Properties description
order_idstringY576461413038785752The unique identifier for a TikTok Shop order.
#

§6 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.
#

§7 Request Body Parameters

Properties Type Require Sample Properties description
order_line_item_ids[]stringN["2321312321311"]List of order line item IDs.
tracking_numberstringY6617675021119438849Tracking number.
shipping_provider_idstringY12312312321323432Use Get Shipping Provider API to retrieve the shipping_provider_id for shipping providers.
order_line_list[]objectNThis new parameter is completely backward compatible with the previous oder_line_items_ids field and in addition this supports bundle order splitting, use the sub items accordingly
^order_line_idstringN5767675021119438849The corresponding order line ID.
^sub_item_idstringN5767675021119438849The sub-order-line ID inside a bundle product.
  • Required for bundle products.
  • Not required for non-bundle products. |
#

§8 Request Sample

Query

https://open-api.tiktokglobalshop.com/fulfillment/202309/orders/576461413038785752/packages?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c&timestamp=1625484268&shop_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY

Body

{"order_line_item_ids":["2321312321311"],"tracking_number":"6617675021119438849","shipping_provider_id":"12312312321323432","order_line_list":[{"order_line_id":"5767675021119438849","sub_item_id":"5767675021119438849"}]}
#

§9 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
^order_idstring32131324123321TikTok Shop order ID.
^order_line_item_ids[]string["31322412312312"]List of order line item IDs.
^package_idstring32141235124234Package ID.
^warningobjectWarning message.
^^messagestringmatch more than one providerSpecific warning information.
#

§10 Response Sample

{"code":0,"data":{"order_id":"32131324123321","order_line_item_ids":["31322412312312"],"package_id":"32141235124234","warning":{"message":"match more than one provider"}},"message":"Success","request_id":"202203070749000101890810281E8C70B7"}
#

§11 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.
11001027System timeout. If this error persists, please contact the platform for assistance.
11001031System process error, please try again later.
11005004warehouse not exist
11005010get lead time from card service error
11006005System process error, please try again later.
11006026System process error, please try again later.
11021009No available shipping services for this request. Please modify the package weight or check the recipient address. If the error persists, please contact the platform for assistance.
11028006This tracking number cannot be matched to any carrier, please check the tracking number and upload again.
11050001invalid param
21001001Invalid parameters. Please ensure you are passing the correct request parameter(s).
21001008not found error
21001011System process error, please try again later.
21001028The order is being processed. Try again later.
21001029rpc logistics_logistics_service_4b failed
21001043System process error, please try again later.
21001055System process error, please try again later.
21004012Tracking number has special characters, verify failed.
21004015Tracking number mismatch provider.
21004016Tracking number verify, not avalible logsitics service or provider
21004019Need invoice uploaded for all order before rts.
21004020Fulfillment Invoice status is not success, can not rts pkg.
21008025Seller cannot operate orders which are fulfilled by platform
21008042seller already print shipping label
21008044SellerFulfillUnitInReverseCannotOperate
21008099Package has been shipped. Please not ship the package again.
21008106This interface cannot be used in this region.
21008300System process error, please try again later.
21011001Package not found. If the error persists, please contact the platform for assistance.
21011003fulfill_unit action not allowed
21011004This API cannot be used to update package shipping information for packages that are not shipped by sellers.
21011006These orders are already shipped.
21011007Package item has after-sale request, please process the after-sale request first.
21011012not match trade rule
21011013not match logistics rule
21011020These orders are already shipped.
21011022Invalid tracking number or provider ID. Please double check and try again.
21011025Duplicate tracking number.
21011026fulfillment tracking no used times over limit
21011029order does not belong to fulfill unit
21011030fulfillment not allow update tracking no
21011033order already combined
21011036split same sku in Multi Package not allow.
21011046Order has combine, not allow split order
21011048There are multiple packages that can be shipped, please specify the order line that needs to be shipped.
21011050The tracking number can only be updated within a certain number of hours.
21011051The tracking number can only be updated once.
21021010Failed to ship. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address.
21022025A shipping label has already been purchased.
21022026Cannot purchase shipping label, please try again later.
21022028split pkg fail.
21022029System process error, please try again later.
21022030System process error, please try again later.
21032001fulfill unit status not allow to update pkg attr
21034006decision route occurs error
21034012tracking no has been used
21042056These orders are already shipped.
21042057These orders are not in the Awaiting shipment status. Couldn't create labels for them.
#