tiktok.affiliate_partner.202405.campaigns.campaign_id.products
GET/affiliate_partner/202405/campaigns/{campaign_id}/productsVia 360: GET https://partner.quantri360.com/v1/tiktok/affiliate_partner/202405/campaigns/{campaign_id}/products
Description
DÀNH CHO ĐỐI TÁC AFFILIATE: Liệt kê sản phẩm người bán đã gửi vào một chiến dịch affiliate, có phân trang và bộ lọ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/202405/campaigns/{campaign_id}/products
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. |
| category_asset_cipher | query | string | Yes | CATEGORY_ASSET_DEMO | Mã tài sản danh mục đã ủy quyền cho đối tác; dùng đúng mã của kết nối đối tác. |
| page_size | query | int | Yes | 20 | Số kết quả mỗi trang: 1–100. |
| 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. | |
| review_status | query | string | No | PENDING | Trạng thái sản phẩm: PENDING, APPROVED, REJECTED, PENDING_CLOSED hoặc CLOSED. |
| product_name | query | string | No | Minh họa | Lọc tên sản phẩm chứa chuỗi này. |
| product_id | query | string | No | 100000000000000101 | Mã sản phẩm dạng chuỗi số; khớp chính xác product.id. |
| shop_name | query | string | No | Gian hàng minh họa | Lọc tên gian hàng chứa chuỗi này. |
| category_id | query | string | No | 100000000000000101 | Mã ngành hàng; lấy sản phẩm thuộc ngành này hoặc ngành lá bên dưới. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/affiliate_partner/202405/campaigns/100000000000000101/products?category_asset_cipher=CATEGORY_ASSET_DEMO&page_size=20" \ -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/202405/campaigns/100000000000000101/products",
params={
"category_asset_cipher": "CATEGORY_ASSET_DEMO",
"page_size": 20
},
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/202405/campaigns/100000000000000101/products');
for (const [k, v] of Object.entries({"category_asset_cipher":"CATEGORY_ASSET_DEMO","page_size":20})) 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/202405/campaigns/100000000000000101/products' . '?' . http_build_query(['category_asset_cipher' => 'CATEGORY_ASSET_DEMO', 'page_size' => 20]); $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. | |
| products | []object | Danh sách sản phẩm. | |
| id | string | 100000000000000101 | Mã định danh. Giá trị bổ sung: SUCCEEDED, GET. |
| review_status | string | PENDING | Duyệt trạng thái. Giá trị: PENDING, PENDING_CLOSED, CLOSED. Giá trị bổ sung: APPROVED, REJECTED. |
| name | string | Chiến dịch minh họa | Tên. |
| main_image_url | string | https://example.com/minh-hoa | Chính ảnh url. |
| lowest_price | object | Thấp 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. |
| amount | string | 10000 | Số tiền. Giá trị bổ sung: IVA. |
| highest_price | object | 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. |
| amount | string | 10000 | Số tiền. Giá trị bổ sung: IVA. |
| inventory | int | 1 | Tồn kho. |
| shop_name | string | Gian hàng minh họa | Tên gian hàng. |
| total_commission_rate | int | 1000 | Tổng hoa hồng tỷ lệ. |
| creator_commission_rate | int | 1000 | Creator hoa hồng tỷ lệ. |
| partner_commission_rate | int | 1000 | Đối tác hoa hồng tỷ lệ. |
| open_collaboration_commission_rate | int | 1000 | Mở hợp tác hoa hồng tỷ lệ. |
| is_available | bool | true | Là khả dụng. |
| product_sales | int | 1 | Sản phẩm doanh số. |
| category | object | Ngành hàng. | |
| id | string | 100000000000000101 | Mã định danh. Giá trị bổ sung: SUCCEEDED, GET. |
| name | string | Chiến dịch minh họa | Tên. |
| sample_quota | int | 1 | Số mẫu có thể cấp. |
| sku_information_list | []object | Sku thông tin danh sách. | |
| sku_name | string | Phân loại minh họa | Tên phân loại SKU. |
| sku_id | string | 100000000000000101 | Mã SKU. |
| inventory | object | Tồn kho. | |
| available_quantity | string | Minh họa | Khả dụng số lượng. |
| base_price | object | Cơ sở tính giá. | |
| region_code | string | Minh họa | Vùng mã. |
| currency | string | VND | Mã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND. |
| list_price | string | 10000 | Danh sách giá. Giá trị bổ sung: MSRP, RRP. |
| sale_price | string | 10000 | Bán giá. |
| localized_dutiable_price | string | Minh họa | Theo thị trường tính thuế giá. |
| region_prices | []object | Vùng giá. | |
| region_code | string | Minh họa | Vùng mã. |
| currency | string | VND | Mã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND. |
| list_price | string | 10000 | Danh sách giá. Giá trị bổ sung: MSRP, RRP. |
| sale_price | string | 10000 | Bán giá. |
| localized_dutiable_price | string | Minh họa | Theo thị trường tính thuế giá. |
| properties | []object | Thuộc tính. | |
| name | string | Chiến dịch minh họa | Tên. |
| value_name | string | Minh họa | Giá trị tên. |
| product_description | string | Minh họa | Sản phẩm mô tả. |
| next_page_token | string | Con trỏ trang kế tiếp; rỗng khi hết dữ liệu. | |
| total_count | int | 1 | Tổng số kết quả. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_AFFILIATE_REQUEST",
"data": {
"products": [
{
"id": "100000000000000101",
"review_status": "PENDING",
"name": "Chiến dịch minh họa",
"main_image_url": "https://example.com/minh-hoa",
"lowest_price": {
"currency": "VND",
"amount": "10000"
},
"highest_price": {
"currency": "VND",
"amount": "10000"
},
"inventory": 1,
"shop_name": "Gian hàng minh họa",
"total_commission_rate": 1000,
"creator_commission_rate": 1000,
"partner_commission_rate": 1000,
"open_collaboration_commission_rate": 1000,
"is_available": true,
"product_sales": 1,
"category": {
"id": "100000000000000101",
"name": "Chiến dịch minh họa"
},
"sample_quota": 1,
"sku_information_list": [
{
"sku_name": "Phân loại minh họa",
"sku_id": "100000000000000101",
"inventory": {
"available_quantity": "Minh họa"
},
"base_price": {
"region_code": "Minh họa",
"currency": "VND",
"list_price": "10000",
"sale_price": "10000",
"localized_dutiable_price": "Minh họa"
},
"region_prices": [
{
"region_code": "Minh họa",
"currency": "VND",
"list_price": "10000",
"sale_price": "10000",
"localized_dutiable_price": "Minh họa"
}
],
"properties": [
{
"name": "Chiến dịch minh họa",
"value_name": "Minh họa"
}
]
}
],
"product_description": "Minh họa"
}
],
"next_page_token": "",
"total_count": 1
}
}
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