# Get Holiday

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/masters/calendars:
    get:
      summary: Get Holiday
      deprecated: false
      description: Get calendar day off By calendar name and year.
      tags:
        - empeo/Master
      parameters:
        - name: calendarName
          in: query
          description: ''
          required: false
          example: วันหยุด
          schema:
            type: string
        - name: year
          in: query
          description: ''
          required: false
          example: 2024
          schema:
            type: integer
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: Api subscription key get from the OpenAPI integration setting page
          required: false
          example: WPe123a9RKbcfLQNSztr45
          schema:
            type: string
        - name: Authorization
          in: header
          description: Authorization credential utilized in API requests
          required: false
          example: bearer {your token}
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
              example: "{\r\n    \"statusCode\": 200,\r\n    \"message\": \"OK\",\r\n    \"data\": [\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-12-31\",\r\n                    \"holidayName\": \"วันสิ้นปี\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-12-31\",\r\n                    \"holidayName\": \"วันสิ้นปี\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-01-01\",\r\n                    \"holidayName\": \"วันขึ้นปีใหม่\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-01-03\",\r\n                    \"holidayName\": \"วันขึ้นปีใหม่ (พิเศษ)\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-02-08\",\r\n                    \"holidayName\": \"วันมาฆบูชา\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-04-06\",\r\n                    \"holidayName\": \"วันจักรี\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-05-01\",\r\n                    \"holidayName\": \"วันแรงงานแห่งชาติ\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-05-04\",\r\n                    \"holidayName\": \"วันฉัตรมงคล\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-05-06\",\r\n                    \"holidayName\": \"วันวิสาขบูชา\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-10-23\",\r\n                    \"holidayName\": \"วันปิยมหาราช\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"calendarName\": \"วันหยุด\",\r\n            \"year\": 2024,\r\n            \"dayOff\": [\r\n                {\r\n                    \"date\": \"2024-12-31\",\r\n                    \"holidayName\": \"วันสิ้นปี\"\r\n                }\r\n            ]\r\n        }"
          headers: {}
          x-apidog-name: OK
      security:
        - bearer: []
      x-apidog-folder: empeo/Master
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-7956096-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
