VI | EN
Message us on Messenger
Developer resources

Get the product handling log — TikTok Business API

Get the product handling log · 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 the product handling log

GET/catalog/product/log/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/catalog/product/log/
Description

Use this endpoint to check if the products are uploaded or deleted successfully, and what to do if the upload or deletion fails.

Request

Endpoint

GET https://partner.quantri360.com/v1/tiktok_business/catalog/product/log/

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_idquerystringYesBusiness Center ID.
catalog_idquerystringYesCatalog ID.
feed_log_idquerystringYesProduct handling ID.
languagequerystringNoSupported languages. - en: English - zh-CN: Chinese - ja-JP: Japanese - de: German - es: Spanish - fr: French - hi-IN: Hindi (India) - id: Indonesian - it: Italian - ko: Korean - ms: Malay - ru: Russian - th: Thai - tr: Turkish - vi: Vietnamese Default value: en.

Request examples

curl -s "https://partner.quantri360.com/v1/tiktok_business/catalog/product/log/?bc_id=&catalog_id=&feed_log_id=" \
  -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/catalog/product/log/",
    params={
        "bc_id": "",
        "catalog_id": "",
        "feed_log_id": ""
    },
    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/product/log/');
for (const [k, v] of Object.entries({"bc_id":"","catalog_id":"","feed_log_id":""})) 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/catalog/product/log/' . '?' . http_build_query(['bc_id' => '', 'catalog_id' => '', 'feed_log_id' => '']);
$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
codenumberReturn code, see Appendix - Return code.
messagestringReturn message, see Appendix-Return message.
request_idstringThe log id of a request, which uniquely identifies the request.
dataobjectReturned data.
product_feed_logobjectProduct handling results.
catalog_idstringCatalog ID.
feed_idstringFeeds ID.
add_countnumberTotal number of new items.
update_countnumberTotal number of items modified.
delete_countnumberTotal number of items deleted.
error_countnumberNumber of errors.
warn_countnumberNumber of warnings.
process_statusstringProcessing status. Enum values: - `WAITING`: On hold and waiting for other tasks to complete. - `PROCESSING`: In progress. - `SUCCESS`: Succeeded. - `FAILED`: Failed.
update_modenumberUpdate mode. Enum values: - `INCREASE`: incremental. - `REPLACE`: full replacement.
start_timestringStart time.
end_timestringEnd time.
feed_log_dataobjectDetailed processing information.
download_pathobjectFile download address with all error/warning messages, key is language, value is file address.
error_affected_productsobject[]Error message.
affected_product_countnumberNumber of products affected.
affected_product_item_listobject[]List of affected items, showing only the first five items.
indexnumberIndex that identifies the position of the product among the products you uploaded. For example, an index of `2` represents the first product you uploaded through /catalog/product/file/ or /catalog/product/upload/.
titlestringReturned only for products in E-commerce catalogs, entertainment catalogs, Auto-Inventory catalogs, Auto-Model catalogs, or mini series catalogs. The title of the E-commerce, entertainment, Auto-Inventory catalogs, or Auto-Model product, or the name of the short drama series.
sku_idstringReturned only for products in E-commerce catalogs. A unique ID for the product, such as a SKU.
hotel_idstringReturned only for products in hotel catalogs. A unique ID for the hotel.
namestringReturned only for products in hotel catalogs or destination catalogs. The name of the hotel or the destination.
flight_idstringReturned only for products in flight catalogs. The unique ID specified for the flight.
airline_companystringReturned only for products in flight catalogs. The name of the airline company operating the flight.
media_title_idstringReturned only for products in entertainment catalogs. A unique ID for the media title item.
vehicle_idstringReturned only for products in Auto-Inventory or Auto-Model catalogs. A unique ID for the vehicle.
series_idstringReturned only for products in mini series catalogs. A unique self-defined ID for the short drama series.
makestringReturned only for products in Auto-Inventory or Auto-Model catalogs. The make (brand) of the vehicle.
product_urlstringProduct link.
descriptionstringProduct description.
valuestringField value.
fieldstringThe field with issue.
issuestringIssue details.
suggestionstringSuggestions for solving the issue.
warn_affected_productsobject[]Warning message.
affected_product_countnumberNumber of products affected.
affected_product_item_listobject[]List of affected items, showing only the first five items.
indexnumberIndex that identifies the position of the product among the products you uploaded. For example, an index of `2` represents the first product you uploaded through /catalog/product/file/ or /catalog/product/upload/.
titlestringReturned only for products in E-commerce catalogs, entertainment catalogs, Auto-Inventory catalogs, Auto-Model catalogs, or mini series catalogs. The title of the E-commerce, entertainment, Auto-Inventory catalogs, or Auto-Model product, or the name of the short drama series.
sku_idstringReturned only for products in E-commerce catalogs. A unique ID for the product, such as a SKU.
hotel_idstringReturned only for products in hotel catalogs. A unique ID for the hotel.
namestringReturned only for products in hotel catalogs or destination catalogs. The name of the hotel or the destination.
flight_idstringReturned only for products in flight catalogs. The unique ID specified for the flight.
airline_companystringReturned only for products in flight catalogs. The name of the airline company operating the flight.
media_title_idstringReturned only for products in entertainment catalogs. A unique ID for the media title item.
descriptionstringProduct description.
vehicle_idstringReturned only for products in Auto-Inventory or Auto-Model catalogs. A unique ID for the vehicle.
series_idstringReturned only for products in mini series catalogs. A unique self-defined ID for the short drama series.
makestringReturned only for products in Auto-Inventory or Auto-Model catalogs. The make (brand) of the vehicle.
product_urlstringProduct link.
valuestringField value.
fieldstringThe field with issue.
issuestringIssue details.
suggestionstringSuggestions for solving the issue.

Response sample

HTTPS/1.1 200 OK
{
"message": "OK",
"code": 0,
"data": {
    "product_feed_log": {
        "process_status": "SUCCESS",
        "update_mode": "INCREASE",
        "error_count": 0,
        "add_count": 0,
        "feeds_id": 2335,
        "warn_count": 1,
        "delete_count": 0,
        "feed_log_data": {
            "error_affected_products": null,
            "warn_affected_products": [
                {
                    "suggestion": "The \"age_group\" field is using an invalid value. Supported values only include: newborn/infant/toddler/kids/adult",
                    "issue": "Invalid value: age_group",
                    "field": "age_group",
                    "affected_product_count": 1,
                    "affected_product_item_list": [
                        {
                            "index": 3,
                            "sku_id": "tiktok_item_12424",
                            "description": "qgs test product description",
                            "title": "qgs test product",
                            "value": "None",
                            "product_url": "https://ads.tiktok.com"
                        }
                    ]
                },
                {
                    "suggestion": "The \"gender\" field is using an invalid value. Supported values only include: male/female/unisex",
                    "issue": "Invalid value: gender",
                    "field": "gender",
                    "affected_product_count": 1,
                    "affected_product_item_list": [
                        {
                            "index": 3,
                            "sku_id": "tiktok_item_12424",
                            "description": "qgs test product description",
                            "title": "qgs test product",
                            "value": "None",
                            "product_url": "https://ads.tiktok.com"
                        }
                    ]
                }
            ],
            "download_path": {
                "ru": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_ru.csv",
                "fr": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_fr.csv",
                "en": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_en.csv",
                "ms": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_ms.csv",
                "ko": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_ko.csv",
                "vi": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_vi.csv",
                "de": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_de.csv",
                "tr": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_tr.csv",
                "it": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_it.csv",
                "zh-CN": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_zh-CN.csv",
                "hi-IN": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_hi-IN.csv",
                "th": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_th.csv",
                "ja-JP": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_ja-JP.csv",
                "id": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_id.csv",
                "es": "http://tosv.boei18n.byted.org/obj/dpafeed/6865965734837634822_73472_es.csv"
            }
        },
        "catalog_id": 6865965734837634822,
        "update_count": 2,
        "start_time": "2020-09-14 05:15:09",
        "end_time": "2020-09-14 05:15:09"
    }
},
"request_id": "2020091406394701023125321410044"
}
(/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