tiktok.finance.202609.account_transactions
GET/finance/202609/account_transactionsVia 360: GET https://partner.quantri360.com/v1/tiktok/finance/202609/account_transactions
Description
Tra cứu giao dịch tài khoản phát sinh từ TradeIn của nhà cung cấp đã ủy quyền; không truyền seller_id để chọn người bán.
- Gọi qua /v1/tiktok/finance/202609/account_transactions 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.
- flows là bắt buộc; giá trị thử chưa hợp lệ, chưa xác định giá trị dùng được. flow_type vẫn nhận RECHARGE, WITHDRAW, REVERSE; không khẳng định flows cùng định dạng.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok/finance/202609/account_transactions
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 |
|---|---|---|---|---|---|
| start_time | query | string | No | 2026-11-01T00:00:00Z | Mốc bắt đầu RFC 3339 có múi giờ, tính cả mốc. |
| end_time | query | string | No | 2026-11-02T00:00:00Z | Mốc kết thúc RFC 3339 có múi giờ, không tính mốc. |
| flow_type | query | string | No | RECHARGE | Loại giao dịch: RECHARGE, WITHDRAW, REVERSE; bỏ trống để lấy mọi loại hỗ trợ. |
| page_size | query | int | Yes | 10 | Số kết quả mỗi trang. |
| page_token | query | string | No | Con trỏ next_page_token của trang trước; bỏ ở trang đầu. | |
| flows | query | string | Yes | CHUA_XAC_DINH | Tham số bắt buộc; chưa xác định giá trị hợp lệ qua 360. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok/finance/202609/account_transactions?start_time=2026-11-01T00%3A00%3A00Z&end_time=2026-11-02T00%3A00%3A00Z&flow_type=RECHARGE&page_size=10&page_token=&flows=CHUA_XAC_DINH" \ -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/202609/account_transactions",
params={
"start_time": "2026-11-01T00:00:00Z",
"end_time": "2026-11-02T00:00:00Z",
"flow_type": "RECHARGE",
"page_size": 10,
"page_token": "",
"flows": "CHUA_XAC_DINH"
},
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/202609/account_transactions');
for (const [k, v] of Object.entries({"start_time":"2026-11-01T00:00:00Z","end_time":"2026-11-02T00:00:00Z","flow_type":"RECHARGE","page_size":10,"page_token":"","flows":"CHUA_XAC_DINH"})) 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/202609/account_transactions' . '?' . http_build_query(['start_time' => '2026-11-01T00:00:00Z', 'end_time' => '2026-11-02T00:00:00Z', 'flow_type' => 'RECHARGE', 'page_size' => 10, 'page_token' => '', 'flows' => 'CHUA_XAC_DINH']); $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. | |
| flows | []object | Tham số bắt buộc; chưa xác định giá trị hợp lệ qua 360. | |
| amount | object | Số tiền. | |
| amount | string | 10000 | Số tiền. |
| currency | string | VND | Mã tiền tệ ISO 4217. |
| create_time | string | Minh họa | Tạo thời điểm. Giá trị: RFC. |
| direction | string | Minh họa | Chiều. Giá trị: OUT. |
| origin_transaction_id | string | 100000000000000001 | Gốc giao dịch mã. Giá trị: REVERSE. |
| reference_id | string | 100000000000000001 | Tham chiếu mã. |
| transaction_id | string | 100000000000000001 | Giao dịch mã. |
| type | string | RECHARGE | Loại. Giá trị: RECHARGE, WITHDRAW, REVERSE. |
| has_more | bool | False | Has more. |
| next_page_token | string | Con trỏ trang kế tiếp; rỗng là hết dữ liệu. | |
| total_count | int | 1 | Tổng số lượng. |
Response sample
{
"code": 0,
"message": "Success",
"request_id": "DEMO_REQUEST_A_01",
"data": {
"flows": [
{
"amount": {
"amount": "10000",
"currency": "VND"
},
"create_time": "Minh họa",
"direction": "Minh họa",
"origin_transaction_id": "100000000000000001",
"reference_id": "100000000000000001",
"transaction_id": "100000000000000001",
"type": "RECHARGE"
}
],
"has_more": false,
"next_page_token": "",
"total_count": 1
}
}
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