{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stayportland-com/json-schema/stayportland-com-priced-availability-response-schema.json",
  "title": "PricedAvailabilityResponse",
  "description": "Only properties with confirmed temporary quotes are returned. unpricedCount records candidates omitted when a current quote could not be confirmed; nextOffset continues through inventory.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stayportland-com-openapi.json#/components/schemas/PricedAvailabilityResponse",
  "type": "object",
  "properties": {
    "properties": {
      "maxItems": 6,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "property": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "sleeps": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "bedrooms": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "bathrooms": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "beds": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "propertyType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "neighborhood": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "petsAllowed": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "rating": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "reviewCount": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "fromNightly": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "stayTotal": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "priceBasis": {
                "type": "string",
                "enum": [
                  "from-nightly-accommodation",
                  "dated-stay-accommodation-pre-tax"
                ]
              },
              "currency": {
                "type": "string",
                "const": "USD"
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "photos": {
                "maxItems": 6,
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "availableCheckin": {
                "type": "string"
              },
              "availableCheckout": {
                "type": "string"
              },
              "matchScore": {
                "type": "number"
              },
              "matchReasons": {
                "maxItems": 6,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "amenity",
                        "persona",
                        "query"
                      ]
                    },
                    "label": {
                      "type": "string"
                    },
                    "evidence": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "label",
                    "evidence"
                  ],
                  "additionalProperties": false
                }
              },
              "bookUrl": {
                "type": "string"
              },
              "markdownUrl": {
                "type": "string"
              }
            },
            "required": [
              "slug",
              "title",
              "sleeps",
              "bedrooms",
              "bathrooms",
              "neighborhood",
              "petsAllowed",
              "fromNightly",
              "stayTotal",
              "currency",
              "image",
              "bookUrl",
              "markdownUrl"
            ],
            "additionalProperties": false
          },
          "quote": {
            "type": "object",
            "properties": {
              "quoteId": {
                "type": "string"
              },
              "listingTitle": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "checkin": {
                "type": "string"
              },
              "checkout": {
                "type": "string"
              },
              "guests": {
                "type": "number"
              },
              "nights": {
                "type": "number"
              },
              "accommodation": {
                "type": "number"
              },
              "cleaning": {
                "type": "number"
              },
              "taxes": {
                "type": "number"
              },
              "total": {
                "type": "number"
              },
              "totalCents": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "inventoryHeld": {
                "type": "boolean",
                "const": false
              },
              "priceIncludes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "priceExcludes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "petCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10
              },
              "currency": {
                "type": "string",
                "const": "USD"
              },
              "checkoutUrl": {
                "type": "string"
              },
              "expiresAt": {
                "type": "string"
              },
              "expiresNote": {
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "quoteId",
              "listingTitle",
              "checkin",
              "checkout",
              "guests",
              "nights",
              "accommodation",
              "cleaning",
              "taxes",
              "total",
              "totalCents",
              "currency",
              "checkoutUrl",
              "expiresNote",
              "note"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "property",
          "quote"
        ],
        "additionalProperties": false
      }
    },
    "count": {
      "type": "number"
    },
    "availableCount": {
      "type": "number"
    },
    "unpricedCount": {
      "type": "number"
    },
    "incomplete": {
      "type": "boolean"
    },
    "unpricedProperties": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "listing": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "unavailable",
              "provider_error",
              "deadline"
            ]
          }
        },
        "required": [
          "listing",
          "reason"
        ],
        "additionalProperties": false
      }
    },
    "hasMore": {
      "type": "boolean"
    },
    "nextOffset": {
      "type": [
        "number",
        "null"
      ]
    },
    "checkin": {
      "type": "string"
    },
    "checkout": {
      "type": "string"
    },
    "guests": {
      "type": "number"
    },
    "pagePriceRange": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "minTotal": {
              "type": "number"
            },
            "maxTotal": {
              "type": "number"
            },
            "currency": {
              "type": "string",
              "const": "USD"
            }
          },
          "required": [
            "minTotal",
            "maxTotal",
            "currency"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "properties",
    "count",
    "availableCount",
    "unpricedCount",
    "hasMore",
    "nextOffset",
    "checkin",
    "checkout",
    "guests",
    "pagePriceRange",
    "note"
  ],
  "additionalProperties": false
}