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

Message Types

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 Message Types

#

§2 Context

Context

This API enables you to retrieve standardized card information for displaying conversational data. You can choose to use it based on your specific requirements. Our overall data is divided into three parts, and the content contained within these three sections may vary depending on the scenario, user, or purpose. Content The field content contains metadata of the message content, including only a limited set of key fields. Custom UI? Build from Raw Data The field data encapsulates the business data related to the message, such as order, product, or logistics information. Developers can use this field to build custom UI representations based on their own requirements. This field is returned only when request.query.need_data=true. Note that business data may be time-sensitive. Need Speed? Use Plaintext. The field plaintext is a plain text representation of the message intended for UI display. It already includes relevant business information, and developers may directly use this field for UI rendering without additional processing. This field is returned only when request.query.need_plaintext=true. Note that business data may be time-sensitive.

#

§3 TEXT

TEXT

#

§4 content

content

#
§5 Properties

Properties

PropertiesTypeDescription
contentstringText content
#
§6 Example

Example

{
  "content": "simple text"
}
#

§7 IMAGE / EMOTICONS

IMAGE / EMOTICONS

#

§8 content

content

{
   "url": "https://tosv.boei18n.byted.org/obj/temai-im/FszkJ53nSapYG6KDaJQmqR3jjoZGwww304-290",
  "width": 300,
  "height": 300
}
#
§9 Properties

Properties

PropertiesTypeDescription
urlstringURL of the image
widthintWidth of the image
heightintHeight of the image
#

§10 VIDEO

VIDEO

#

§11 content

content

{
  "url": "https://video-boei18n.byted.org/storage/v1/tos-boei18n-v-c72c01/e8240f35244646428df9c3244d1a7408?x-tos-algorithm=v2&x-tos-authkey=5bf25627da095a5cba28ace592de46cc&x-tos-expires=1681980481&x-tos-signature=r_bRxtrvGhXAuZgMmNhlZ_Upqzg",
  "cover": "https://p-boei18n.byted.org/tos-boei18n-v-c72c01/o8keEOhzTcNCcJyAbkWZwpLIyTfkJxcGbRBvLP~tplv-jvtte31kaf-origin-jpeg.jpeg?",
  "width": 640,
  "height": 360,
  "duration": "20.504",
  "vid": "v0e30cg700f7cgcmu8jc77u9e2bdp95g",
  "expire_time": "1681980481",
  "format": "mp4",
  "size": 400000,
  "bit_rate": 156067,
  "quality": "original",
  "codec_type": "h264"
}
#
§12 Properties

Properties

PropertiesTypeDescription
urlstringURL of the video
widthintWidth of the video
heightintHeight of the video
durationstringDuration of the video
vidstringIdentifier of the video
expire_timeintExpiration of the video, in Unix timestamp
formatstringVideo file format
sizeintFile size in bytes
bit_rateintVideo bit rate in kbps
qualitystringVideo quality level
codec_typestringVideo codec
#

§13 ORDER_CARD

ORDER_CARD

#

§14 content

content

#
§15 Properties

Properties

PropertiesTypeDescription
order_idstringOrder identifier
#
§16 Example

Example

{
  "order_id": "123"
}
#

§17 data

data

#
§18 Properties

Properties

PropertiesTypeDescription
order_idstringOrder identifier
order_statusstringCurrent order status
product_namestringProduct name
product_imagestringProduct image URL
paid_pricestringTotal amount paid
quantityintNumber of items in the order
order_linkstringURL to the order details page
#
§19 Example

Example

{
  "order_id": "123",
  "order_status": "Delivered",
  "product_id": "1234",
  "product_name": "abc",
  "product_image": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/1a80a431f63f447dbcb7f19b666757ea~tplv-aphluv4xwc-resize-webp:800:800.webp?dr=15582&t=555f072d&ps=933b5bde&shp=f359665f&shcp=5566cfe3&idc=my2&from=4082722399",
  "paid_price": "Rp16.000",
  "quantity": 3,
  "order_link": "https://seller-us.tiktok.com/order/detail?order_no=123"
}
#

§20 plaintext

plaintext

#
§21 Example

Example

Order card shared:
- Order ID: 582362672348497014; 
- Current order status: Delivered; 
- Number of items: 3; 
- Order payment amount: Rp16.000. 

View full details at: https://abc.com/
#

§22 PRODUCT_CARD

PRODUCT_CARD

#

§23 content

content

#
§24 Properties

Properties

PropertiesTypeDescription
product_idstringProduct identifier
#
§25 Example

Example

{
  "product_id": "1234"
}
#

§26 data

data

#
§27 Properties

Properties

PropertiesTypeDescription
product_idstringProduct identifier
product_namestringProduct display name
product_imagestringProduct image URL
product_highest_pricestringThe highest price in the product's price range
product_lowest_pricestringThe lowest price in the product's price range
sold_quantityintTotal number of units sold
product_linkstringURL to the product details page
#
§28 Example

Example

{
  "product_id": "1234",
  "product_name": "abc",
  "product_image": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/1a80a431f63f447dbcb7f19b666757ea~tplv-aphluv4xwc-resize-webp:800:800.webp?dr=15582&t=555f072d&ps=933b5bde&shp=f359665f&shcp=5566cfe3&idc=my2&from=4082722399",
  "product_highest_price": "139.000₫",
  "product_lowest_price": "119.000₫",
  "sold_quantity": 40013,
  "product_link": "https://seller-us.tiktok.com/product/manage?search_content=1234"
}
#

§29 plaintext

plaintext

#
§30 Example

Example

Product card shared:
- Product ID: 1732529206731441911; 
- Product name: abc; 
- Product lowest price: 119.000₫; 
- Product highest price: 139.000₫;
- Sold: 40642. 

View full details at: https://abc.com/
#

§31 RETURN_REFUND_CARD

RETURN_REFUND_CARD

#

§32 content

content

#
§33 Properties

Properties

PropertiesTypeDescription
order_idstringThe associated order identifier
sku_idstringThe specific product SKU identifier for the return/refund
#
§34 Example

Example

{
  "order_id": "123",
  "sku_id": "1234"
}
#

§35 data

data

#
§36 Properties

Properties

PropertiesTypeDescription
sku_idstringThe specific product SKU identifier
order_idstringThe associated order identifier
order_statusstringCurrent status of the order
product_namestringName of the product being returned/refunded
product_imagestringURL of the product image
paid_pricestringThe amount paid for the SKU
quantityintNumber of items for the SKU
order_linkstringURL to the original order details page
#
§37 Example

Example

{
  "sku_id": "1",
  "order_id": "123",
  "order_status": "Delivered",
  "product_id": "1234",
  "product_name": "abc",
  "product_image": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/1a80a431f63f447dbcb7f19b666757ea~tplv-aphluv4xwc-resize-webp:800:800.webp?dr=15582&t=555f072d&ps=933b5bde&shp=f359665f&shcp=5566cfe3&idc=my2&from=4082722399",
  "paid_price": "Rp10.667",
  "quantity": 2,
  "order_link": "https://seller-us.tiktok/com/order/detail?order_no=123"
}
#

§38 plaintext

plaintext

#
§39 Example

Example

Return/refund form shared:
- SKU ID: 1; 
- Order ID: 123;
- Order status: Delivered; 
- Product ID: 1234; 
- Product name: abc; 
- Number of items: 2; 
- Reverse amount: Rp10.667.
#

§40 COUPON_CARD

COUPON_CARD

#

§41 content

content

#
§42 Properties

Properties

PropertiesTypeDescription
coupon_idstringCoupon identifier
#
§43 Example

Example

{
  "coupon_id": "12"
}
#

§44 data

data

#
§45 Properties

Properties

PropertiesTypeDescription
coupon_idstringCoupon identifier
coupon_titlestringDisplay title of the coupon
coupon_typestringType of coupon (e.g., "Regular")
discountstringThe discount amount or percentage
thresholdstringThe condition to be met to use the coupon
scopestringThe scope of products the coupon applies to
start_timeintThe coupon validity start time (Unix timestamp)
end_timeintThe coupon validity end time (Unix timestamp)
coupon_linkstringURL to the coupon details page
#
§46 Example

Example

{
  "coupon_id": "12",
  "coupon_title": "cheap",
  "coupon_type": "Regular",
  "discount": "₱26.00 off",
  "threshold": "on order over ₱196.00",
  "scope": "Selected products",
  "start_time": 1768634640,
  "end_time": 1773829080,
  "coupon_link": "https://seller-us.toktok.com/promotion/marketing-tools/voucher/view/12"
}
#

§47 plaintext

plaintext

#
§48 Example

Example

Coupon shared:
- Coupon ID: 12; 
- Coupon title: cheap; 
- Coupon discount: ₱26.00 off;
- Coupon scope: Selected products;
- Coupon condition: on order over ₱196.00; 
- Coupon validity: Jan 17, 2026 3:24 PM to Mar 18, 2026 6:18 PM GMT+08:00. 

View full details at: https://abc.com/
#

§49 LOGISTICS_CARD

LOGISTICS_CARD

#

§50 content

content

#
§51 Properties

Properties

PropertiesTypeDescription
order_idstringThe associated order identifier
package_idstringThe specific package identifier for tracking
#
§52 Example

Example

{
  "order_id": "123",
  "package_id": "12345"
}
#

§53 data

data

#
§54 Properties

Properties

PropertiesTypeDescription
packageslist<Package>An array of package objects, each containing logistics and product details.
  • Package
PropertiesTypeDescription
package_idstringPackage identifier
product_namestringProduct display name
product_imagestringProduct image URL
paid_pricestringTotal amount paid
quantityintNumber of items in the package
predict_delivery_time_minintThe minimum estimated delivery time
predict_delivery_time_maxintThe maximum estimated delivery time
delivery_optionstringThe selected delivery option for the order
tracking_numberstringThe tracking number provided by the shipping provider
shipping_provider_namestringThe name of the shipping provider or carrier
trackinglist<Tracking>The list of tracking records that describe the shipment status history
  • Tracking
PropertiesTypeDescription
descriptionstringThe description of the shipment status update
update_time_millisintThe timestamp when the shipment status was updated
#
§55 Example

Example

{
  "packages": [
    {
      "package_id": "12345",
      "product_name": "abc",
      "product_image": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/1a80a431f63f447dbcb7f19b666757ea~tplv-aphluv4xwc-resize-webp:800:800.webp?dr=15582&t=555f072d&ps=933b5bde&shp=f359665f&shcp=5566cfe3&idc=my2&from=4082722399",
      "paid_price": "$0.01",
      "quantity": 1,
      "predict_delivery_time_min": 1763198750000,
      "predict_delivery_time_max": 1763457950000,
      "delivery_option": "Standard shipping",
      "tracking_number": "1ZCIETST0422222228",
      "shipping_provider_name": "UPS",
      "tracking": [
        {
          "description": "Package has been delivered!",
          "update_time_millis": 1763954669267
        },
        {
          "description": "Arrived at the carrier's facility.",
          "update_time_millis": 1763954598311
        }
      ]
    }
  ]
}
#

§56 plaintext

plaintext

#
§57 Example

Example

Logistics card shared:
- Order ID: 123;
- Package ID: 12345;
- Number of items: 1; 
- Order payment amount: Rp63.852; 
- Delivery option: Economy shipping
- J&T Express: JX7053814071; 
- Estimated delivery date: Jan 17, 2026 3:24 PM - Mar 18, 2026 6:18 PM GMT+08:00; 
- Logistics latest update: 
  Jan 30, 2026 2:35 AM
  Your package has left the sorting center in Tangerang City.
  Jan 30, 2026 1:48 AM
  Your package has arrived at the sorting center in Tangerang City.
  Jan 29, 2026 9:03 PM
  Your package has been collected by our carrier in Tangerang Regency.
  Jan 29, 2026 1:34 PM
  The seller is preparing your package, and will hand it over to our carrier for shipping..

View full details at: https://abc.com/
#

§58 [Others]

[Others]

OTHER / NOTIFICATION / ALLOCATED_SERVICE / BUYER_ENTER_FROM_TRANSFER

#

§59 content

content

#
§60 Properties

Properties

PropertiesTypeDescription
contentstringText content
#
§61 Example

Example

{
  "content": "...."
}
#