- Authentication API
- Employee
- Get EmployeeGET
- Update EmployeePUT
- Get List EmployeesGET
- Get Employees List GET
- Get Mastertypes ListGET
- Get Name PrefixesGET
- Get Document TypesGET
- Update EmployeePOST
- Add Employee AttachmentPOST
- Update Employee AddressPOST
- Update Employee FamilyPOST
- Update Employee InformationPOST
- Update Employee ShiftsPOST
- Update Employee ContactPOST
- Update Employee EducationPOST
- Update Employee ExperiencePOST
- Update Employee CustomFieldPOST
- Delete EmployeePOST
- Get Employee ShiftsGET
- Get Employee RoleGET
- Get Employee Movement ListsGET
- Leave
- Master
- Payroll
- Attendance
- Welfare
- Time
- AppMan
- Asset
- Recruitment
Get Holiday
Testing
GET
https://api.gofive.co.th/empeo/api/v1/masters/calendars
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
calendarName
string
optional
Example:
วันหยุด
year
integer
optional
Example:
2024
Header Params
Ocp-Apim-Subscription-Key
string
optional
Example:
WPe123a9RKbcfLQNSztr45
Authorization
string
optional
Example:
bearer {your token}
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/empeo/api/v1/masters/calendars?calendarName=วันหยุด&year=2024' \
--header 'Ocp-Apim-Subscription-Key: WPe123a9RKbcfLQNSztr45' \
--header 'Authorization: bearer {your token}'
Responses
🟢200OK
application/json
Body
object {0}
Example
{
"statusCode": 200,
"message": "OK",
"data": [
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-12-31",
"holidayName": "วันสิ้นปี"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-12-31",
"holidayName": "วันสิ้นปี"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-01-01",
"holidayName": "วันขึ้นปีใหม่"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-01-03",
"holidayName": "วันขึ้นปีใหม่ (พิเศษ)"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-02-08",
"holidayName": "วันมาฆบูชา"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-04-06",
"holidayName": "วันจักรี"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-05-01",
"holidayName": "วันแรงงานแห่งชาติ"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-05-04",
"holidayName": "วันฉัตรมงคล"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-05-06",
"holidayName": "วันวิสาขบูชา"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-10-23",
"holidayName": "วันปิยมหาราช"
}
]
},
{
"calendarName": "วันหยุด",
"year": 2024,
"dayOff": [
{
"date": "2024-12-31",
"holidayName": "วันสิ้นปี"
}
]
}
🟠401User authentication required V2.
Modified at 2024-07-19 12:14:48