Operating Hours & Holidays
  • 16 Jun 2022
  • 2 Minutes to read
  • Dark
    Light

Operating Hours & Holidays

  • Dark
    Light

Article summary

Operating Hours & Holidays

Working day and hour.

Operating Hours & Holidays JSON Format

Operating Hours & Holidays is represented as simple flat JSON objects with the following keys:

NameTypeDescription
ifWorkOnSundayboolWhether working on sunday or not.
ifWorkOnMondayboolWhether working on monday or not.
ifWorkOnTuesdayboolWhether working on tuesday or not.
ifWorkOnWednesdayboolWhether working on wednesday or not.
ifWorkOnThursdayboolWhether working on thursday or not.
ifWorkOnFridayboolWhether working on friday or not.
ifWorkOnSaturdayboolWhether working on saturday or not.
sundayStartTimetimeConfig start time.
sundayEndTimetimeConfig end time.
mondayStartTimetimeConfig start time.
mondayEndTimetimeConfig end time.
tuesdayStartTimetimeConfig start time.
tuesdayEndTimetimeConfig end time.
wednesdayStartTimetimeConfig start time.
wednesdayEndTimetimeConfig end time.
thursdayStartTimetimeConfig start time.
thursdayEndTimetimeConfig end time.
fridayStartTimetimeConfig start time.
fridayEndTimetimeConfig end time.
saturdayStartTimetimeConfig start time.
saturdayEndTimetimeConfig end time.

Get a single Operating Hours & Holidays

GET ticketing/workingHoursConfig

  • Parameters:

No Parameters

  • Response:

Operating Hours & Holidays

  • Example

Sample Request:

curl https://api11.comm100.io/v4/ticketing/workingHoursConfig \ 
    -X 'GET' \ 
    -H 'Authorization: Bearer {access_token}' \ 

Response:

HTTP/1.1 200 OK

{
  "ifWorkOnSunday": false,
  "ifWorkOnMonday": true,
  "ifWorkOnTuesday": true,
  "ifWorkOnWednesday": true,
  "ifWorkOnThursday": true,
  "ifWorkOnFriday": true,
  "ifWorkOnSaturday": false,
  "sundayStartTime": "09:00:00",
  "sundayEndTime": "17:00:00",
  "mondayStartTime": "09:00:00",
  "mondayEndTime": "17:00:00",
  "tuesdayStartTime": "09:00:00",
  "tuesdayEndTime": "17:00:00",
  "wednesdayStartTime": "09:00:00",
  "wednesdayEndTime": "17:00:00",
  "thursdayStartTime": "09:00:00",
  "thursdayEndTime": "17:00:00",
  "fridayStartTime": "09:00:00",
  "fridayEndTime": "17:00:00",
  "saturdayStartTime": "09:00:00",
  "saturdayEndTime": "17:00:00"
} 

Update the Operating Hours & Holidays

PUT ticketing/workingHoursConfig

  • Parameters:

NameTypeinRequiredDescription
ifWorkOnSundayboolbodynoWhether working on sunday or not.
ifWorkOnMondayboolbodynoWhether working on monday or not.
ifWorkOnTuesdayboolbodynoWhether working on tuesday or not.
ifWorkOnWednesdayboolbodynoWhether working on wednesday or not.
ifWorkOnThursdayboolbodynoWhether working on thursday or not.
ifWorkOnFridayboolbodynoWhether working on friday or not.
ifWorkOnSaturdayboolbodynoWhether working on saturday or not.
sundayStartTimetimebodynoConfig start time.
sundayEndTimetimebodynoConfig end time.
mondayStartTimetimebodynoConfig start time.
mondayEndTimetimebodynoConfig end time.
tuesdayStartTimetimebodynoConfig start time.
tuesdayEndTimetimebodynoConfig end time.
wednesdayStartTimetimebodynoConfig start time.
wednesdayEndTimetimebodynoConfig end time.
thursdayStartTimetimebodynoConfig start time.
thursdayEndTimetimebodynoConfig end time.
fridayStartTimetimebodynoConfig start time.
fridayEndTimetimebodynoConfig end time.
saturdayStartTimetimebodynoConfig start time.
saturdayEndTimetimebodynoConfig end time.
  • Response:

Operating Hours & Holidays

  • Example

Sample Request:

curl https://api11.comm100.io/v4/ticketing/workingHoursConfig \ 
    -X 'PUT' \ 
    -H 'Authorization: Bearer {access_token}' \ 
    -H 'Content-Type: application/json' \ 
    -D '{"ifWorkOnSunday":false,"ifWorkOnMonday":true,"ifWorkOnTuesday":true,"ifWorkOnWednesday":true,"ifWorkOnThursday":true,"ifWorkOnFriday":true,"ifWorkOnSaturday":false,"sundayStartTime":"09:00:00","sundayEndTime":"17:00:00","mondayStartTime":"09:00:00","mondayEndTime":"17:00:00","tuesdayStartTime":"09:00:00","tuesdayEndTime":"17:00:00","wednesdayStartTime":"09:00:00","wednesdayEndTime":"17:00:00","thursdayStartTime":"09:00:00","thursdayEndTime":"17:00:00","fridayStartTime":"09:00:00","fridayEndTime":"17:00:00","saturdayStartTime":"09:00:00","saturdayEndTime":"17:00:00"}' 

Response:

HTTP/1.1 200 OK

{
  "ifWorkOnSunday": false,
  "ifWorkOnMonday": true,
  "ifWorkOnTuesday": true,
  "ifWorkOnWednesday": true,
  "ifWorkOnThursday": true,
  "ifWorkOnFriday": true,
  "ifWorkOnSaturday": false,
  "sundayStartTime": "09:00:00",
  "sundayEndTime": "17:00:00",
  "mondayStartTime": "09:00:00",
  "mondayEndTime": "17:00:00",
  "tuesdayStartTime": "09:00:00",
  "tuesdayEndTime": "17:00:00",
  "wednesdayStartTime": "09:00:00",
  "wednesdayEndTime": "17:00:00",
  "thursdayStartTime": "09:00:00",
  "thursdayEndTime": "17:00:00",
  "fridayStartTime": "09:00:00",
  "fridayEndTime": "17:00:00",
  "saturdayStartTime": "09:00:00",
  "saturdayEndTime": "17:00:00"
} 

Was this article helpful?

What's Next