Skip to main content

POST Get Eligible Shipping Service

Get Eligible Shipping Service Shop Required scope: seller.fulfillment.basic Use this API ( for US ) to query the list of available shipping services when specifying packages' size or weight. Use this API ( for JP ) to query the list of available shipping services when specifying packages' size or weight.The shipping fee and delivery time is an estimate only and is based on the package dimensions and weight you provided. Options listed may differ if you change the package attributes at the time of shipping. Version 202309

POST/fulfillment/202309/orders/{order_id}/shipping_services/query

Request

Path

PropertiesTypeDescription
order_id RequiredstringTikTok Shop order ID

Header

PropertiesTypeDescription
content-type RequiredstringAllowed type: application/json
x-tts-access-token RequiredstringThe seller access_token value from Get Access Token, when user_type = 0. Follow this guide to get seller access_token.

Query

PropertiesTypeDescription
app_key RequiredstringEvery single app will have a unique key. Please use the specific key assigned to your app.
sign RequiredstringSignature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders.
timestamp RequiredintUnix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time.
shop_cipher RequiredstringUse 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

Body

PropertiesTypeDescription
order_line_item_ids[]stringOrder line item ID list
weightobjectThe weight of the scheduled package.
dimensionobjectThe dimensions of the scheduled package.
order_line_list[]objectThis 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

Example

CurlGoNode.jsJavaEnable word wrap

1curl-X POST \

Response Parameters

PropertiesTypeDescription
codeintThe success or failure status code returned in API response.
messagestringThe success or failure messages returned in API response. Reasons of failure will be described in the message.
request_idstringRequest log
dataobjectSpecific return information

Example

JSONEnable word wrap

1{

Error Code

View common error codes

| Code | Message | | --- | --- | | 10006402 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. | | 36009003 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. | | 21001001 | Invalid parameters. Please ensure you are passing the correct request parameter(s). | | 21011001 | Package not found. If the error persists, please contact the platform for assistance. | | 21011006 | These orders are already shipped. | | 21011029 | order does not belong to fulfill unit | | 21011037 | There are no available shipping services for this request. Please modify the package weight, or double check the recipient address. If after multiple retries you continue to experience this error, please contact the platform for assistance. | | 21011048 | There are multiple packages that can be shipped, please specify the order line that needs to be shipped. |

Is this content helpful?Helpful

Not Helpful

PreviousNext