Get Report Order
POST : https://salework.net/api/open/stock/v2
Lấy báo cáo số lượng đơn hàng theo thời gian và nguồn
Request Headers
client-id: 123456
token: 50000601c30atpedfgu3LVvik87Ixlsvle3mSoB7701ceb156fPunYZ43GBgRequest Body
{
"method": "getOrderReport",
"params": {
"time_start": 1772323200000,
"time_end": 1773532800000,
"channel": channel
}
}Response Body
{
"success": true,
"data": [
{
"data_report": [
{
"state": "HỦY",
"total": 1
},
{
"state": "CHỜ HÀNG",
"total": 1
},
{
"state": "MỚI",
"total": 3
}
],
"channel": "Salework"
},....
]
}Parameters
Parameter
Type
Required
Note
time_start
number
yes
Thời gian bắt đầu truy vấn, định dạng Unix Timestamp (milliseconds).
time_end
number
yes
Thời gian kết thúc truy vấn, định dạng Unix Timestamp (milliseconds).
channel
string
no
Nguồn đơn hàng (Salework, Shopee, Lazada, Tiktok, Shopeebooking, Tiki, STORE)
Last updated