Skip to main content

Định nghĩa dữ liệu

Các trường dữ liệu thêm dành cho module báo giá

HTTP Request

[GET] /api/v6/quotes/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 khách hàng
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/quotes/custom_fields?fields=field_name,field_description,field_htmltype HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

{
"data": [
{
"id": 109,
"field_name": "b1",
"field_description": "B1",
"field_htmltype": "textinput"
},
{
"id": 110,
"field_name": "b2",
"field_description": "B2",
"field_htmltype": "textinput"
}
],
"has_more": false,
"offset": 0,
"limited": 20,
"sorted": {
"field_order": "ASC"
}
}