Skip to main content

Đị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​

FieldsTypeDescription
idintegerĐịnh danh
field_namestringTên trường
field_descriptionstringMô tả trường
field_htmltypestringLoại trường

Filtering​

FieldsSupportTypeDescription
ideq,inintegerĐịnh danh
validis,inintegerHợp lệ hay không

Sort​

Sort (field)Direction
idasc,desc

Limit & Offset​

TypeDescription
LimitintegerLấy bao nhiêu bản ghi
OffsetintegerBỏ 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
}