Định nghĩa dữ liệu
Các trường dữ liệu thêm dành cho module sản phẩm
HTTP Request
[GET] /api/v6.1/product/custom_fields
Query Parameters
Fields
| Fields | Type | Description |
|---|---|---|
| id | integer | Định danh |
| field_name | string | Tên trường |
| field_description | string | Mô tả trường |
| field_htmltype | string | Loại trường |
Filtering
| Fields | Support | Type | Description |
|---|---|---|---|
| id | eq,in | integer | Định danh |
| valid | is,in | integer | 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.1/product/custom_fields?fields=field_name,field_description,field_htmltype HTTP/1.1
Host: example.getflycrm.com
Status
200 OK
Response
{
"data": [
{
"id": 1,
"field_name": "ngay_nhap",
"field_description": "Ngày nhập",
"field_htmltype": "date"
}
],
"has_more": false,
"offset": 0,
"limited": 20
}