tiktok.affiliate_partner.202508.campaigns.campaign_id.products.product_id.performance
GET/affiliate_partner/202508/campaigns/{campaign_id}/products/{product_id}/performanceVia 360: GET https://partner.quantri360.com/v1/tiktok/affiliate_partner/202508/campaigns/{campaign_id}/products/{product_id}/performance
Description
DÀNH CHO ĐỐI TÁC AFFILIATE: Liệt kê creator liên quan đến sản phẩm trong chiến dịch, kèm hoa hồng, trạng thái mẫu, người theo dõi và số video / LIVE nếu có.
- 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/202508/campaigns/{campaign_id}/products/{product_id}/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 |
|---|---|---|---|---|---|
| product_id | path | string | Yes | 100000000000000101 | Mã sản phẩm. |
| 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/202508/campaigns/100000000000000101/products/100000000000000101/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/202508/campaigns/100000000000000101/products/100000000000000101/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/202508/campaigns/100000000000000101/products/100000000000000101/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/202508/campaigns/100000000000000101/products/100000000000000101/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_creator_count | int | 1 | Tổng creator số lượng. |
| promotion_creators | []object | Danh sách creator quảng bá. | |
| paid_amount | object | Đã thanh toán số tiền. | |
| currency | string | VND | Mã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND. |
| amount | string | 10000 | Số tiền. Giá trị bổ sung: IVA. |
| room_count | int | 1 | Phòng số lượng. |
| video_count | int | 1 | Video số lượng. |
| free_sample_status | string | NOT_REQUESTED | Trạng thái mẫu miễn phí. Giá trị: NOT_REQUESTED, PENDING, AWAITING_SHIPMENT, AWAITING_COLLECTION, CONTENT_PENDING, REJECT_CANCELLED, OVERDUE_CANCELLED, UNFULFIL_CANCELLED, DEL_PLAN_CANCELLED, SELLER_NOT_SHIP_CANCELLED, WITHDRAW_CANCELLED, UNFULFILLABLE_CANCELLED, OPERATOR_MANUAL_CANCELLED, OPERATOR_MANUAL_FAILED, OPERATOR_MANUAL_COMPLETED. Giá trị bổ sung: SHIPPED. |
| commission | string | Minh họa | Hoa hồng. |
| effective_end_time | string | 1790812800 | Hiệu lực kết thúc thời điểm. Mốc Unix giây. |
| effective_start_time | string | 1790812800 | Hiệu lực bắt đầu thời điểm. Mốc Unix giây. |
| creator | object | Creator. | |
| nick_name | string | Creator minh họa | Tên hiển thị creator. |
| avatar_url | string | https://example.com/minh-hoa | URL ảnh đại diện. Giá trị bổ sung: CDN. |
| follower_num | int | 1 | Số người theo dõi. |
| user_name | string | creator_minh_hoa | Tên tài khoản creator. |
| creator_open_id | string | CREATOR_DEMO_001 | Open ID của creator. |
| affiliate_product_id | string | 100000000000000101 | Tiếp thị liên kết sản phẩm mã. |
| 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_creator_count": 1,
"promotion_creators": [
{
"paid_amount": {
"currency": "VND",
"amount": "10000"
},
"room_count": 1,
"video_count": 1,
"free_sample_status": "NOT_REQUESTED",
"commission": "Minh họa",
"effective_end_time": "1790812800",
"effective_start_time": "1790812800",
"creator": {
"nick_name": "Creator minh họa",
"avatar_url": "https://example.com/minh-hoa",
"follower_num": 1,
"user_name": "creator_minh_hoa",
"creator_open_id": "CREATOR_DEMO_001"
},
"affiliate_product_id": "100000000000000101"
}
],
"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