List Holidays
GET https://{{axpAPIDomain}}/api/business-hours/v1/accounts/:accountId/timetables/:timetableId/holidays?pageSize=5&pageNumber=1
Gets the list of Holidays for a Timetable.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
pageSize | number | The maximum number of results per page. | |
pageNumber | number | The target page of results. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
appkey | string | ||
Accept | string |
RESPONSES
status: OK
{"pagination":{"pageNumber":2,"pageSize":10,"total":12},"holidays":[{"holidayId":"72f456b0-2b50-11ec-8d3d-0242ac130003","name":"Christmas Holidays","description":"Christmas holidays","dates":["2021-12-24","2021-12-25","2021-12-26"]},{"holidayId":"fef7047e-2b72-11ec-8d3d-0242ac130003","name":"Saint Patrick's Day","description":"Saint Patrick's Day","dates":["2022-03-17","2022-03-17","2023-03-17"]}],"links":{"prev":"/api/business-hours/v1/accounts/JDBUTC/timetables/8c872648-2b50-11ec-8d3d-0242ac130003/holidays?pageNumber=2\u0026pageSize=10","next":""}}