Get Branch Operating Hour API

Description Calling this endpoint by providing token to get branch operating hour from a company.
Endpoint {DataManagerAPI}/action/GetBranchOperatingHour
Method GET
Headers
  1. AToken: Token value return from API 'GenerateAccessToken' by providing the user name & password
Response - JSON Example
{
    "Status": 200,
    "Error": "",
    "Message": null,
    "Data": {
        "BranchOperatingHour": [
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T01:00:00",
                "Day": 0,
                "IsDayOff": false
            },
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "StartTime": "2022-05-19T01:00:00",
                "EndTime": "2022-05-19T11:00:00",
                "Day": 1,
                "IsDayOff": false
            },
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "StartTime": "2022-05-19T11:00:00",
                "EndTime": "2022-05-19T23:10:00",
                "Day": 1,
                "IsDayOff": false
            },            
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:30:00",
                "Day": 2,
                "IsDayOff": false
            },
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:10:00",
                "Day": 3,
                "IsDayOff": false
            },
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:10:00",
                "Day": 4,
                "IsDayOff": false
            },
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:10:00",
                "Day": 5,
                "IsDayOff": false
            },
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:10:00",
                "Day": 6,
                "IsDayOff": false
            },
            {
                "BranchName": "site2",
                "BranchCode": "1002",
                "BranchId": 530,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:59:00",
                "Day": 0,
                "IsDayOff": false
            },
            {
                "BranchName": "site2",
                "BranchCode": "1002",
                "BranchId": 530,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:59:00",
                "Day": 1,
                "IsDayOff": false
            },
            {
                "BranchName": "site2",
                "BranchCode": "1002",
                "BranchId": 530,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:59:00",
                "Day": 2,
                "IsDayOff": false
            },
            {
                "BranchName": "site2",
                "BranchCode": "1002",
                "BranchId": 530,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:59:00",
                "Day": 3,
                "IsDayOff": false
            },
            {
                "BranchName": "site2",
                "BranchCode": "1002",
                "BranchId": 530,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:59:00",
                "Day": 4,
                "IsDayOff": false
            },
            {
                "BranchName": "site2",
                "BranchCode": "1002",
                "BranchId": 530,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:59:00",
                "Day": 5,
                "IsDayOff": false
            },
            {
                "BranchName": "site2",
                "BranchCode": "1002",
                "BranchId": 530,
                "StartTime": "2022-05-19T00:00:00",
                "EndTime": "2022-05-19T23:59:00",
                "Day": 6,
                "IsDayOff": true
            }
        ],
        "BranchSpecialOperatingHour": [
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "Date": "2022-06-29T00:00:00",
                "StartTime": "2022-06-29T00:00:00",
                "EndTime": "2022-06-29T00:00:00",
                "IsDayOff": true,
                "Comment": "Test special 1"
            },
            {
                "BranchName": "site1",
                "BranchCode": "1001",
                "BranchId": 420,
                "Date": "2022-07-12T00:00:00",
                "StartTime": "2022-07-12T00:00:00",
                "EndTime": "2022-07-12T00:00:00",
                "IsDayOff": true,
                "Comment": "Test special 2"
            }
        ]
    }
}
Response Remarks 'BranchOperatingHour' list and 'BranchSpecialOperatingHour' list in the 'Data' object can be copy and edit then to be use as payload in 'Set Branch Operating Hour API'
Updated on October 29, 2024