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

[v2] Get Branch Special Operating Hour API

Description Calling this endpoint by providing token to get branch special operating hour using branchId. 
Endpoint {DataManagerAPI}/api/v2/Site/[BranchId]/GetSpecialOperatingHours
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": [
        {
            "Date": "2019-10-01T00:00:00",
            "StartTime": "2020-10-31T01:00:00",
            "EndTime": "2020-10-31T01:30:00",
            "IsDayOff": false,
            "IsRecurrence": false,
            "RecurrenceType": 0,
            "Comment": "testing1"
        },
        {
            "Date": "2019-10-02T00:00:00",
            "StartTime": "2020-10-31T01:00:00",
            "EndTime": "2020-10-31T01:30:00",
            "IsDayOff": false,
            "IsRecurrence": false,
            "RecurrenceType": 0,
            "Comment": "testing2"
        },
        {
            "Date": "2019-10-03T00:00:00",
            "StartTime": "2020-10-31T01:00:00",
            "EndTime": "2020-10-31T01:30:00",
            "IsDayOff": false,
            "IsRecurrence": false,
            "RecurrenceType": 0,
            "Comment": "testing3"
        }]
}
Response Remarks 'Data' object can be copy and edit then to be use as payload in API 'SetSpecialOperatingHours'
Updated on October 29, 2024