Chuyển tới nội dung chính

Định nghĩa dữ liệu

Các trường dữ liệu thêm dành cho module đơn hàng mua

HTTP Request

[GET] /api/v6.1/purchase_order/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/purchase_order/custom_fields HTTP/1.1
Host: example.getflycrm.com

Status

200 OK

Response

{
"data": [
{
"id": 1,
"field_name": "ma_hop_dong",
"field_description": "Mã hợp đồng",
"field_htmltype": "textinput"
}
],
"has_more": false,
"offset": 0,
"limited": 20
}