VI | EN
Message us on Messenger
Developer resources

Query Target Collaboration Detail — TikTok Shop API

tiktok.affiliate_seller.202508.target_collaborations.target_collaboration_id · 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_seller.202508.target_collaborations.target_collaboration_id

GET/affiliate_seller/202508/target_collaborations/{target_collaboration_id}Via 360: GET https://partner.quantri360.com/v1/tiktok/affiliate_seller/202508/target_collaborations/{target_collaboration_id}
Description

Chi tiết một hợp tác mục tiêu: danh sách sản phẩm (giá gốc, tỉ lệ / tiền hoa hồng, hoa hồng quảng cáo) và danh sách creator được mời (đã thêm showcase / đã đăng nội dung bao nhiêu sản phẩm) — dùng để theo dõi từng KOC trong thỏa thuận riêng.

  • Gọi qua /v1/tiktok/affiliate_seller/202508/target_collaborations/{target_collaboration_id} 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 chi tiết tên trường là creator_invited_count (đúng chính tả), còn ở API tìm kiếm là creator_inivited_count.
  • Các con số *_count cấp hợp tác chỉ tính trạng thái NORMAL; số theo creator tính cả NORMAL và DELETING.
  • Dùng được cả với hợp tác đã kết thúc (trạng thái COMPLETED).
  • API chỉ đọc; code = 0 mới là thành công.

Request

Endpoint

GET https://partner.quantri360.com/v1/tiktok/affiliate_seller/202508/target_collaborations/{target_collaboration_id}

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
target_collaboration_idpathstringYes7642000000000000001Mã hợp tác — id của target_collaborations/search.

Request examples

curl -s "https://partner.quantri360.com/v1/tiktok/affiliate_seller/202508/target_collaborations/7642000000000000001?platform_shop_id=7494000000000000000" \
  -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_seller/202508/target_collaborations/7642000000000000001",
    params={
        "platform_shop_id": "7494000000000000000"
    },
    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/202508/target_collaborations/7642000000000000001');
for (const [k, v] of Object.entries({"platform_shop_id":"7494000000000000000"})) 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_seller/202508/target_collaborations/7642000000000000001' . '?' . http_build_query(['platform_shop_id' => '7494000000000000000']);
$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
codeint00 = thành công; khác 0 xem message (105001–105003 = token, 360 đã tự làm mới một lần).
messagestringSuccessThông điệp của TikTok.
request_idstring2025101900000000000000000000Mã request TikTok.
dataobjectDữ liệu.
target_collaborationobject
idstring7642000000000000001
namestringCửa hàng mẫu
messagestring
typestringSTANDARD`STANDARD` · `TOP_CREATOR_PROGRAM`.
start_timeint1779425875Unix giây.
end_timeint1782838799Unix giây.
update_timeintUnix giây.
creator_invited_countint1Số creator được mời (chỉ tính trạng thái NORMAL).
showcase_creator_countint1Số creator đã thêm sản phẩm vào showcase (NORMAL).
content_creator_countint1Số creator đã đăng nội dung (NORMAL).
product_countint3Số sản phẩm (NORMAL).
free_sample_ruleobject{has_free_sample, is_sample_approval_exempt}.
seller_contact_infoobjectLiên hệ người bán đã khai {email, phone_number, …} — vắng nếu không khai.
productsobject[]Sản phẩm trong hợp tác.
idstring1735000000000000001Mã sản phẩm.
titlestringTên.
main_image_urlstring
statusstringLIVE`LIVE` · `OUT_OF_STOCK` · `SELLER_DEACTIVATE` …
original_priceobject{currency, minimum_amount, maximum_amount} — giá gốc thấp / cao nhất các SKU.
commissionobjectHoa hồng.
rateint1000Tỉ lệ, đơn vị 1/100 % (1000 = 10%).
shop_ads_commission_rateint300Tỉ lệ cho đơn từ quảng cáo (300 = 3%).
minimum_amountstring50000Tiền hoa hồng ước tính thấp nhất các SKU.
maximum_amountstring70000Cao nhất.
currencystringVND
effective_timestring1779425875Hiệu lực từ (Unix giây, dạng chuỗi).
commission_effective_statusstringEFFECTIVE_ALL`EFFECTIVE_ALL` · `EFFECTIVE_PARTIALLY` …
collaboration_statusstringNORMAL`NORMAL` · `DELETING` (đang gỡ khỏi hợp tác).
creatorsobject[]Creator được mời.
creator_open_idstringAb1CdAAAAAA2xYza…
usernamestringcreator_abc123
nicknamestring
avatarobject{url}.
selection_regionstringVNThị trường creator được quảng bá.
showcase_product_countint3Số sản phẩm creator đã thêm vào showcase.
content_product_countint3Số sản phẩm creator đã đăng video / LIVE.
collaboration_statusstringNORMAL`NORMAL` · `DELETING`.
product_effective_statusstringEFFECTIVE_ALLHoa hồng đã hiệu lực với creator này trên tất cả / một phần sản phẩm.

Response sample

{
  "code": 0,
  "message": "Success",
  "request_id": "20261029165311DF1D5F…",
  "data": {
    "target_collaboration": {
      "id": "7642000000000000001",
      "name": "Cửa hàng mẫu",
      "message": "",
      "type": "STANDARD",
      "start_time": 1779425875,
      "end_time": 1782838799,
      "update_time": 1779425876,
      "creator_invited_count": 1,
      "showcase_creator_count": 1,
      "content_creator_count": 1,
      "product_count": 3,
      "free_sample_rule": {
        "has_free_sample": false,
        "is_sample_approval_exempt": false
      },
      "products": [
        {
          "id": "1735000000000000002",
          "title": "Set bộ biển bán rời Cửa hàng mẫu … SPMAU001",
          "main_image_url": "https://p16-oec-sg.ibyteimg.com/…",
          "status": "LIVE",
          "original_price": {
            "currency": "VND",
            "minimum_amount": "500000",
            "maximum_amount": "700000"
          },
          "commission": {
            "rate": 1000,
            "shop_ads_commission_rate": 300,
            "currency": "VND",
            "minimum_amount": "50000",
            "maximum_amount": "70000",
            "effective_time": "1779425875"
          },
          "commission_effective_status": "EFFECTIVE_ALL",
          "collaboration_status": "NORMAL"
        }
      ],
      "creators": [
        {
          "creator_open_id": "Ab1CdAAAAAA2xYza…",
          "username": "creator_abc123",
          "nickname": "Creator ABC",
          "avatar": {
            "url": "https://p16-common-sign.tiktokcdn.com/…"
          },
          "selection_region": "VN",
          "showcase_product_count": 3,
          "content_product_count": 3,
          "collaboration_status": "NORMAL",
          "product_effective_status": "EFFECTIVE_ALL"
        }
      ]
    }
  }
}

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