tiktok.affiliate_seller.202608.target_collaborations.creator_promotion_details.query
POST/affiliate_seller/202608/target_collaborations/creator_promotion_details/queryVia 360: POST https://partner.quantri360.com/v1/tiktok/affiliate_seller/202608/target_collaborations/creator_promotion_details/query
Description
Tra hoa hồng, số video và số lượt quảng bá LIVE theo creator, lời mời và sản phẩm.
- Gọi qua /v1/tiktok/affiliate_seller/202608/target_collaborations/creator_promotion_details/query với Authorization: Bearer <key>; dùng platform_shop_id khi có nhiều shop. 360 tự gắn app_key, shop_cipher, sign và access_token.
- API chỉ đọc; code = 0 mới là thành công.
Request
Endpoint
POST https://partner.quantri360.com/v1/tiktok/affiliate_seller/202608/target_collaborations/creator_promotion_details/query
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 |
|---|---|---|---|---|---|
| creator_user_open_id | body | string | Yes | CREATOR_DEMO_001 | Open ID của creator. |
| invitation_group_id | body | string | Yes | 100000000000000101 | Lời mời group mã. |
| query | body | string | No | Minh họa | Mã sản phẩm hoặc tên sản phẩm tương ứng query_type; gửi cả hai trường để lọc. |
| query_type | body | string | No | PRODUCT_ID | PRODUCT_ID khớp chính xác mã sản phẩm; PRODUCT_NAME tìm chuỗi con trong tên, có phân biệt chữ hoa thường. |
| invitation_id | body | string | No | 100000000000000101 | Lời mời mã. |
| product_filter | body | object | No | Sản phẩm bộ lọc. | |
| product_filter.added_types | body | []string | No | ["ALL"] | Lọc sản phẩm theo việc creator đã thêm: ALL mọi trạng thái; ADDED đã thêm; NOT_ADDED chưa thêm. |
Request examples
curl -s -X POST "https://partner.quantri360.com/v1/tiktok/affiliate_seller/202608/target_collaborations/creator_promotion_details/query" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"creator_user_open_id":"CREATOR_DEMO_001","invitation_group_id":"100000000000000101"}'
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.post(
"https://partner.quantri360.com/v1/tiktok/affiliate_seller/202608/target_collaborations/creator_promotion_details/query",
params={},
json={
"creator_user_open_id": "CREATOR_DEMO_001",
"invitation_group_id": "100000000000000101"
},
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_seller/202608/target_collaborations/creator_promotion_details/query');
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: 'POST',
headers: { Authorization: `Bearer ${KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({"creator_user_open_id":"CREATOR_DEMO_001","invitation_group_id":"100000000000000101"}),
});
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_seller/202608/target_collaborations/creator_promotion_details/query' . '?' . http_build_query([]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key, 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"creator_user_open_id":"CREATOR_DEMO_001","invitation_group_id":"100000000000000101"}');
$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. | |
| data | object | Dữ liệu phản hồi. | |
| product_details | []object | Sản phẩm chi tiết. | |
| product_base_info | object | Sản phẩm cơ sở tính thông tin. | |
| product_id | string | 100000000000000101 | Mã sản phẩm. |
| title | string | Sản phẩm minh họa | Tiêu đề. |
| image | object | Ảnh. | |
| url | string | https://example.com/minh-hoa | URL minh họa. |
| price | object | Giá bán. | |
| min_price | object | Thấp nhất giá. | |
| amount | string | 10000 | Số tiền. Giá trị bổ sung: IVA. |
| currency | string | VND | Mã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND. |
| max_price | object | Cao nhất giá. | |
| amount | string | 10000 | Số tiền. Giá trị bổ sung: IVA. |
| currency | string | VND | Mã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND. |
| promotion_price | object | Quảng bá giá. | |
| min_price | object | Thấp nhất giá. | |
| amount | string | 10000 | Số tiền. Giá trị bổ sung: IVA. |
| currency | string | VND | Mã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND. |
| max_price | object | Cao nhất giá. | |
| amount | string | 10000 | Số tiền. Giá trị bổ sung: IVA. |
| currency | string | VND | Mã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND. |
| target_commission | int | 1 | Mục tiêu hoa hồng. |
| open_commission | int | 1 | Mở hoa hồng. |
| target_ads_commission | int | 1 | Mục tiêu quảng cáo hoa hồng. |
| old_target_commission | int | 1 | Cũ mục tiêu hoa hồng. |
| old_target_ads_commission | int | 1 | Cũ mục tiêu quảng cáo hoa hồng. |
| commission_effective_time | int | 1790812800000 | Hoa hồng hiệu lực thời điểm. Mốc Unix mili giây. |
| ads_commission_effective_time | int | 1790812800000 | Quảng cáo hoa hồng hiệu lực thời điểm. Mốc Unix mili giây. |
| product_status | string | Minh họa | Sản phẩm trạng thái. |
| product_add_status | bool | false | Trạng thái thêm sản phẩm. |
| video_count | int | 1 | Video số lượng. |
| live_count | int | 1 | Live số lượng. Giá trị: LIVE. |
| is_commission_effective | bool | false | Là hoa hồng hiệu lực. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_AFFILIATE_REQUEST",
"data": {
"data": {
"product_details": [
{
"product_base_info": {
"product_id": "100000000000000101",
"title": "Sản phẩm minh họa",
"image": {
"url": "https://example.com/minh-hoa"
},
"price": {
"min_price": {
"amount": "10000",
"currency": "VND"
},
"max_price": {
"amount": "10000",
"currency": "VND"
}
},
"promotion_price": {
"min_price": {
"amount": "10000",
"currency": "VND"
},
"max_price": {
"amount": "10000",
"currency": "VND"
}
},
"target_commission": 1,
"open_commission": 1,
"target_ads_commission": 1,
"old_target_commission": 1,
"old_target_ads_commission": 1,
"commission_effective_time": 1790812800000,
"ads_commission_effective_time": 1790812800000,
"product_status": "Minh họa"
},
"product_add_status": false,
"video_count": 1,
"live_count": 1,
"is_commission_effective": false
}
]
}
}
}
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