- Introduction
- Activity
- Authentication API
- Customer
- Case
- Deal
- Employee
- Expense
- Product
- Create Or Update Products
- Get a Product Ticket
- Get Products With Take & Status
- Get a Product by ProductCode
- Get Product Groups
- Get Product Properties
- Get Products By Filter
- Verify Serial Number
- /v3/Products/serials/status
- Create or Update Codeguard Products
- Update Product Stock
- /v1/products/units
- /v1/products/units Copy
- Quotation
- SalesOrder
- Webhooks
- Task
- Setting
Get Customer Events by Customer Code
GET
https://api.gofive.co.th/v1/customerEvent/filter
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
customerCode
string
required
Example:
C000055
eventTypeIds
integer
optional
Example:
1
Header Params
Content-Type
string
required
Example:
application/json
Ocp-Apim-Subscription-Key
string
required
Example:
<Your Subscriptin-key>
Body Params application/json
dateFrom
string
optional
dateTo
string
optional
Example
{
"DateFrom": "2025-01-01T00:00:00",
"DateTo": "2025-01-31T23:59:59"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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"
}'
Responses
🟢200Success
application/json
Body
status
object
required
code
string
required
สถานะของ Business Code ถ้า
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล
description
string
required
data
object
required
eventId
integer
required
eventName
string
required
eventDate
string
required
eventType
integer
required
description
string
required
Example
{
"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
}
]
}
🟠400Bad Request
🟠401Unauthorized
🟠401User authentication required V2.