{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rentalcal-com/json-schema/rentalcal-com-booking-request-schema.json",
  "title": "BookingRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rentalcal-com-openapi.yml#/components/schemas/BookingRequest",
  "type": "object",
  "required": [
    "id",
    "status",
    "paymentStatus",
    "checkIn",
    "checkOut",
    "total",
    "currency"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending"
      ]
    },
    "paymentStatus": {
      "type": "string",
      "enum": [
        "not_required",
        "awaiting_payment"
      ]
    },
    "paymentMode": {
      "type": "string",
      "enum": [
        "none",
        "instant",
        "request_hold"
      ]
    },
    "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": ""
    },
    "nights": {
      "type": "integer"
    },
    "total": {
      "type": "integer",
      "description": "The amount due, or the estimate the host will confirm. In the smallest unit of the listing's currency (cents for USD/CAD)."
    },
    "currency": {
      "type": "string"
    },
    "checkout": {
      "type": [
        "object",
        "null"
      ],
      "description": "Present when payment is required. Send the guest here.",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "expiresAt": {
          "type": "integer",
          "description": "Unix milliseconds."
        }
      }
    },
    "next": {
      "type": "string",
      "description": "What happens now, in words for the guest."
    }
  }
}