Skip to main content

Trao đổi hợp đồng mua

Lấy danh sách trao đổi (bình luận) của một hợp đồng mua.

GET/api/v6.1/purchase_contract/{id}/comments

Tham số đường dẫn​

Tham sốKiểuBắt buộcMô tả
idintegerCóĐịnh danh hợp đồng mua

Tham số truy vấn​

Trường lấy về (fields)​

TrườngKiểuMô tả
idintegerĐịnh danh
comment_titlestringTiêu đề comment
contentstringNội dung comment
creatorintegerĐịnh danh người tạo
creator_display_namestringTên người tạo
created_atstringNgày trao đổi định dạng (Y-m-d H:i:s)

Lọc (filtering)​

TrườngToán tửKiểuMô tả
ideqintegerĐịnh danh bình luận

Sắp xếp (sort)​

TrườngChiều
idasc,desc

Phân trang​

Tham sốKiểuBắt buộcMô tả
limitintegerLấy bao nhiêu bản ghi
offsetintegerBỏ qua bao nhiêu bản ghi

Ví dụ request​

curl --location 'https://example.getflycrm.com/api/v6.1/purchase_contract/1/comments?fields=content&limit=1&offset=1' \
--header 'X-API-KEY: <your_api_key>'

Kết quả trả về​

200 OK

{
"data": [
{
"id": 4,
"content": "TEST COMMENT API"
}
],
"has_more": false,
"offset": 0,
"limited": 1
}