{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rentalcal-com/json-schema/rentalcal-com-quote-schema.json",
  "title": "Quote",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rentalcal-com-openapi.yml#/components/schemas/Quote",
  "type": "object",
  "required": [
    "checkIn",
    "checkOut",
    "nights",
    "currency",
    "breakdown",
    "payment"
  ],
  "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": ""
    },
    "nights": {
      "type": "integer"
    },
    "guestCount": {
      "type": "integer"
    },
    "infantCount": {
      "type": "integer"
    },
    "petCount": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "minNights": {
      "type": "integer",
      "description": "For this check-in date."
    },
    "breakdown": {
      "type": "object",
      "properties": {
        "nightly": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": ""
              },
              "price": {
                "type": "integer",
                "description": "That night. In the smallest unit of the listing's currency (cents for USD/CAD)."
              }
            }
          }
        },
        "subtotal": {
          "type": "integer",
          "description": "All nights before discounts. In the smallest unit of the listing's currency (cents for USD/CAD)."
        },
        "discount": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "weekly",
                "monthly",
                "promo"
              ]
            },
            "percent": {
              "type": [
                "number",
                "null"
              ]
            },
            "amount": {
              "type": "integer",
              "description": "Taken off the subtotal. In the smallest unit of the listing's currency (cents for USD/CAD)."
            },
            "code": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "fees": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "amount": {
                "type": "integer",
                "description": " In the smallest unit of the listing's currency (cents for USD/CAD)."
              }
            }
          }
        },
        "taxes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "rate": {
                "type": "number",
                "description": "Percent."
              },
              "amount": {
                "type": "integer",
                "description": " In the smallest unit of the listing's currency (cents for USD/CAD)."
              }
            }
          }
        },
        "cleaningFee": {
          "type": "integer",
          "description": " In the smallest unit of the listing's currency (cents for USD/CAD)."
        },
        "damageWaiverFee": {
          "type": "integer",
          "description": "Non-refundable damage protection, when the host charges one. 0 otherwise. In the smallest unit of the listing's currency (cents for USD/CAD)."
        },
        "total": {
          "type": "integer",
          "description": "What the guest pays. Quote this number. In the smallest unit of the listing's currency (cents for USD/CAD)."
        }
      }
    },
    "payment": {
      "type": "object",
      "properties": {
        "required": {
          "type": "boolean",
          "description": "True: the request must be paid through the returned Checkout URL to be held."
        },
        "mode": {
          "type": "string",
          "enum": [
            "none",
            "instant",
            "request_hold"
          ],
          "description": "`instant`: paid and confirmed at once. `request_hold`: the card is authorised and the host approves or declines. `none`: the host replies by email."
        },
        "damageDepositCents": {
          "type": "integer",
          "description": "Refundable deposit the host requires, on top of the total. 0 when none. In the smallest unit of the listing's currency (cents for USD/CAD)."
        },
        "damageDepositHeldAtBooking": {
          "type": "boolean",
          "description": "True: RentalCal holds the deposit on the guest's card through Checkout and releases it after the stay. False: the host arranges it with the guest directly."
        }
      }
    },
    "agreementRequired": {
      "type": "boolean"
    }
  }
}