Get identities for GMV Max Campaigns
GET/gmv_max/identity/get/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/gmv_max/identity/get/
Description
Danh tính (tài khoản TikTok) gắn với một gian hàng TikTok Shop và danh tính nào dùng được cho GMV Max sản phẩm / LIVE.
- Lấy
store_id+store_authorized_bc_idở /gmv_max/store/list/ trước. - Danh tính dùng để lọc video ở /gmv_max/video/get/ (
identity_list): chọn danh tính cóproduct_gmv_max_available = true, gửi kèmidentity_authorized_bc_id/identity_authorized_shop_id/store_idđúng như trả về ở đây.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/gmv_max/identity/get/
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 | 7000000000000000001 | Tài sản TikTok Business đã kết nối — "Mã tài sản" ở trang Nền tảng hoặc GET /v1/platforms (tài khoản quảng cáo cho Marketing API, tài khoản TikTok cho Organic / Messaging). Có thể bỏ khi chỉ kết nối một tài sản. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| store_id | query | string | Yes | 7495000000000000001 | Id gian hàng TikTok Shop — lấy store_id ở /gmv_max/store/list/ (chọn gian hàng có is_gmv_max_available = true). |
| store_authorized_bc_id | query | string | Yes | 7300000000000000001 | Id Business Center được cấp quyền vào gian hàng — store_authorized_bc_id đi kèm store_id ở /gmv_max/store/list/. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/gmv_max/identity/get/?platform_shop_id=7000000000000000001&store_id=7495000000000000001&store_authorized_bc_id=7300000000000000001" \ -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_business/gmv_max/identity/get/",
params={
"platform_shop_id": "7000000000000000001",
"store_id": "7495000000000000001",
"store_authorized_bc_id": "7300000000000000001"
},
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_business/gmv_max/identity/get/');
for (const [k, v] of Object.entries({"platform_shop_id":"7000000000000000001","store_id":"7495000000000000001","store_authorized_bc_id":"7300000000000000001"})) 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_business/gmv_max/identity/get/' . '?' . http_build_query(['platform_shop_id' => '7000000000000000001', 'store_id' => '7495000000000000001', 'store_authorized_bc_id' => '7300000000000000001']); $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 Business)
| Name | Type | Sample | Description |
|---|---|---|---|
| code | int | 0 | 0 = thành công; khác 0 xem `message` (TikTok trả HTTP 200 kèm code lỗi; vd 40002 = tham số sai, message liệt kê giá trị hợp lệ). |
| message | string | OK | Thông điệp của TikTok. |
| request_id | string | 2021080307532501024502410704A7306F | Mã request TikTok — ghi lại khi cần tra lỗi. |
| data | object | Dữ liệu. | |
| identity_list | object[] | Danh tính của gian hàng. | |
| identity_id | string | 7100000000000000001 | Id danh tính. |
| identity_type | string | TTS_TT | `AUTH_CODE` = người dùng ủy quyền bằng mã ủy quyền (tài khoản / bài) · `TT_USER` = tài khoản TikTok gắn với tài khoản TikTok for Business · `BC_AUTH_TT` = tài khoản TikTok đã thêm vào Business Center và được chủ tài khoản đồng ý · `TTS_TT` = tài khoản TikTok chính thức của gian hàng TikTok Shop. |
| display_name | string | Thương hiệu mẫu | Tên hiển thị tài khoản TikTok. |
| user_name | string | thuonghieu.official | Tên người dùng. |
| profile_image | string | Ảnh đại diện — link TẠM, hạn khoảng 48 giờ (mốc ở `x-expires`); hết hạn gọi lại API này. | |
| product_gmv_max_available | bool | true | Dùng được cho GMV Max sản phẩm. |
| live_gmv_max_available | bool | false | Dùng được cho GMV Max LIVE. |
| unavailable_reason | string | OCCUPIED | Chỉ khi `live_gmv_max_available = false`: `OCCUPIED` = đang dùng cho một chiến dịch GMV Max LIVE đang bật · `UNAUTHORIZED` = chưa được cấp quyền dùng cho LIVE. |
| is_running_custom_shop_ads | bool | false | `true` = danh tính đang chạy Shopping Ads (video / sản phẩm / LIVE) đang bật — xem ở /gmv_max/occupied_custom_shop_ads/list/. |
| identity_authorized_bc_id | string | Chỉ khi `BC_AUTH_TT`: id Business Center của danh tính. | |
| identity_authorized_shop_id | string | Có ở một số danh tính `BC_AUTH_TT`: id gian hàng gắn với danh tính. | |
| store_id | string | Chỉ khi `TTS_TT`: id gian hàng của danh tính. |
Get started
- Sign up for Partner
- Enable a data type of the Ads (Marketing API) group on the platform page
- Create an API key (tick the TikTok Business channel)
- Call it as in the examples above