Authorization: Bearer ********************{
"dateRange": "all", //(optional) ช่วงเวลา: all | today | 7d | 30d | 90d (default all)
"from": null, //(optional) วันที่เริ่ม
"to": null, //(optional) วันที่สิ้นสุด
"tab": "all", //(optional) แท็บ: all | new | progress | closed (default all)
"categoryIds": [1,2], //(optional) กรองรหัสหมวดหมู่ (จาก GET v2/cases/categories)
"owners": ["ownerCode"], //(optional) กรองเจ้าของ, รองรับ "_none" = ไม่มีเจ้าของ
"stageIds": [1,2], //(optional) กรองรหัสขั้นตอน (จาก GET v2/cases/stages)
"sources": [], //(optional) กรองแหล่งที่มา = token: email | chat | web-form | manual
"tags": ["tag1","tag2"], //(optional) กรองแท็ก
"search": null, //(optional) keyword ค้นหา
"skip": 0, //(optional) จำนวนที่ข้าม (default 0)
"take": 20, //(optional) จำนวนต่อหน้า (default 20)
"stageId": 1, //(optional) กรอง stage (จาก GET v2/cases/stages)
"sortField": "title", //(optional) ฟิลด์เรียง: caseNo | title | category | stage | sla
"sortOrder": "desc" //(optional) ทิศทาง: asc | desc (default desc)
}curl --location 'https://api.gofive.co.th/v2/cases/enquiry' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscription-Key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"dateRange": "all", //(optional) ช่วงเวลา: all | today | 7d | 30d | 90d (default all)
"from": null, //(optional) วันที่เริ่ม
"to": null, //(optional) วันที่สิ้นสุด
"tab": "all", //(optional) แท็บ: all | new | progress | closed (default all)
"categoryIds": [1,2], //(optional) กรองรหัสหมวดหมู่ (จาก GET v2/cases/categories)
"owners": ["ownerCode"], //(optional) กรองเจ้าของ, รองรับ "_none" = ไม่มีเจ้าของ
"stageIds": [1,2], //(optional) กรองรหัสขั้นตอน (จาก GET v2/cases/stages)
"sources": [], //(optional) กรองแหล่งที่มา = token: email | chat | web-form | manual
"tags": ["tag1","tag2"], //(optional) กรองแท็ก
"search": null, //(optional) keyword ค้นหา
"skip": 0, //(optional) จำนวนที่ข้าม (default 0)
"take": 20, //(optional) จำนวนต่อหน้า (default 20)
"stageId": 1, //(optional) กรอง stage (จาก GET v2/cases/stages)
"sortField": "title", //(optional) ฟิลด์เรียง: caseNo | title | category | stage | sla
"sortOrder": "desc" //(optional) ทิศทาง: asc | desc (default desc)
}'{}