tiktok.product.202309.products
DELETE/product/202309/productsVia 360: DELETE https://partner.quantri360.com/v1/tiktok/product/202309/products
Write endpoint — changes data on TikTok Shop. The key must be created with "Allow write API calls" ticked, otherwise you get 403 write_not_allowed. Every call is logged.
Description
Xóa tối đa 20 sản phẩm (không ở trạng thái bị đóng băng) khỏi gian hàng.
- Là API GHI — thay đổi dữ liệu thật trên TikTok Shop (xóa sản phẩm, không khôi phục được); key cần quyền ghi.
- Gửi
product_idstrong THÂN JSON dù method là DELETE. - Luôn kiểm
data.errors—code = 0không có nghĩa mọi sản phẩm đã xóa. Sản phẩmFREEZEkhông xóa được.
Request
Endpoint
DELETE https://partner.quantri360.com/v1/tiktok/product/202309/products
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 |
|---|---|---|---|---|---|
| product_ids | body | string[] | Yes | ["1729592969712207008"] | Mã sản phẩm cần xóa, tối đa 20. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/product/202309/products?platform_shop_id=7494000000000000000" \ -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/202309/products",
params={
"platform_shop_id": "7494000000000000000"
},
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/202309/products');
for (const [k, v] of Object.entries({"platform_shop_id":"7494000000000000000"})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'DELETE',
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/202309/products' . '?' . http_build_query(['platform_shop_id' => '7494000000000000000']); $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 | 0 = thành công; khác 0 xem message (105001–105003 = token, 360 đã tự làm mới một lần). |
| message | string | Success | Thông điệp của TikTok. |
| request_id | string | 2025101900000000000000000000 | Mã request TikTok. |
| data | object | Dữ liệu. | |
| errors | object[] | Sản phẩm KHÔNG xóa được: [{code, message, detail{product_id}}] — có thể có kể cả khi `code = 0`. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "202203070749000101…",
"data": {
"errors": [
{
"code": 12052048,
"message": "You can't edit other sellers' products.",
"detail": {
"product_id": "1729382588639839583"
}
}
]
}
}
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