VI | EN
Message us on Messenger
Developer resources

Get identities for GMV Max Campaigns — TikTok Business API

Get identities for GMV Max Campaigns · 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.

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èm identity_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

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_idquerystring7000000000000000001Tà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

NameInTypeRequiredSampleDescription
store_idquerystringYes7495000000000000001Id 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_idquerystringYes7300000000000000001Id 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)

NameTypeSampleDescription
codeint00 = 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ệ).
messagestringOKThông điệp của TikTok.
request_idstring2021080307532501024502410704A7306FMã request TikTok — ghi lại khi cần tra lỗi.
dataobjectDữ liệu.
identity_listobject[]Danh tính của gian hàng.
identity_idstring7100000000000000001Id danh tính.
identity_typestringTTS_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_namestringThương hiệu mẫuTên hiển thị tài khoản TikTok.
user_namestringthuonghieu.officialTên người dùng.
profile_imagestringẢ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_availablebooltrueDùng được cho GMV Max sản phẩm.
live_gmv_max_availableboolfalseDùng được cho GMV Max LIVE.
unavailable_reasonstringOCCUPIEDChỉ 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_adsboolfalse`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_idstringChỉ khi `BC_AUTH_TT`: id Business Center của danh tính.
identity_authorized_shop_idstringCó ở một số danh tính `BC_AUTH_TT`: id gian hàng gắn với danh tính.
store_idstringChỉ khi `TTS_TT`: id gian hàng của danh tính.

Get started

  1. Sign up for Partner
  2. Enable a data type of the Ads (Marketing API) group on the platform page
  3. Create an API key (tick the TikTok Business channel)
  4. Call it as in the examples above