Description | Calling this endpoint by providing token to get branch operating hour using branchId. |
Endpoint | {DataManagerAPI}/api/v2/Site/[BranchId]/GetOperatingHours |
Method | GET |
Endpoint Description |
|
Headers |
|
Response - JSON Example |
{
"Status": 200,
"Error": "",
"Message": null,
"Data": [
{
"StartTime": "2022-06-10T10:00:00",
"EndTime": "2022-06-10T04:00:00",
"Day": 1,
"IsDayOff": false
},
{
"StartTime": "2022-06-10T04:00:00",
"EndTime": "2022-06-10T23:59:00",
"Day": 2,
"IsDayOff": false
},
{
"StartTime": "2022-06-10T01:30:00",
"EndTime": "2022-06-10T23:59:00",
"Day": 3,
"IsDayOff": false
},
{
"StartTime": "2022-06-10T00:00:00",
"EndTime": "2022-06-10T23:59:00",
"Day": 4,
"IsDayOff": false
},
{
"StartTime": "2022-06-10T00:00:00",
"EndTime": "2022-06-10T23:59:00",
"Day": 5,
"IsDayOff": false
},
{
"StartTime": "2022-06-10T00:00:00",
"EndTime": "2022-06-10T23:59:00",
"Day": 6,
"IsDayOff": false
},
{
"StartTime": "2022-06-10T00:00:00",
"EndTime": "2022-06-10T23:59:00",
"Day": 0,
"IsDayOff": false
}
],
"ErrorCode": 0
}
|
Response Remarks | 'Data' object can be copy and edit then to be use as payload in API 'SetBranchOperatingHours' |