Authorization: Bearer ********************
{
"DateFrom": "2025-01-01T00:00:00",
"DateTo": "2025-01-31T23:59:59"
}
curl --location --request GET 'https://api.gofive.co.th/v1/customerEvent/filter?customerCode=C000055&eventTypeIds=1' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscriptin-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"DateFrom": "2025-01-01T00:00:00",
"DateTo": "2025-01-31T23:59:59"
}'
สถานะของ Business Code ถ้า
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล
{
"status": {
"code": "1000",
"description": "Success"
},
"data": [
{
"eventId": 2,
"eventName": "Example 1",
"eventDate": "2025-01-29T15:38:43+0700",
"eventType": 1,
"description": "Example description 1",
"customerId": 480258
},
{
"eventId": 9,
"eventName": "Example 2",
"eventDate": "2025-01-29T15:38:43+0700",
"eventType": 1,
"description": "Example description 2",
"customerId": 480258
}
]
}