# Danh sách nhà cung cấp

* API này dùng để lấy [danh sách nhà cung cấp](https://nhanh.vn/supplier/manage/index).

## Request

* Xem [common request params](https://apidocs.nhanh.vn/v3/readme#request-params).
* Xem [Postman sample](https://www.postman.com/nhanh-vn/pos-open-nhanh-vn/request/0f3ouhi/business-supplier).

```curl
curl --location 'https://pos.open.nhanh.vn/v3.0/business/supplier?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--header 'Content-Type: application/json'
--data '{
    "filters": {

    }
}'
```

### Filters

| Name | Type | Description     |
| ---- | ---- | --------------- |
| id   | int  | ID nhà cung cấp |

## Response

* Xem cấu trúc chung [tại đây](https://apidocs.nhanh.vn/v3/readme#response).

### Failed response

* Xem các mã lỗi chung [tại đây](https://apidocs.nhanh.vn/v3/readme#failed-response).

### Successful response

```javascript
{
    "code": 1,
    "paginator": {
        "next": "Giá trị để lấy dữ liệu trang tiếp theo"
    },
    "data": [
        {
          "id": "(int) Id nhà cung cấp 1",
          "name": "(string) Tên nhà cung cấp 1",
          "mobile": "(string) Số điện thoại nhà cung cấp 1"
        },
        {
          "id": "(int) Id nhà cung cấp 2",
          "name": "(string) Tên nhà cung cấp 2",
          "mobile": "(string) Số điện thoại nhà cung cấp 2"
        }
    ]
}
```
