{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stayportland-com/json-schema/stayportland-com-priced-availability-request-schema.json",
  "title": "PricedAvailabilityRequest",
  "description": "Search one required date pair and request temporary base quotes including cleaning and stay taxes for up to six results. Unknown fields are rejected.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stayportland-com-openapi.json#/components/schemas/PricedAvailabilityRequest",
  "type": "object",
  "properties": {
    "checkin": {
      "type": "string",
      "maxLength": 10,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Arrival date (YYYY-MM-DD), today or later in America/Los_Angeles. Provide checkout together with checkin.",
      "format": "date"
    },
    "checkout": {
      "type": "string",
      "maxLength": 10,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Departure date (YYYY-MM-DD), after checkin, for a stay of 1 to 30 nights.",
      "format": "date"
    },
    "guests": {
      "type": "integer",
      "minimum": 1,
      "maximum": 16,
      "description": "Total number of guests, including children.",
      "default": 2
    },
    "petCount": {
      "description": "Number of pets attending. Requires confirmed pet permission; pet fees and their taxes are excluded from the base quote and approved in hosted checkout.",
      "type": "integer",
      "minimum": 0,
      "maximum": 10
    },
    "bedrooms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 8,
      "description": "Minimum bedrooms; 0 includes studios."
    },
    "bathrooms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 12,
      "description": "Minimum bathrooms."
    },
    "beds": {
      "type": "integer",
      "minimum": 0,
      "maximum": 24,
      "description": "Minimum beds."
    },
    "pets": {
      "type": "boolean",
      "description": "Filter for pet-friendly homes when true."
    },
    "neighborhood": {
      "type": "string",
      "maxLength": 200,
      "description": "Portland neighborhood filter."
    },
    "q": {
      "description": "Public feature, neighborhood, or listing-copy criteria.",
      "type": "string",
      "maxLength": 200
    },
    "maxNightly": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 10000,
      "description": "Maximum indicative nightly price in USD; use a live quote for the all-in stay total."
    },
    "propertyTypes": {
      "maxItems": 7,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "apartment",
          "house",
          "condominium",
          "townhouse",
          "loft",
          "bungalow",
          "cabin"
        ]
      },
      "description": "Allowed property types to include in results."
    },
    "amenities": {
      "maxItems": 12,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "hot_tub",
          "fireplace",
          "backyard",
          "workspace",
          "wifi",
          "air_conditioning",
          "washer",
          "dryer",
          "kitchen",
          "crib",
          "high_chair",
          "elevator",
          "parking"
        ]
      },
      "description": "Public amenities required in matching listings."
    },
    "personas": {
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "family",
          "groups",
          "luxury",
          "budget",
          "extended_stay",
          "remote_work",
          "romantic"
        ]
      },
      "description": "Traveler needs to match against public listing evidence."
    },
    "sort": {
      "type": "string",
      "enum": [
        "recommended",
        "price_low",
        "price_high",
        "rating",
        "capacity_fit"
      ],
      "description": "Result ordering. Defaults to recommended. Priced search sorts the current page by exact total for price_low or price_high.",
      "default": "recommended"
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300,
      "description": "Pagination offset; use nextOffset from the previous response.",
      "default": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 6,
      "description": "Maximum results on the current page.",
      "default": 6
    }
  },
  "required": [
    "checkin",
    "checkout"
  ],
  "additionalProperties": false
}