Skip to content

Create Packages

POST
/fulfillment/202512/packages

Use this API to ship orders (purchase labels). This API is available in the US, UK, EMEA, and JP regions. The shipping fee and delivery time is an estimate only and is based on the package dimensions and weight you provided.

shop_cipher
required
string

Identifies the shop. Obtain it from the Get Authorized Shops API.

Media typeapplication/json
object
ship_type
required

1:All the products in one order are shipped in one package with one tracking number 2:Partical products in one parent order are shipped in multiple packages with multiple tracking numbers 3:All the products in multiple orders are shipped in one package with one tracking number.

string
order_id

The TikTok Shop order ID. Required when ship_type is 1 or 2; not used when ship_type is 3.

string
order_line_item

List of order line item IDs. If ship_type=2,This is a required field;If ship_type=1&3,we will not use this field

Array<object>
object
order_line_id

The TikTok Shop order line item ID.

string
sub_item_id

Only for virtual bundle items,list of sub item ids. If ship_type=2,This is a required field;If ship_type=1&3,we will not use this field

string
order_list_ids

The TikTok Shop order IDs to combine into one package. Required when ship_type is 3; provide at least two order IDs.

Array<string>
dimension

Package dimensions. For ship_type 1 and 2, each dimension must be between 0.01 and 999999 and have no more than two decimal places.

object
length
required

Package length.

The length, width, and height must be passed together.

string
width
required

Package width.

The length, width, and height must be passed together.

string
height
required

Package height.

The length, width, and height must be passed together.

string
unit
required

The unit of measurement for the package dimensions. For packages in the US, use INCH.

Available values:

  • CM
  • INCH
string
Allowed values: CM INCH
shipping_service_id

Specify the shipping service used. If not specified, use the default service obtained from Get Eligible Shipping Service.

string
weight

Package weight. For ship_type 1 and 2, the value must be between 0.01 and 999999 and have no more than two decimal places.

object
value
required

The numerical value of the package weight.

string
unit
required

The unit of measurement for the package weight.

Available values:

  • GRAM
  • POUND
string
Allowed values: GRAM POUND
Example
{
"ship_type": "2",
"order_id": "2882335594258860015",
"order_line_item": [
{
"order_line_id": "2882335594258860015",
"sub_item_id": "2882335594258860015"
}
],
"order_list_ids": [
"2882335594258860015",
"2882335594258860016"
],
"dimension": {
"length": "1.2",
"width": "0.2",
"height": "0.03",
"unit": "CM"
},
"shipping_service_id": "288233559123860015",
"weight": {
"value": "1.2",
"unit": "GRAM"
}
}

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
dimension

Package dimensions.

object
length

Package length.

string
width

Package width.

string
height

Package height.

string
unit

The unit of measurement for the package dimensions.

Available values:

  • CM
  • INCH
string
Allowed values: CM INCH
shipping_service_info

Information about the shipping service selected for the package.

object
id

Shipping service ID.

string
name

Shipping service name.

string
price

Estimated price for this service.

string
currency

Currency of the price.

string
earliest_delivery_days

The minimum estimated duration required for package delivery.US only.

integer format: int64
latest_delivery_days

The maximum estimated duration required for package delivery.US only.

integer format: int64
shipping_provider_id

Shipping provider ID.US only.

string
shipping_provider_name

Shipping provider name.US only.

string
package_id

Package ID.

string
weight

Package weight.

object
value

The numerical value of the package weight.

string
unit

The unit of measurement for the package weight.

Available values:

  • GRAM
  • POUND
string
Allowed values: GRAM POUND
create_time

The time when the product was created. Unix timestamp.

integer format: int64
Example
{
"code": 0,
"data": {
"dimension": {
"length": "1.2",
"width": "0.2",
"height": "0.03",
"unit": "CM"
},
"shipping_service_info": {
"id": "288233559123860015",
"name": "UPS-first class",
"price": "10",
"currency": "USD",
"earliest_delivery_days": 3,
"latest_delivery_days": 5,
"shipping_provider_id": "2882322591238",
"shipping_provider_name": "UPS"
},
"package_id": "2882335594258860015",
"weight": {
"value": "1.2",
"unit": "GRAM"
},
"create_time": 1623812664
},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}