tiktok.affiliate_partner.202501.campaigns.campaign_id.products.performance
GET/affiliate_partner/202501/campaigns/{campaign_id}/products/performanceVia 360: GET https://partner.quantri360.com/v1/tiktok/affiliate_partner/202501/campaigns/{campaign_id}/products/performance
Description
DÀNH CHO ĐỐI TÁC AFFILIATE: Lấy thống kê hiệu quả từng sản phẩm trong chiến dịch affiliate, có phân trang.
- HIỆN CHƯA GỌI ĐƯỢC QUA 360: API này dùng kết nối của creator / đối tác, kết nối gian hàng trả code 36009005. Cần dùng → liên hệ 360.
- API chỉ đọc; code = 0 mới là thành công.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/affiliate_partner/202501/campaigns/{campaign_id}/products/performance
Authentication & shop
| Name | In | Type | Sample | Description |
|---|---|---|---|---|
| Authorization | header | header | Bearer q360_live_ab12cd34_… | Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand. |
| platform_shop_id | query | string | 100001 | Gian hàng (lấy ở GET /v1/platforms → shops[].platform_shop_id). BẮT BUỘC khi brand có > 1 gian hàng trên nền tảng; 360 bỏ tham số này trước khi chuyển tiếp. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| campaign_id | path | string | Yes | 100000000000000101 | Mã chiến dịch. |
| page_size | query | int | No | 20 | Số kết quả mỗi trang: 1–50. |
| page_token | query | string | No | Con trỏ next_page_token trả về trang trước; bỏ ở trang đầu. Khi sang trang, giữ nguyên các bộ lọc và page_size. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/affiliate_partner/202501/campaigns/100000000000000101/products/performance" \ -H "Authorization: Bearer $KEY"
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.get(
"https://partner.quantri360.com/v1/tiktok/affiliate_partner/202501/campaigns/100000000000000101/products/performance",
params={},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
print(r.status_code)
print(r.json())Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/tiktok/affiliate_partner/202501/campaigns/100000000000000101/products/performance');
for (const [k, v] of Object.entries({})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'GET',
headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());PHP
<?php $key = 'q360_live_...'; // khóa API của brand $url = 'https://partner.quantri360.com/v1/tiktok/affiliate_partner/202501/campaigns/100000000000000101/products/performance' . '?' . http_build_query([]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]); $res = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $status, "\n", $res;
Response
Response fields (as returned by TikTok Shop)
| Name | Type | Sample | Description |
|---|---|---|---|
| code | int | 0 | Mã kết quả; 0 là thành công. |
| message | string | Success | Thông báo kết quả. |
| request_id | string | DEMO_AFFILIATE_REQUEST | Mã truy vết yêu cầu. |
| data | object | Dữ liệu phản hồi. | |
| total_count | int | 1 | Tổng số kết quả. |
| campaign_product_statistics | []object | Chiến dịch sản phẩm thống kê. | |
| data_update_time | string | 1790812800 | Dữ liệu cập nhật thời điểm. Mốc Unix giây. |
| creator_sales_num | int | 1 | Số sản phẩm creator bán được. |
| collaborated_creators_num | int | 1 | Đã hợp tác creator số lượng. |
| promoted_creator_num | int | 1 | Đã quảng bá creator số lượng. |
| sample_requested_creator_num | int | 1 | Mẫu đã yêu cầu creator số lượng. |
| campaign_product_detail | object | Chiến dịch sản phẩm chi tiết. | |
| product_id | string | 100000000000000101 | Mã sản phẩm. |
| product_status | string | PRODUCT_UNSPECIFIED | Sản phẩm trạng thái. Giá trị: PRODUCT_UNSPECIFIED, PRODUCT_PENDING, PRODUCT_APPROVED, PRODUCT_REJECTED, PRODUCT_PENDING_CLOSED, PRODUCT_CLOSED. |
| product_name | string | Minh họa | Sản phẩm tên. |
| product_stock_count | string | Minh họa | Sản phẩm tồn kho số lượng. |
| total_commission_percent | string | Minh họa | Tổng hoa hồng phần trăm. |
| creator_commission_percent | string | Minh họa | Creator hoa hồng phần trăm. |
| partner_commission_percent | string | Minh họa | Đối tác hoa hồng phần trăm. |
| plan_commission_percent | string | Minh họa | Kế hoạch hoa hồng phần trăm. |
| product_price | object | Giá sản phẩm. | |
| min_price | string | Minh họa | Thấp nhất giá. |
| max_price | string | Minh họa | Cao nhất giá. |
| currency | string | VND | Mã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND. |
| product_thumbnail | object | Sản phẩm ảnh thu nhỏ. | |
| uri | string | DEMO_FILE_URI | URI tệp. |
| url_list | []string | ["Minh họa"] | Url danh sách. |
| indicator_data | object | Dữ liệu chỉ số. | |
| paid_order_num | string | Minh họa | Đã thanh toán đơn hàng số lượng. |
| actual_order_num | string | Minh họa | Thực tế đơn hàng số lượng. |
| estimated_amount | string | 10000 | Ước tính số tiền. |
| actual_amount | string | 10000 | Thực tế số tiền. |
| estimated_partner_commission | string | Minh họa | Ước tính đối tác hoa hồng. |
| actual_partner_commission | string | Minh họa | Thực tế đối tác hoa hồng. |
| creator_sales_num | string | Minh họa | Số sản phẩm creator bán được. |
| collaborated_creators_num | string | Minh họa | Đã hợp tác creator số lượng. |
| promoted_creator_num | string | Minh họa | Đã quảng bá creator số lượng. |
| sample_requested_creator_num | string | Minh họa | Mẫu đã yêu cầu creator số lượng. |
| next_page_token | string | Con trỏ trang kế tiếp; rỗng khi hết dữ liệu. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_AFFILIATE_REQUEST",
"data": {
"total_count": 1,
"campaign_product_statistics": [
{
"data_update_time": "1790812800",
"creator_sales_num": 1,
"collaborated_creators_num": 1,
"promoted_creator_num": 1,
"sample_requested_creator_num": 1,
"campaign_product_detail": {
"product_id": "100000000000000101",
"product_status": "PRODUCT_UNSPECIFIED",
"product_name": "Minh họa",
"product_stock_count": "Minh họa",
"total_commission_percent": "Minh họa",
"creator_commission_percent": "Minh họa",
"partner_commission_percent": "Minh họa",
"plan_commission_percent": "Minh họa",
"product_price": {
"min_price": "Minh họa",
"max_price": "Minh họa",
"currency": "VND"
},
"product_thumbnail": {
"uri": "DEMO_FILE_URI",
"url_list": [
"Minh họa"
]
},
"indicator_data": {
"paid_order_num": "Minh họa",
"actual_order_num": "Minh họa",
"estimated_amount": "10000",
"actual_amount": "10000",
"estimated_partner_commission": "Minh họa",
"actual_partner_commission": "Minh họa",
"creator_sales_num": "Minh họa",
"collaborated_creators_num": "Minh họa",
"promoted_creator_num": "Minh họa",
"sample_requested_creator_num": "Minh họa"
}
}
}
],
"next_page_token": ""
}
}
Get started
- Sign up for Partner
- Enable a data type of the Affiliate group on the platform page
- Create an API key (tick the TikTok Shop channel)
- Call it as in the examples above