VI | EN
Message us on Messenger
Developer resources

Create a catalog — TikTok Business API

Create a catalog · 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.

Create a catalog

POST/catalog/create/Via 360: POST https://partner.quantri360.com/v1/tiktok_business/catalog/create/
Write endpoint — changes data on TikTok Business. The key must be created with "Allow write API calls" ticked, otherwise you get 403 write_not_allowed. Every call is logged.
Description

Use this endpoint to create and set up your catalog using information such as name, targeted locations, and currency.

Request

Endpoint

POST https://partner.quantri360.com/v1/tiktok_business/catalog/create/

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
bc_idbodystringYesBusiness Center ID.
namebodystringYesCatalog name. Length limit: 128 characters.
catalog_typebodystringYesCatalog type. Enum values: - ECOM: E-commerce catalog. - HOTEL: hotel catalog. - FLIGHT: flight catalog. - DESTINATION: destination catalog. - ENTERTAINMENT: entertainment catalog. - AUTO_VEHICLE: Auto-Inventory catalog. - When catalog_type is AUTO_MODEL, see List of region codes and currencies for Auto-Inventory and Auto-Model catalogs to find out the supported region_code and currency values. - AUTO_MODEL: Auto-Model catalog. - When catalog_type is AUTO_MODEL, see List of region codes and currencies for Auto-Inventory and Auto-Model catalogs to find out the supported region_code and currency values. - MINI_SERIES: mini series catalog. - GENERIC: generic catalog. - ONLINE_TO_OFFLINE: online-to-offline catalog. - When catalog_type is ONLINE_TO_OFFLINE, see List of region codes and currencies for online-to-offline catalogs to find out the supported region_code and currency values.Note: - The entertainment catalog is currently an allowlist-only feature and is invitation-only because this catalog type is under Alpha Testing. If you would like to access it, please contact your TikTok representative. However, acceptance into the Alpha Test is not guaranteed. - The mini series catalog is currently an allowlist-only feature and is invitation-only because the catalog type is under testing. If you would like to access it, please contact your TikTok representative. However, acceptance into the test is not guaranteed.
catalog_confbodyobjectYesCatalog configuration information.

Request examples

curl -s -X POST "https://partner.quantri360.com/v1/tiktok_business/catalog/create/" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"bc_id":"","name":"","catalog_type":"","catalog_conf":{"region_code":"","currency":""}}'
Python
import requests

KEY = "q360_live_..."  # khóa API của brand
r = requests.post(
    "https://partner.quantri360.com/v1/tiktok_business/catalog/create/",
    params={},
    json={
        "bc_id": "",
        "name": "",
        "catalog_type": "",
        "catalog_conf": {
            "region_code": "",
            "currency": ""
        }
    },
    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/catalog/create/');
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({"bc_id":"","name":"","catalog_type":"","catalog_conf":{"region_code":"","currency":""}}),
});
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/catalog/create/' . '?' . 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, '{"bc_id":"","name":"","catalog_type":"","catalog_conf":{"region_code":"","currency":""}}');
$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
codenumberReturn code. For the complete list of response codes and descriptions, see Appendix - Return Code.
messagestringReturn message. For details, see Appendix-Return message.
dataobjectReturned data.
catalog_idstringCatalog ID.
request_idstringThe log id of a request, which uniquely identifies the request.

Response sample

HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "OK",
    "request_id": "{{request_id}}",
    "data": {
        "catalog_id": "{{catalog_id}}"
    }
}
(/code);

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