{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stayportland-com/json-schema/stayportland-com-quote-request-schema.json",
  "title": "QuoteRequest",
  "description": "Create a temporary quote for one public listing and date pair. This creates no reservation and collects no payment. 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/QuoteRequest",
  "type": "object",
  "properties": {
    "listing": {
      "type": "string",
      "maxLength": 200,
      "description": "The 24-character hexadecimal Guesty listing ID or property slug returned by a search."
    },
    "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
    }
  },
  "required": [
    "listing",
    "checkin",
    "checkout"
  ],
  "additionalProperties": false
}