SpotOn · JSON Structure

Reserve Availability Response Structure

The set of available reservation time slots for a date and party size.

Type: object Properties: 4
RestaurantPoint of SalePaymentsOnline OrderingReservationsReporting

AvailabilityResponse is a JSON Structure definition published by SpotOn, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

restaurantId date partySize slots

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/spoton/refs/heads/main/json-structure/reserve-availability-response-structure.json",
  "name": "AvailabilityResponse",
  "description": "The set of available reservation time slots for a date and party size.",
  "type": "object",
  "properties": {
    "restaurantId": {
      "type": "int32",
      "description": "The restaurant the availability applies to."
    },
    "date": {
      "type": "date",
      "description": "The date the availability applies to."
    },
    "partySize": {
      "type": "int32",
      "description": "The party size the availability applies to."
    },
    "slots": {
      "type": "array",
      "description": "The available time slots.",
      "items": {
        "type": "object",
        "description": "An available reservation time slot.",
        "properties": {
          "time": {
            "type": "datetime",
            "description": "The available reservation date and time, in RFC 3339 format."
          },
          "available": {
            "type": "boolean",
            "description": "Whether the slot is available for booking."
          }
        }
      }
    }
  }
}