> For the complete documentation index, see [llms.txt](https://docs.salework.net/salework-tai-lieu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.salework.net/salework-tai-lieu/he-thong-ho-tro/salework-open-api/get-report-order.md).

# Get Report Order

Lấy báo cáo số lượng đơn hàng theo thời gian và nguồn

#### Request Headers

{% code overflow="wrap" lineNumbers="true" %}

```
client-id: 123456
token: 50000601c30atpedfgu3LVvik87Ixlsvle3mSoB7701ceb156fPunYZ43GBg
```

{% endcode %}

#### Request Body

{% code overflow="wrap" lineNumbers="true" %}

```json
{    
    "method": "getOrderReport",
    "params": {
        "time_start": 1772323200000,
        "time_end": 1773532800000,
        "channel": channel
    }
}
```

{% endcode %}

#### Response Body

{% code lineNumbers="true" %}

```json
{
    "success": true,
    "data": [
        {
            "data_report": [
                {
                    "state": "HỦY",
                    "total": 1
                },
                {
                    "state": "CHỜ HÀNG",
                    "total": 1
                },
                {
                    "state": "MỚI",
                    "total": 3
                }
            ],
            "channel": "Salework"
        },....
    ]
}
```

{% endcode %}

#### Parameters

<table><thead><tr><th width="222">Parameter</th><th width="120">Type</th><th width="98">Required</th><th>Note</th></tr></thead><tbody><tr><td>time_start</td><td>number</td><td>yes</td><td>Thời gian bắt đầu truy vấn, định dạng Unix Timestamp (milliseconds).</td></tr><tr><td>time_end</td><td>number</td><td>yes</td><td>Thời gian kết thúc truy vấn, định dạng Unix Timestamp (milliseconds).</td></tr><tr><td>channel</td><td>string</td><td>no</td><td>Nguồn đơn hàng (<code>Salework, Shopee, Lazada, Tiktok, Shopeebooking, Tiki, STORE</code>)<br></td></tr></tbody></table>
