Get all present and future special opening hours of a business
GET/api/v2/businesses/:business_id/special-opening-hours
Retrieve all present and future special opening of a specific business
Request
Path Parameters
Query Parameters
Possible values: >= 1
Default value: 1
Page of items to fetch
Possible values: >= 1
Number of items per page.
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
- Array [ 
- ] 
Possible values: >= 1
Default value: 1
Current page
Possible values: >= 1
Default value: 1
Max page based on current per_page value and count
Default value: 0
Number of items per page.
items
object[]
required
Unique ID of the special opening hour
start date of the special opening hour
end date of the special opening hour
{
  "page": 1,
  "max_page": 1,
  "count": 0,
  "items": [
    {
      "id": "d1957f98-3832-4099-b121-88646c367c46",
      "start_date": "2021-09-01",
      "end_date": "2021-09-01",
      "schedule": [
        "08:00-12:00"
      ]
    }
  ]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [ 
- ] 
HTTP status code
Error message
Possible values: [query, body, response, param]
Where in the request the error occurred
errors
object[]
required
Possible values: non-empty
Path to the property with the error
constraints
object
required
Error message
{
  "statusCode": 404,
  "message": "Cannot find item",
  "location": "query",
  "errors": [
    {
      "path": "business.id",
      "constraints": {
        "object_required_property": "Required property"
      }
    }
  ]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
  "statusCode": 404,
  "message": "Cannot find item",
  "error": "Not Found"
}