{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xavio-in/json-schema/xavio-in-booking-slots-schema.json",
  "title": "BookingSlots",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xavio-in-bookings-api-openapi.yml#/components/schemas/BookingSlots",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "booking_slots"
      ]
    },
    "listing_id": {
      "type": "string",
      "format": "uuid"
    },
    "date": {
      "type": "string",
      "description": "YYYY-MM-DD in the listing's timezone."
    },
    "timezone": {
      "type": "string"
    },
    "slots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "start_iso": {
            "type": "string",
            "format": "date-time",
            "description": "UTC instant."
          },
          "end_iso": {
            "type": "string",
            "format": "date-time",
            "description": "UTC instant."
          },
          "available": {
            "type": "boolean"
          }
        }
      }
    },
    "capped": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "day",
        "week",
        "month",
        null
      ],
      "description": "Which booking cap is already full for this date (then `slots` is empty); null when none is."
    },
    "fee_cents": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Fee for this date after any rate override; null when capped or not resolved."
    }
  }
}