> 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-supplier-orders.md).

# Get Supplier Orders

POST : https\://salework.net/api/open/stock/v2

Lấy số lượng đơn đặt hàng

#### Request Headers

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

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

{% endcode %}

#### Request Body

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

```json
{    
    "method": "getSupplierOrders",
    "params": {
        "time_start": 1772323200000,
        "time_end": 1773532800000,
        "state": state,
        "page": 1,
        "limit": 25
    }
}
```

{% endcode %}

#### Response Body

{% code lineNumbers="true" %}

```json
{
    "success": true,
    "data": {
        "orders": [
            ...
        ],
    }
}
```

{% endcode %}

#### Parameters

<table><thead><tr><th width="187">Parameter</th><th width="120">Type</th><th width="110">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><pre><code>state
</code></pre></td><td>string</td><td>yes</td><td><p>Trạng thái đơn đặt hàng cần lấy:</p><pre><code>ĐÃ ĐẶT HÀNG,
NHẬN MỘT PHẦN,
KHÓA,
HOÀN THÀNH

</code></pre></td></tr><tr><td>  page</td><td>number</td><td>yes</td><td>Trang muốn đến</td></tr><tr><td>  limit</td><td>number</td><td>yes</td><td>Số đơn đặt hàng muốn lấy</td></tr></tbody></table>
