Sites

Create an opening hours override for a ShopSite

Use this endpoint to create an exception for the ShopSites' standard opening hours.

post/shop/sites/{siteId}/opening-hours-overrides

Request body

date_fromstring date required

The start of the rule period.

date_tostring date required

The end of the rule period.

is_availableboolean

Whether the resource is available during this period. Any false rules will override true rules.

time_fromstring

The daily start time of the time period, in 24 hour format.

time_tostring

The daily end time of the time period, in 24 hour format.

Example request

{
  "date_from": "2021-02-15",
  "date_to": "2021-02-15",
  "time_from": "11:00",
  "time_to": "17:00"
}

Response

An opening hours override was successfully created.

Example response

{
  "data": {
    "date_from": "2021-02-15",
    "date_to": "2021-02-15",
    "time_from": "11:00",
    "time_to": "17:00"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.