This API is currently exclusive to the following markets: US, BR. This API is suitable for merchants to deliver and carry orders by themselves, without shipping orders through third-party service providers, that is, without shipping packages through 3PL, but orders sent by merchants. Merchants are allowed to use this API to return such orders and update the order track. The Action Code and Failed Reason in the input parameter are enumerated, as detailed in the document: https://partner.tiktokshop.com/docv2/page/1cjht3qx
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Order Country.
TikTok Shop order ID.
Service provider’s track URL / official website link.
Trajectory node array; maximum number of entries per single request [50], processing results are returned one by one within the array. That is, in the interface, a maximum of 50 tracks can be postbacked per order at a time.
object
The standard trajectory node code must belong to the allowlist. See the below action code. The action code is limited, for the list of available enumerations, please refer to the documentation: https://partner.tiktokshop.com/docv2/page/1cjht3qx
Actual Trajectory Occurrence Time. Unix timestamp GMT (UTC+00:00). The unit is milliseconds.
The original trajectory description of the caller.
Exception causes, details are listed below. See the below reason code. The reason code is limited, for the list of available enumerations, please refer to the documentation: https://partner.tiktokshop.com/docv2/page/1cjht3qx
Third-party tracking proof links or credentials.
Location fields such as city, state, province, country, latitude and longitude;
object
Country.
State.
City.
Zip code/post code.
The waybill number used when placing an order. If there is no tracking code, fill in the invoice id instead. And it may change in split shipment, it may change in different track in this scene.
The logistics provider ID, which is the one filled in when placing an order or uploading a tracking number, must be consistent with it.
Example
{ "country": "BR", "order_id": "577071607420326620", "external_tracking_url": "https://www.correios.com.br/rastreamento/BR3PL202609090001", "tracks": [ { "action_code": 20201, "occur_time": 1788920100000, "description": "Package picked up by 3PL carrier", "failed_reason": "R110", "proof_url": "https://carrier-proof.example.com/proof/BR3PL202609090001", "location": { "country": "BR", "state": "SP", "city": "Campinas", "zip_code": "13010-000" }, "tracking_no": "BR443310090002" } ], "provider_id": "7189579428429563650"}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The trajectory node array, where the field in each element of the array indicates which trajectory it is. The code and message fields describe whether the trajectory has been received; if not, they represent the corresponding error code and error description.
object
The standard trajectory node code must belong to the allowlist. See the below action code.
Actual Trajectory Occurrence Time. Unix timestamp GMT (UTC+00:00). The unit is milliseconds.
The original trajectory description of the caller.
The success or failure status of the trace corresponding to this action code, see the below error code
The success or failure messages returned in the trace corresponding to this action code. Reasons of failure will be described in the message.
The waybill number used when placing an order. If there is no tracking code, fill in the invoice id instead. And it may change in split shipment, it may change in different track in this scene.
Example
{ "code": 0, "data": { "track_results": [ { "action_code": 32401, "occur_time": 1788920100012, "description": "Line-haul transport departed", "code": 0, "message": "Success", "tracking_no": "BR123456789" } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}