Người bán hàng xuất sắc
Danh sách nhân viên với các thông tin liên quan đến doanh số bán hàng
HTTP Request
[GET] /api/v6.1/sale_order/best_sellers
Query Parameters
| Parameter | Type | Require | Description |
|---|---|---|---|
| start_date | string | yes | Lọc theo ngày bắt đầu (Y-m-d) |
| end_date | string | yes | Lọc theo ngày kết thúc (Y-m-d) |
Sort
| Sort (field) | Direction |
|---|---|
| total_real_amount | asc,desc |
| total_origin_statistic | asc,desc |
| total_f_amount | asc,desc |
| total_divided_revenue | asc,desc |
Example
HTTP Request
GET api/v6.1/sale_order/best_sellers?start_date=2024-12-01&end_date=2024-12-10 HTTP/1.1
Host: example.getflycrm.com
Status
200 OK
Response
{
"data": [
{
"id": 1550,
"user_display_name": "Nguyễn Văn A",
"user_avatar": "https://example.getflycrm.com/assets/images/user/default.png",
"user_role_id": 2,
"user_role_name": "Giám đốc",
"user_department": 2,
"user_department_name": "Ban giám đốc",
"total_origin_statistic": 2000000,
"total_real_amount": 2000000,
"total_f_amount": 0,
"total_divided_revenue": 2000000
}
]
}