VI | EN
Message us on Messenger
Developer resources

Delete Products — TikTok Shop API

tiktok.product.202309.products · 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.

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_ids trong THÂN JSON dù method là DELETE.
  • Luôn kiểm data.errors — code = 0 không có nghĩa mọi sản phẩm đã xóa. Sản phẩm FREEZE không xóa được.

Request

Endpoint

DELETE https://partner.quantri360.com/v1/tiktok/product/202309/products

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_idquerystring100001Gian 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

NameInTypeRequiredSampleDescription
product_idsbodystring[]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)

NameTypeSampleDescription
codeint00 = thành công; khác 0 xem message (105001–105003 = token, 360 đã tự làm mới một lần).
messagestringSuccessThông điệp của TikTok.
request_idstring2025101900000000000000000000Mã request TikTok.
dataobjectDữ liệu.
errorsobject[]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

  1. Sign up for Partner
  2. Enable a data type of the Sản phẩm group on the platform page
  3. Create an API key (tick the TikTok Shop channel)
  4. Call it as in the examples above