1. Home
  2. User Guides
  3. RESTful API Documentation
  4. [v2] Get Branch Operating Hour API

[v2] Get Branch Operating Hour API

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
  1. 'BranchId' is unique key for identifying branch, do not simply modify this value
  2. 'BranchId' can be retrieve / refer from 'Sites API'
Headers
  1. AToken: Token value return from API 'GenerateAccessToken' by providing the user name & password
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'
Updated on October 29, 2024