{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rentalcal-com/json-schema/rentalcal-com-booking-request-input-schema.json",
  "title": "BookingRequestInput",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rentalcal-com-openapi.yml#/components/schemas/BookingRequestInput",
  "type": "object",
  "required": [
    "checkIn",
    "checkOut",
    "guestName",
    "guestEmail",
    "guestCount"
  ],
  "properties": {
    "checkIn": {
      "type": "string",
      "format": "date",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": ""
    },
    "checkOut": {
      "type": "string",
      "format": "date",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": ""
    },
    "guestName": {
      "type": "string",
      "maxLength": 200
    },
    "guestEmail": {
      "type": "string",
      "format": "email"
    },
    "guestPhone": {
      "type": "string",
      "maxLength": 40
    },
    "guestCount": {
      "type": "integer",
      "minimum": 1
    },
    "infantCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5,
      "description": "Free infants on top of `guestCount`, where the listing returns `infants`."
    },
    "petCount": {
      "type": "integer",
      "minimum": 0
    },
    "message": {
      "type": "string",
      "maxLength": 2000,
      "description": "A note to the host, in the guest's words."
    },
    "promoCode": {
      "type": "string"
    },
    "agreementAccepted": {
      "type": "boolean"
    },
    "agreementVersion": {
      "type": "integer"
    },
    "listOptIn": {
      "type": "boolean",
      "description": "Only when the guest explicitly agreed to hear from the host about offers."
    },
    "source": {
      "type": "string",
      "enum": [
        "mcp"
      ],
      "description": "Where the guest came from, when a RentalCal surface sent them: the `rc_source` value on a booking link. Anything else is ignored."
    },
    "returnUrl": {
      "type": "string",
      "format": "uri",
      "description": "https page to return the guest to after Stripe Checkout. Optional."
    }
  }
}