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
| 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 |
|---|---|---|---|---|---|
| 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. | |
| page_size | query | int | No | 20 | Số kết quả mỗi trang: 1–50. |
| product_id | body | string | No | 100000000000000101 | Mã sản phẩm. |
| title | body | string | No | Sản phẩm minh họa | Tiêu đề. |
| creator_user_oepn_id | body | string | No | CREATOR_DEMO_001 | Open 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. |
| username | body | string | No | creator_minh_hoa | Tên tài khoản creator. |
| target_collabration_id | body | string | No | 100000000000000101 | Mã hợp tác mục tiêu; giữ đúng tên target_collabration_id, không đổi thành target_collaboration_id. |
| order_id | body | string | No | 100000000000000101 | Mã đơn hàng. |
| status | body | string | No | PENDING | Lọ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)
| 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. | |
| 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ả. |
| sample_applications | object[] | Danh sách yêu cầu nhận mẫu. | |
| id | string | 100000000000000101 | Mã định danh. Giá trị bổ sung: SUCCEEDED, GET. |
| commission_rate | string | 1000 | Tỷ lệ hoa hồng, đơn vị 0,01%; 1000 tương ứng 10%. Giá trị bổ sung: USD. |
| status | string | PENDING | Trạ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_id | string | 100000000000000101 | Mã đơn hàng. |
| available_quantity | int | 1 | Khả dụng số lượng. |
| approve_expiration_time | int | 1790812800 | Duyệt hết hạn thời điểm. Mốc Unix giây. |
| shipment_expiration_time | int | 1790812800 | Gửi hàng hết hạn thời điểm. Mốc Unix giây. |
| tracking_number | string | Minh họa | Theo dõi số. |
| fulfillment_status | string | PENDING | Trạ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_approvable | bool | true | Là có thể duyệt. |
| disapprovable_reasons | []string | ["Minh họa"] | Các lý do không thể duyệt. |
| partner_name | string | Đối tác minh họa | Đối tác tên. |
| creator | object | Creator. | |
| creator_open_id | string | CREATOR_DEMO_001 | Open ID của creator. |
| username | string | creator_minh_hoa | Tên tài khoản creator. |
| nickname | string | Creator minh họa | Tên hiển thị creator. |
| follower_count | int | 1 | Số người theo dõi. |
| avatar_url | string | https://example.com/minh-hoa | URL ảnh đại diện. Giá trị bổ sung: CDN. |
| gmv | object | Tổng giá trị hàng hóa (GMV). | |
| 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. |
| content_count | int | 1 | Nội dung số lượng. |
| fulfillment_percentage | string | Minh họa | Thực hiện nghĩa vụ tỷ lệ. |
| ec_video_view | int | 1 | Thương mại điện tử video lượt xem. |
| product | object | Sản phẩm. | |
| id | string | 100000000000000101 | Mã định danh. Giá trị bổ sung: SUCCEEDED, GET. |
| title | string | Sản phẩm minh họa | Tiêu đề. |
| sku_id | string | 100000000000000101 | Mã SKU. |
| sku_image_url | string | https://example.com/minh-hoa | Sku ảnh url. |
| sku_name | string | Phân loại minh họa | Tê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
- 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