VI | EN
Message us on Messenger
Developer resources

Get Creator Performance for Campaign Product — TikTok Shop API

tiktok.affiliate_partner.202508.campaigns.campaign_id.products.product_id.performance · call it through Quantri360 with one API key for your own accounts / assets that you connected and authorized — 360 handles request signing and refreshing the authorization you granted.

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

NameInTypeSampleDescription
AuthorizationheaderheaderBearer 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_idquerystring100001Gian 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

NameInTypeRequiredSampleDescription
product_idpathstringYes100000000000000101Mã sản phẩm.
campaign_idpathstringYes100000000000000101Mã chiến dịch.
page_sizequeryintNo20Số kết quả mỗi trang: 1–50.
page_tokenquerystringNoCon 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)

NameTypeSampleDescription
codeint0Mã kết quả; 0 là thành công.
messagestringSuccessThông báo kết quả.
request_idstringDEMO_AFFILIATE_REQUESTMã truy vết yêu cầu.
dataobjectDữ liệu phản hồi.
total_creator_countint1Tổng creator số lượng.
promotion_creators[]objectDanh sách creator quảng bá.
paid_amountobjectĐã thanh toán số tiền.
currencystringVNDMã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND.
amountstring10000Số tiền. Giá trị bổ sung: IVA.
room_countint1Phòng số lượng.
video_countint1Video số lượng.
free_sample_statusstringNOT_REQUESTEDTrạ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.
commissionstringMinh họaHoa hồng.
effective_end_timestring1790812800Hiệu lực kết thúc thời điểm. Mốc Unix giây.
effective_start_timestring1790812800Hiệu lực bắt đầu thời điểm. Mốc Unix giây.
creatorobjectCreator.
nick_namestringCreator minh họaTên hiển thị creator.
avatar_urlstringhttps://example.com/minh-hoaURL ảnh đại diện. Giá trị bổ sung: CDN.
follower_numint1Số người theo dõi.
user_namestringcreator_minh_hoaTên tài khoản creator.
creator_open_idstringCREATOR_DEMO_001Open ID của creator.
affiliate_product_idstring100000000000000101Tiếp thị liên kết sản phẩm mã.
next_page_tokenstringCon 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

  1. Sign up for Partner
  2. Enable a data type of the Affiliate group on the platform page
  3. Create an API key (tick the TikTok Shop channel)
  4. Call it as in the examples above