{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rentalcal-com/json-schema/rentalcal-com-booking-status-schema.json",
  "title": "BookingStatus",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rentalcal-com-openapi.yml#/components/schemas/BookingStatus",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "propertyId": {
      "type": "string"
    },
    "propertyName": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "confirmed",
        "declined",
        "cancelled"
      ],
      "description": "A request with nothing to pay that the host has not answered in 14 days, or whose check-in has passed, is declined automatically."
    },
    "paymentStatus": {
      "type": "string",
      "enum": [
        "not_required",
        "awaiting_payment",
        "hold_placed",
        "paid",
        "refunded",
        "expired",
        "hold_released"
      ]
    },
    "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"
    },
    "total": {
      "type": "integer",
      "description": " In the smallest unit of the listing's currency (cents for USD/CAD)."
    },
    "currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "requestedAt": {
      "type": "integer",
      "description": "Unix milliseconds."
    }
  }
}