tiktok.product.202604.opportunities.submissions
GET/product/202604/opportunities/submissionsVia 360: GET https://partner.quantri360.com/v1/tiktok/product/202604/opportunities/submissions
Description
Lấy lịch sử gửi sản phẩm tham gia cơ hội bán hàng, gồm trạng thái, kết quả duyệt và sản phẩm liên kết.
- Gọi qua /v1/tiktok/product/202604/opportunities/submissions 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
GET https://partner.quantri360.com/v1/tiktok/product/202604/opportunities/submissions
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 |
|---|---|---|---|---|---|
| status | query | string | No | APPROVED | Trạng thái; giá trị liên quan: PENDING_REVIEW. |
| opportunity_id | query | string | No | 900000000000000001 | Mã cơ hội bán hàng. |
| product_id | query | string | No | 900000000000000001 | Mã sản phẩm. |
| submit_time_ge | query | int | No | 1793494800 | Thời gian gửi từ mốc này, bao gồm; Unix giây. |
| submit_time_lt | query | int | No | 1793494800 | Thời gian gửi trước mốc này, không bao gồm; Unix giây. |
| page_token | query | string | No | Con trỏ phân trang; lần đầu có thể bỏ. | |
| page_size | query | int | Yes | 10 | Số kết quả mỗi trang. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/product/202604/opportunities/submissions?status=APPROVED&opportunity_id=900000000000000001&product_id=900000000000000001&submit_time_ge=1793494800&submit_time_lt=1793494800&page_token=&page_size=10" \ -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/product/202604/opportunities/submissions",
params={
"status": "APPROVED",
"opportunity_id": "900000000000000001",
"product_id": "900000000000000001",
"submit_time_ge": 1793494800,
"submit_time_lt": 1793494800,
"page_token": "",
"page_size": 10
},
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/product/202604/opportunities/submissions');
for (const [k, v] of Object.entries({"status":"APPROVED","opportunity_id":"900000000000000001","product_id":"900000000000000001","submit_time_ge":1793494800,"submit_time_lt":1793494800,"page_token":"","page_size":10})) 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/product/202604/opportunities/submissions' . '?' . http_build_query(['status' => 'APPROVED', 'opportunity_id' => '900000000000000001', 'product_id' => '900000000000000001', 'submit_time_ge' => 1793494800, 'submit_time_lt' => 1793494800, 'page_token' => '', 'page_size' => 10]); $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 | YEU_CAU_MINH_HOA | Mã yêu cầu để tra cứu lỗi. |
| data | object | Dữ liệu. | |
| data | object | Dữ liệu. | |
| submissions | object[] | Danh sách lần gửi sản phẩm. | |
| id | string | 900000000000000001 | Mã định danh. |
| opportunity_id | string | 900000000000000001 | Mã cơ hội bán hàng. |
| opportunity_title | string | Minh họa | Tiêu đề cơ hội bán hàng. |
| status | string | APPROVED | Trạng thái; giá trị liên quan: PENDING_REVIEW. |
| product_id | string | 900000000000000001 | Mã sản phẩm. |
| product_name | string | Áo thun cotton cổ tròn minh họa | Tên sản phẩm. |
| submit_time | int | 1793494800 | Thời gian gửi; Unix giây. |
| review_time | int | 1793494800 | Thời gian xét duyệt; Unix giây. |
| rejection_reason | string | Minh họa | Lý do từ chối. |
| product_orders | int | 1 | Số đơn của sản phẩm. |
| product_pv | int | 1 | Lượt xem sản phẩm. |
| next_page_token | string | Con trỏ trang tiếp theo; rỗng là hết trang. | |
| total_count | int | 1 | Tổng số kết quả. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "YEU_CAU_MINH_HOA",
"data": {
"data": {
"submissions": [
{
"id": "900000000000000001",
"opportunity_id": "900000000000000001",
"opportunity_title": "Minh họa",
"status": "APPROVED",
"product_id": "900000000000000001",
"product_name": "Áo thun cotton cổ tròn minh họa",
"submit_time": 1793494800,
"review_time": 1793494800,
"rejection_reason": "Minh họa",
"product_orders": 1,
"product_pv": 1
}
],
"next_page_token": "",
"total_count": 1
}
}
}
Get started
- Sign up for Partner
- Enable a data type of the Sản phẩm group on the platform page
- Create an API key (tick the TikTok Shop channel)
- Call it as in the examples above