Đơn vị tính
Lấy danh sách các đơn vị tính liên quan đến sản phẩm
HTTP Request
[GET] /api/v6/products/units
Fields
| Fields | Type | Description |
|---|---|---|
| id | integer | Định danh |
| unit_name | string | Tên đơn vị |
Filtering
| Fields | Support | Type | Description |
|---|---|---|---|
| id | eq | integer | Định danh |
| valid | is,in | bool | Hợp lệ hay không |
Sort
| Sort (field) | Direction |
|---|---|
| id | asc,desc |
Limit & Offset
| Type | Description | |
|---|---|---|
| Limit | integer | Lấy bao nhiêu bản ghi |
| Offset | integer | Bỏ qua bao nhiêu bản ghi |
Example
HTTP Request
GET api/v6/products/units?fields=unit_name&limit=1&offset=0&filtering[id]=1 HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json
Status
200 OK
Response
[
{
"unit_id": 1,
"unit_name": "Chiếc"
}
]