stable本次发布有变化全部展示
来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§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_cipher | query | string | Y | 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 | |||||
| content-type | header | string | Y | application/json | Allowed type: application/json |
§5 Request Path Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| order_id | string | Y | 576461413038785752 | The unique identifier for a TikTok Shop order. |
§6 Request Query Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| app_key | string | Y | 38abcd | Every single app will have a unique key. Please use the specific key assigned to your app. |
| sign | string | Y | 5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c | Signature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders. |
| timestamp | int | Y | 1623812664 | Unix 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 | []string | N | ["2321312321311"] | List of order line item IDs. |
| tracking_number | string | Y | 6617675021119438849 | Tracking number. |
| shipping_provider_id | string | Y | 12312312321323432 | Use Get Shipping Provider API to retrieve the shipping_provider_id for shipping providers. |
| order_line_list | []object | N | This 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_id | string | N | 5767675021119438849 | The corresponding order line ID. |
| ^sub_item_id | string | N | 5767675021119438849 | The 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×tamp=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 |
|---|---|---|---|
| code | int | 0 | The success or failure status code returned in API response. |
| message | string | Success | The success or failure messages returned in API response. Reasons of failure will be described in the message. |
| request_id | string | 202203070749000101890810281E8C70B7 | Request log |
| data | object | Specific return information | |
| ^order_id | string | 32131324123321 | TikTok Shop order ID. |
| ^order_line_item_ids | []string | ["31322412312312"] | List of order line item IDs. |
| ^package_id | string | 32141235124234 | Package ID. |
| ^warning | object | Warning message. | |
| ^^message | string | match more than one provider | Specific 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 |
|---|---|
| 36009003 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. |
| 11001027 | System timeout. If this error persists, please contact the platform for assistance. |
| 11001031 | System process error, please try again later. |
| 11005004 | warehouse not exist |
| 11005010 | get lead time from card service error |
| 11006005 | System process error, please try again later. |
| 11006026 | System process error, please try again later. |
| 11021009 | No 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. |
| 11028006 | This tracking number cannot be matched to any carrier, please check the tracking number and upload again. |
| 11050001 | invalid param |
| 21001001 | Invalid parameters. Please ensure you are passing the correct request parameter(s). |
| 21001008 | not found error |
| 21001011 | System process error, please try again later. |
| 21001028 | The order is being processed. Try again later. |
| 21001029 | rpc logistics_logistics_service_4b failed |
| 21001043 | System process error, please try again later. |
| 21001055 | System process error, please try again later. |
| 21004012 | Tracking number has special characters, verify failed. |
| 21004015 | Tracking number mismatch provider. |
| 21004016 | Tracking number verify, not avalible logsitics service or provider |
| 21004019 | Need invoice uploaded for all order before rts. |
| 21004020 | Fulfillment Invoice status is not success, can not rts pkg. |
| 21008025 | Seller cannot operate orders which are fulfilled by platform |
| 21008042 | seller already print shipping label |
| 21008044 | SellerFulfillUnitInReverseCannotOperate |
| 21008099 | Package has been shipped. Please not ship the package again. |
| 21008106 | This interface cannot be used in this region. |
| 21008300 | System process error, please try again later. |
| 21011001 | Package not found. If the error persists, please contact the platform for assistance. |
| 21011003 | fulfill_unit action not allowed |
| 21011004 | This API cannot be used to update package shipping information for packages that are not shipped by sellers. |
| 21011006 | These orders are already shipped. |
| 21011007 | Package item has after-sale request, please process the after-sale request first. |
| 21011012 | not match trade rule |
| 21011013 | not match logistics rule |
| 21011020 | These orders are already shipped. |
| 21011022 | Invalid tracking number or provider ID. Please double check and try again. |
| 21011025 | Duplicate tracking number. |
| 21011026 | fulfillment tracking no used times over limit |
| 21011029 | order does not belong to fulfill unit |
| 21011030 | fulfillment not allow update tracking no |
| 21011033 | order already combined |
| 21011036 | split same sku in Multi Package not allow. |
| 21011046 | Order has combine, not allow split order |
| 21011048 | There are multiple packages that can be shipped, please specify the order line that needs to be shipped. |
| 21011050 | The tracking number can only be updated within a certain number of hours. |
| 21011051 | The tracking number can only be updated once. |
| 21021010 | Failed to ship. You may cancel the order without penalty by selecting the following reason: Unable to deliver to buyer address. |
| 21022025 | A shipping label has already been purchased. |
| 21022026 | Cannot purchase shipping label, please try again later. |
| 21022028 | split pkg fail. |
| 21022029 | System process error, please try again later. |
| 21022030 | System process error, please try again later. |
| 21032001 | fulfill unit status not allow to update pkg attr |
| 21034006 | decision route occurs error |
| 21034012 | tracking no has been used |
| 21042056 | These orders are already shipped. |
| 21042057 | These orders are not in the Awaiting shipment status. Couldn't create labels for them. |
