tiktok.finance.202309.withdrawals
GET/finance/202309/withdrawalsVia 360: GET https://partner.quantri360.com/v1/tiktok/finance/202309/withdrawals
Description
Tra cứu giao dịch tài chính theo loại giao dịch và khoảng thời gian tạo.
- Gọi qua /v1/tiktok/finance/202309/withdrawals với Authorization: Bearer <key>; dùng platform_shop_id khi có nhiều shop. 360 tự gắn app_key, shop_cipher, sign và access_token.
- API chỉ đọc; code = 0 mới là thành công.
- Khi phân trang, giữ nguyên types và hai mốc create_time_ge / create_time_lt đã dùng ở trang đầu.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/finance/202309/withdrawals
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 |
|---|---|---|---|---|---|
| create_time_lt | query | int | No | 1793577600 | Thời điểm tạo trước, không tính mốc (Unix giây). |
| types | query | []string | Yes | ["WITHDRAW"] | Loại giao dịch: WITHDRAW rút tiền, SETTLE quyết toán, TRANSFER trợ cấp / khấu trừ, REVERSE hoàn giao dịch rút lỗi, PAYMENT thanh toán, REFUND hoàn tiền. |
| page_size | query | int | No | 10 | Số kết quả mỗi trang. 1–100, mặc định 20. |
| page_token | query | string | No | Con trỏ next_page_token của trang trước; bỏ ở trang đầu. | |
| create_time_ge | query | int | No | 1793491200 | Thời điểm tạo từ, tính cả mốc (Unix giây). |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/finance/202309/withdrawals?create_time_lt=1793577600&types=%5B%22WITHDRAW%22%5D&page_size=10&page_token=&create_time_ge=1793491200" \ -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/finance/202309/withdrawals",
params={
"create_time_lt": 1793577600,
"types": [
"WITHDRAW"
],
"page_size": 10,
"page_token": "",
"create_time_ge": 1793491200
},
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/finance/202309/withdrawals');
for (const [k, v] of Object.entries({"create_time_lt":1793577600,"types":["WITHDRAW"],"page_size":10,"page_token":"","create_time_ge":1793491200})) 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/finance/202309/withdrawals' . '?' . http_build_query(['create_time_lt' => 1793577600, 'types' => '["WITHDRAW"]', 'page_size' => 10, 'page_token' => '', 'create_time_ge' => 1793491200]); $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 | Mã. Giá trị: API. |
| message | string | Success | Tin nhắn. Giá trị: API. |
| request_id | string | DEMO_REQUEST_A_01 | Yêu cầu mã. |
| data | object | Dữ liệu. | |
| next_page_token | string | Con trỏ trang kế tiếp; rỗng là hết dữ liệu. | |
| total_count | number | 1 | Tổng số lượng. |
| withdrawals | object[] | Khoản rút. | |
| id | string | 100000000000000001 | Mã. |
| type | string | WITHDRAW | Loại. Giá trị: WITHDRAW, SETTLE, TRANSFER, REVERSE, POLICY_VIOLATION_DEDUCTION, REWARD, PAYMENT, REFUND, UNKNOWN. |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Mã tiền tệ ISO 4217. |
| status | string | SUCCESS | Trạng thái. Giá trị: SUCCESS, WITHDRAW, INIT, ORDERED, PROCESSING, RECEIVED, PROCESSED, FAILED, REVERSED, EXCEPTION, CLOSED, UNKNOWN. |
| create_time | number | 1793491200 | Tạo thời điểm. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_REQUEST_A_01",
"data": {
"next_page_token": "",
"total_count": 1,
"withdrawals": [
{
"id": "100000000000000001",
"type": "WITHDRAW",
"amount": "10000",
"currency": "VND",
"status": "SUCCESS",
"create_time": 1793491200
}
]
}
}
Get started
- Sign up for Partner
- Enable a data type of the Tài chính / đối soát group on the platform page
- Create an API key (tick the TikTok Shop channel)
- Call it as in the examples above