VI | EN
Message us on Messenger
Developer resources

Search Sample Applications — TikTok Shop API

tiktok.affiliate_seller.202508.sample_applications.search · 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.sample_applications.search

POST/affiliate_seller/202508/sample_applications/searchVia 360: POST https://partner.quantri360.com/v1/tiktok/affiliate_seller/202508/sample_applications/search
Description

Tìm yêu cầu nhận mẫu theo sản phẩm, creator hoặc trạng thái; trả thông tin creator và chi tiết yêu cầu.

  • Gọi qua /v1/tiktok/affiliate_seller/202508/sample_applications/search 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/202508/sample_applications/search

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
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.
page_sizequeryintNo20Số kết quả mỗi trang: 1–50.
product_idbodystringNo100000000000000101Mã sản phẩm.
titlebodystringNoSản phẩm minh họaTiêu đề.
creator_user_oepn_idbodystringNoCREATOR_DEMO_001Open ID của creator; giữ nguyên tên creator_user_oepn_id, không đổi thành creator_user_open_id. Không dùng user ID, creator ID hoặc seller ID.
usernamebodystringNocreator_minh_hoaTên tài khoản creator.
target_collabration_idbodystringNo100000000000000101Mã hợp tác mục tiêu; giữ đúng tên target_collabration_id, không đổi thành target_collaboration_id.
order_idbodystringNo100000000000000101Mã đơn hàng.
statusbodystringNoPENDINGLọc trạng thái yêu cầu nhận mẫu: PENDING, AWAITING_SHIPMENT, CONTENT_PENDING, REJECT_CANCELLED, OVERDUE_CANCELLED, UNFULFILL_CANCELLED, DEL_OPEN_COLLAB, SELLER_NOT_SHIP_CANCELLED, WITHDRAW_CANCELLED, UNFULFILLABLE_CANCELLED, OPS_CANCELLED, OPS_FAILED, OPS_COMPLETED. PENDING chờ duyệt; AWAITING_SHIPMENT chờ gửi; SHIPPED đã gửi; CONTENT_PENDING chờ tạo nội dung; COMPLETED hoàn thành. Các trạng thái CANCELLED là đã hủy, OPS_FAILED do vận hành đánh dấu thất bại.

Request examples

curl -s -X POST "https://partner.quantri360.com/v1/tiktok/affiliate_seller/202508/sample_applications/search" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Python
import requests

KEY = "q360_live_..."  # khóa API của brand
r = requests.post(
    "https://partner.quantri360.com/v1/tiktok/affiliate_seller/202508/sample_applications/search",
    params={},
    json={},
    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/sample_applications/search');
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({}),
});
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/sample_applications/search' . '?' . 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, '{}');
$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.
next_page_tokenstringCon trỏ trang kế tiếp; rỗng khi hết dữ liệu.
total_countint1Tổng số kết quả.
sample_applicationsobject[]Danh sách yêu cầu nhận mẫu.
idstring100000000000000101Mã định danh. Giá trị bổ sung: SUCCEEDED, GET.
commission_ratestring1000Tỷ lệ hoa hồng, đơn vị 0,01%; 1000 tương ứng 10%. Giá trị bổ sung: USD.
statusstringPENDINGTrạng thái. Giá trị: PENDING, AWAITING_SHIPMENT, CONTENT_PENDING, REJECT_CANCELLED, OVERDUE_CANCELLED, UNFULFILL_CANCELLED, DEL_OPEN_COLLAB, SELLER_NOT_SHIP_CANCELLED, WITHDRAW_CANCELLED, UNFULFILLABLE_CANCELLED, OPS_CANCELLED, OPS_FAILED, OPS_COMPLETED. Giá trị bổ sung: SHIPPED.
order_idstring100000000000000101Mã đơn hàng.
available_quantityint1Khả dụng số lượng.
approve_expiration_timeint1790812800Duyệt hết hạn thời điểm. Mốc Unix giây.
shipment_expiration_timeint1790812800Gửi hàng hết hạn thời điểm. Mốc Unix giây.
tracking_numberstringMinh họaTheo dõi số.
fulfillment_statusstringPENDINGTrạng thái thực hiện nghĩa vụ tạo nội dung. Giá trị: PENDING, ONGOING, SUCCEED, FAILED, OVERDUE, SUSPEND, CANCELLED, EXEMPTED.
is_approvablebooltrueLà có thể duyệt.
disapprovable_reasons[]string["Minh họa"]Các lý do không thể duyệt.
partner_namestringĐối tác minh họaĐối tác tên.
creatorobjectCreator.
creator_open_idstringCREATOR_DEMO_001Open ID của creator.
usernamestringcreator_minh_hoaTên tài khoản creator.
nicknamestringCreator minh họaTên hiển thị creator.
follower_countint1Số người theo dõi.
avatar_urlstringhttps://example.com/minh-hoaURL ảnh đại diện. Giá trị bổ sung: CDN.
gmvobjectTổng giá trị hàng hóa (GMV).
amountstring10000Số tiền. Giá trị bổ sung: IVA.
currencystringVNDMã tiền tệ. Giá trị bổ sung: BRL, EUR, GBP, IDR, JPY, MXN, MYR, PHP, SGD, THB, USD, VND.
content_countint1Nội dung số lượng.
fulfillment_percentagestringMinh họaThực hiện nghĩa vụ tỷ lệ.
ec_video_viewint1Thương mại điện tử video lượt xem.
productobjectSản phẩm.
idstring100000000000000101Mã định danh. Giá trị bổ sung: SUCCEEDED, GET.
titlestringSản phẩm minh họaTiêu đề.
sku_idstring100000000000000101Mã SKU.
sku_image_urlstringhttps://example.com/minh-hoaSku ảnh url.
sku_namestringPhân loại minh họaTên phân loại SKU.

Response sample

{
  "code": 0,
  "message": "Success",
  "request_id": "DEMO_AFFILIATE_REQUEST",
  "data": {
    "next_page_token": "",
    "total_count": 1,
    "sample_applications": [
      {
        "id": "100000000000000101",
        "commission_rate": "1000",
        "status": "PENDING",
        "order_id": "100000000000000101",
        "available_quantity": 1,
        "approve_expiration_time": 1790812800,
        "shipment_expiration_time": 1790812800,
        "tracking_number": "Minh họa",
        "fulfillment_status": "PENDING",
        "is_approvable": true,
        "disapprovable_reasons": [
          "Minh họa"
        ],
        "partner_name": "Đối tác minh họa",
        "creator": {
          "creator_open_id": "CREATOR_DEMO_001",
          "username": "creator_minh_hoa",
          "nickname": "Creator minh họa",
          "follower_count": 1,
          "avatar_url": "https://example.com/minh-hoa",
          "gmv": {
            "amount": "10000",
            "currency": "VND"
          },
          "content_count": 1,
          "fulfillment_percentage": "Minh họa",
          "ec_video_view": 1
        },
        "product": {
          "id": "100000000000000101",
          "title": "Sản phẩm minh họa",
          "sku_id": "100000000000000101",
          "sku_image_url": "https://example.com/minh-hoa",
          "sku_name": "Phân loại minh họa"
        }
      }
    ]
  }
}

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