Get Holiday
TestingGET
/empeo/api/v1/masters/calendarsGet calendar day off By calendar name and year.
Request
Query Params
calendarName
string
optional
Example:
วันหยุด
year
integer
optional
Example:
2024
Header Params
Ocp-Apim-Subscription-Key
string
optional
Api subscription key get from the OpenAPI integration setting page
Example:
WPe123a9RKbcfLQNSztr45
Authorization
string
optional
Authorization credential utilized in API requests
Example:
bearer {your token}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
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": "วันสิ้นปี"
}
]
}
Last modified: 4 months ago