List Intervals
GET https://{{axpAPIDomain}}/api/business-hours/v1/accounts/:accountId/timetables/:timetableId/intervals?pageSize=5&pageNumber=1&intervalType=DAYS
Gets the list of Intervals 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. | |
intervalType | string | The type of interval |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
appkey | string | ||
Accept | string |
RESPONSES
status: OK
{"pagination":{"pageNumber":2,"pageSize":10,"total":11},"intervals":[{"intervalId":"b2fb1032-2b50-11ec-8d3d-0242ac130003","name":"New Year's support","description":"Reduced opening hours during the New Year holidays.","timeFrom":"10:00:00","timeTo":"15:00:00","type":"DATES","appliesTo":["2021-01-03","2021-01-04","2021-01-05","2021-01-06"]}],"links":{"prev":"/api/business-hours/v1/accounts/JDBUTC/timetables/8c872648-2b50-11ec-8d3d-0242ac130003/intervals?pageNumber=2\u0026pageSize=10","next":""}}