tiktok.order.202407.orders.order_id.price_detail
GET/order/202407/orders/{order_id}/price_detailGọi qua 360: GET https://partner.quantri360.com/v1/tiktok/order/202407/orders/{order_id}/price_detail
Mô tả API
Phân rã giá của một đơn: giá niêm yết, giảm giá người bán / sàn, voucher, phí ship và phần giảm phí ship, thuế — cho cả đơn và từng dòng hàng.
- Gọi qua /v1/tiktok/order/202407/orders/{order_id}/price_detail 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.
- Tiền là chuỗi số theo
currency. Đây là giá phía NGƯỜI MUA; phí sàn / tiền người bán thực nhận nằm ở module Tài chính.
Request
Địa chỉ
GET https://partner.quantri360.com/v1/tiktok/order/202407/orders/{order_id}/price_detail
Xác thực & gian hàng
| Tên | Vị trí | Kiểu | Mẫu | Mô tả |
|---|---|---|---|---|
| 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. |
Tham số request
| Tên | Vị trí | Kiểu | Bắt buộc | Mẫu | Mô tả |
|---|---|---|---|---|---|
| order_id | path | string | Có | 576400000000000001 | Mã đơn. |
Ví dụ request
curl -s "https://partner.quantri360.com/v1/tiktok/order/202407/orders/576400000000000001/price_detail?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/order/202407/orders/576400000000000001/price_detail",
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/order/202407/orders/576400000000000001/price_detail');
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: '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/order/202407/orders/576400000000000001/price_detail' . '?' . 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
Tham số phản hồi (nguyên của TikTok Shop)
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| 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 | DEMO_REQUEST_0001 | Mã request TikTok. |
| data | object | Dữ liệu. | |
| currency | string | VND | |
| total | string | 10000 | Tổng giá gốc = sku_list_price + shipping_list_price. |
| payment | string | 10000 | Người mua đã trả. |
| sku_list_price | string | 10000 | Tổng giá niêm yết sản phẩm. |
| subtotal_deduction_seller | string | 10000 | Giảm giá sản phẩm do người bán chịu (gồm voucher người bán). |
| subtotal_deduction_platform | string | 10000 | Giảm giá sản phẩm do sàn chịu. |
| sku_sale_price | string | 10000 | Giá bán sau giảm = sku_list_price − 2 khoản giảm. |
| voucher_deduction_seller | string | 10000 | Phần giảm từ voucher người bán (nằm trong subtotal_deduction_seller). |
| voucher_deduction_platform | string | 10000 | Phần giảm từ voucher sàn. |
| subtotal | string | 10000 | Tiền hàng sau giảm, gồm thuế. |
| subtotal_tax_amount | string | 10000 | Thuế trên sản phẩm. |
| shipping_list_price | string | 10000 | Phí ship gốc. |
| shipping_fee_deduction_seller | string | 10000 | Giảm phí ship người bán chịu. |
| shipping_fee_deduction_platform | string | 10000 | Giảm phí ship sàn chịu. |
| shipping_fee_deduction_platform_voucher | string | 10000 | Phần giảm phí ship từ voucher sàn. |
| shipping_sale_price | string | 10000 | Phí ship người mua trả = shipping_list_price − 2 khoản giảm. |
| tax_amount | string | 10000 | Tổng thuế. |
| net_price_amount | string | 10000 | Giá chưa thuế (thị trường có VAT tách riêng; VN thường 0). |
| line_items | object[] | Cùng các khoản trên cho từng dòng hàng. | |
| id | string | 100000000000000001 | Id dòng (= line_items[].id của đơn). |
| sku_list_price | string | 10000 | |
| subtotal_deduction_seller | string | 10000 | |
| subtotal_deduction_platform | string | 10000 | |
| sku_sale_price | string | 10000 | |
| voucher_deduction_seller | string | 10000 | |
| voucher_deduction_platform | string | 10000 | |
| shipping_list_price | string | 10000 | |
| shipping_sale_price | string | 10000 | |
| sku_gift_original_price | string | 10000 | Giá gốc quà tặng. |
| payment | string | 10000 | Người mua trả cho dòng. |
| total | string | 10000 | |
| currency | string | VND | Mã tiền tệ. |
| subtotal | string | 10000 | Tạm tính. |
| subtotal_tax_amount | string | 10000 | Tạm tính thuế số tiền. |
| shipping_fee_deduction_seller | string | 10000 | Vận chuyển phí khấu trừ người bán. |
| shipping_fee_deduction_platform | string | 10000 | Vận chuyển phí khấu trừ nền tảng. |
| shipping_fee_deduction_platform_voucher | string | 10000 | Vận chuyển phí khấu trừ nền tảng voucher. |
| tax_amount | string | 10000 | Thuế số tiền. |
| tax_rate | string | 10000 | Thuế tỷ lệ. |
| net_price_amount | string | 10000 | Ròng giá số tiền. |
| cod_fee | string | 10000 | Cod phí. Giá trị / trường liên quan: 0.00. |
| cod_fee_amount | string | 10000 | Cod phí số tiền. Giá trị / trường liên quan: 0.00. |
| sku_gift_net_price | string | 10000 | Sku quà tặng ròng giá. |
| distance_shipping_fee | string | 10000 | Khoảng cách vận chuyển phí. |
| distance_fee | string | 10000 | Khoảng cách phí. |
| seller_funded_product_promotions | object[] | Người bán tài trợ sản phẩm khuyến mãi. | |
| activity_id | string | 100000000000000001 | Mã hoạt động. |
| discount_amount | string | 10000 | Giảm giá số tiền. |
| discount_type | string | 10000 | Giảm giá loại. |
| seller_funded_shipping_promotions | object[] | Người bán tài trợ vận chuyển khuyến mãi. | |
| activity_id | string | 100000000000000001 | Mã hoạt động. |
| discount_amount | string | 10000 | Giảm giá số tiền. |
| discount_type | string | 10000 | Giảm giá loại. |
| tax_rate | string | 10000 | Thuế tỷ lệ. |
| cod_fee | string | 10000 | Cod phí. Giá trị / trường liên quan: 0.00. |
| cod_fee_net_amount | string | 10000 | Cod phí ròng số tiền. Giá trị / trường liên quan: 0.00. |
| sku_gift_original_price | string | 10000 | Sku quà tặng gốc giá. |
| sku_gift_net_price | string | 10000 | Sku quà tặng ròng giá. |
| distance_shipping_fee | string | 10000 | Khoảng cách vận chuyển phí. |
| distance_fee | string | 10000 | Khoảng cách phí. |
Mẫu phản hồi
{
"code": 0,
"message": "Success",
"request_id": "DEMO_REQUEST_0001",
"data": {
"currency": "VND",
"total": "10000",
"payment": "10000",
"sku_list_price": "10000",
"subtotal_deduction_seller": "10000",
"subtotal_deduction_platform": "10000",
"sku_sale_price": "10000",
"voucher_deduction_seller": "10000",
"voucher_deduction_platform": "10000",
"subtotal": "10000",
"subtotal_tax_amount": "10000",
"shipping_list_price": "10000",
"shipping_fee_deduction_seller": "10000",
"shipping_fee_deduction_platform": "10000",
"shipping_fee_deduction_platform_voucher": "10000",
"shipping_sale_price": "10000",
"tax_amount": "10000",
"net_price_amount": "10000",
"line_items": [
{
"id": "100000000000000001",
"sku_list_price": "10000",
"subtotal_deduction_seller": "10000",
"subtotal_deduction_platform": "10000",
"sku_sale_price": "10000",
"voucher_deduction_seller": "10000",
"voucher_deduction_platform": "10000",
"shipping_list_price": "10000",
"shipping_sale_price": "10000",
"sku_gift_original_price": "10000",
"payment": "10000",
"total": "10000",
"currency": "VND",
"subtotal": "10000",
"subtotal_tax_amount": "10000",
"shipping_fee_deduction_seller": "10000",
"shipping_fee_deduction_platform": "10000",
"shipping_fee_deduction_platform_voucher": "10000",
"tax_amount": "10000",
"tax_rate": "10000",
"net_price_amount": "10000",
"cod_fee": "10000",
"cod_fee_amount": "10000",
"sku_gift_net_price": "10000",
"distance_shipping_fee": "10000",
"distance_fee": "10000",
"seller_funded_product_promotions": [
{
"activity_id": "100000000000000001",
"discount_amount": "10000",
"discount_type": "10000"
}
],
"seller_funded_shipping_promotions": [
{
"activity_id": "100000000000000001",
"discount_amount": "10000",
"discount_type": "10000"
}
]
}
],
"tax_rate": "10000",
"cod_fee": "10000",
"cod_fee_net_amount": "10000",
"sku_gift_original_price": "10000",
"sku_gift_net_price": "10000",
"distance_shipping_fee": "10000",
"distance_fee": "10000"
}
}
Bắt đầu dùng
- Đăng ký tài khoản Partner
- Mở loại dữ liệu thuộc nhóm Đơn hàng ở trang nền tảng
- Tạo API key (tick kênh TikTok Shop)
- Gọi theo ví dụ ở trên