{
  "openapi": "3.1.0",
  "info": {
    "title": "Burra Motor Inn Live Quote API",
    "version": "1.1.1",
    "description": "Official request-time live pricing and availability for Burra Motor Inn. Read-only quote lookup; no inventory hold, reservation, payment or booking confirmation is created. Use indexed content for general property questions and this API for exact-date enquiries. One room, 1–28 nights. Never infer unavailable prices. Server validation remains authoritative."
  },
  "servers": [
    {
      "url": "https://burramotorinn.com.au"
    }
  ],
  "paths": {
    "/bmi-data/quote": {
      "get": {
        "summary": "Get live pricing and availability",
        "description": "Returns official request-time live pricing and availability for a complete stay. Requires checkout later than check-in, for a stay of 1–28 nights in one room. The response does not reserve inventory. No query parameters returns API help (HTTP 200); a partial or invalid query returns HTTP 400. Re-fetch for current pricing; do not reuse indexed prices.",
        "parameters": [
          {
            "name": "check_in",
            "in": "query",
            "required": true,
            "description": "Arrival date in YYYY-MM-DD format. Must not be earlier than today in the Australia/Adelaide timezone.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "check_out",
            "in": "query",
            "required": true,
            "description": "Departure date in YYYY-MM-DD format. Must be later than check_in. The stay must be between 1 and 28 nights.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "adults",
            "in": "query",
            "required": true,
            "description": "Number of adults staying in the single requested room. Combined adults, children and infants must not exceed 10. Actual room capacity is determined by the booking system.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "name": "children",
            "in": "query",
            "required": false,
            "description": "Number of children staying in the single requested room. Optional; defaults to 0. Combined adults, children and infants must not exceed 10. Actual room capacity is determined by the booking system.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "maximum": 10
            }
          },
          {
            "name": "infants",
            "in": "query",
            "required": false,
            "description": "Number of infants staying in the single requested room. Optional; defaults to 0. Combined adults, children and infants must not exceed 10. Actual room capacity is determined by the booking system.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "maximum": 10
            }
          },
          {
            "name": "rate_plan",
            "in": "query",
            "required": false,
            "description": "Optional rate-plan filter. Omit this parameter or use all_public to return all publicly available rate plans. Use direct or advance_saver only when that specific rate plan is required. This parameter does not select a room type.",
            "schema": {
              "type": "string",
              "enum": [
                "direct",
                "advance_saver",
                "all_public"
              ],
              "default": "all_public"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A current live quote, or API help when every query parameter is omitted.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/LiveQuote"
                    },
                    {
                      "$ref": "#/components/schemas/QuoteApiInfo"
                    }
                  ]
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "description": "Live quote responses must not be stored.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid/partial dates, occupancy, rate plan or stay length.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteError"
                }
              }
            }
          },
          "502": {
            "description": "Pricing source unavailable. Schema is conservative; exact upstream failure contract still requires source review.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "description": "Other upstream, gateway, WAF or throttling error. Treat as unverified pricing; do not fabricate availability or assume the body is JSON."
          }
        },
        "operationId": "getBurraLiveQuote"
      }
    },
    "/bmi-data/property.json": {
      "get": {
        "operationId": "getBurraProperty",
        "summary": "Canonical property, location, contact and booking information.",
        "description": "Read existing canonical public data. Additional provider fields are allowed; use returned source timestamps where supplied. This operation does not provide a date-specific quote.",
        "responses": {
          "200": {
            "description": "Existing canonical public JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "description": "Unavailable or blocked. Do not substitute invented property facts."
          }
        }
      }
    },
    "/bmi-data/facilities.json": {
      "get": {
        "operationId": "getBurraFacilities",
        "summary": "Official facilities, accessibility, parking and guest-suitability information.",
        "description": "Read existing canonical public data. Additional provider fields are allowed; use returned source timestamps where supplied. This operation does not provide a date-specific quote.",
        "responses": {
          "200": {
            "description": "Existing canonical public JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "description": "Unavailable or blocked. Do not substitute invented property facts."
          }
        }
      }
    },
    "/bmi-data/policies.json": {
      "get": {
        "operationId": "getBurraPolicies",
        "summary": "Official booking, cancellation, payment, refund and guest policies.",
        "description": "Read existing canonical public data. Additional provider fields are allowed; use returned source timestamps where supplied. This operation does not provide a date-specific quote.",
        "responses": {
          "200": {
            "description": "Existing canonical public JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "description": "Unavailable or blocked. Do not substitute invented property facts."
          }
        }
      }
    },
    "/bmi-data/overview.json": {
      "get": {
        "operationId": "getBurraOverview",
        "summary": "Machine-readable property and accommodation overview.",
        "description": "Read existing canonical public data. Additional provider fields are allowed; use returned source timestamps where supplied. This operation does not provide a date-specific quote.",
        "responses": {
          "200": {
            "description": "Existing canonical public JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "description": "Unavailable or blocked. Do not substitute invented property facts."
          }
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://burramotorinn.com.au/ai.md",
    "description": "Existing official API and property guidance"
  },
  "components": {
    "schemas": {
      "Occupancy": {
        "type": "object",
        "properties": {
          "adults": {
            "type": "integer"
          },
          "children": {
            "type": "integer"
          },
          "infants": {
            "type": "integer"
          }
        },
        "required": [
          "adults",
          "children",
          "infants"
        ],
        "additionalProperties": true
      },
      "StayRequest": {
        "type": "object",
        "properties": {
          "check_in": {
            "type": "string",
            "format": "date"
          },
          "check_out": {
            "type": "string",
            "format": "date"
          },
          "nights": {
            "type": "integer"
          },
          "rooms": {
            "type": "integer"
          },
          "adults": {
            "type": "integer"
          },
          "children": {
            "type": "integer"
          },
          "infants": {
            "type": "integer"
          },
          "rate_plan": {
            "type": "string"
          }
        },
        "required": [
          "check_in",
          "check_out",
          "nights",
          "adults"
        ],
        "additionalProperties": true
      },
      "NightlyPrice": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "price": {
            "type": "number"
          },
          "retrieved_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "date",
          "price"
        ],
        "additionalProperties": true
      },
      "QuoteOption": {
        "type": "object",
        "properties": {
          "room_slug": {
            "type": "string"
          },
          "room_name": {
            "type": "string"
          },
          "room_display_name": {
            "type": "string"
          },
          "room_url": {
            "type": "string",
            "format": "uri"
          },
          "room_sort_order": {
            "type": "integer"
          },
          "rate_plan_key": {
            "type": "string"
          },
          "rate_plan": {
            "type": "string"
          },
          "room_rate_id": {
            "type": "string"
          },
          "occupancy": {
            "$ref": "#/components/schemas/Occupancy"
          },
          "nightly_prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NightlyPrice"
            }
          },
          "total": {
            "type": "number"
          },
          "net_total": {
            "type": "number"
          },
          "tax_total": {
            "type": "number"
          },
          "service_charge_total": {
            "type": "number"
          },
          "availability_for_entire_stay": {
            "type": "integer"
          },
          "currency": {
            "type": "string"
          },
          "booking_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "room_slug",
          "rate_plan_key",
          "nightly_prices",
          "total",
          "currency",
          "booking_url"
        ],
        "additionalProperties": true,
        "description": "Numeric totals and nightly prices are in response currency. Taxes and charges remain separate fields as supplied. Do not promise tax-inclusive semantics or cancellation terms without reading the canonical policies and selected booking rate."
      },
      "LiveQuote": {
        "type": "object",
        "properties": {
          "official_source": {
            "type": "boolean"
          },
          "authoritative_source": {
            "type": "boolean"
          },
          "source_type": {
            "type": "string"
          },
          "pricing_source": {
            "type": "string"
          },
          "pricing_status": {
            "type": "string"
          },
          "current_as_of": {
            "type": "string",
            "format": "date-time"
          },
          "source_fetched_at": {
            "type": "string",
            "format": "date-time"
          },
          "source_url": {
            "type": "string",
            "format": "uri"
          },
          "metadata_source_url": {
            "type": "string",
            "format": "uri"
          },
          "metadata_updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "property": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "request": {
            "$ref": "#/components/schemas/StayRequest"
          },
          "availability_status": {
            "type": "string"
          },
          "available_options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuoteOption"
            }
          },
          "final_booking_confirmation_required": {
            "type": "boolean"
          },
          "final_booking_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "pricing_status",
          "current_as_of",
          "request",
          "availability_status",
          "available_options"
        ],
        "additionalProperties": true,
        "description": "Schema inferred conservatively from the successful one-night and two-night public responses captured on 2026-11-26. Additional fields are permitted. Unavailable and upstream-failure responses need source-contract confirmation; do not treat this as a complete backend contract."
      },
      "QuoteApiInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "required_parameters": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "optional_parameters": {
            "type": "object"
          },
          "supported_rate_plans": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "documentation": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "name",
          "required_parameters"
        ],
        "additionalProperties": true
      },
      "QuoteError": {
        "type": "object",
        "properties": {
          "official_source": {
            "type": "boolean"
          },
          "property": {
            "type": "string"
          },
          "ok": {
            "const": false
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "details": {
                "type": "object"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "ok",
          "error"
        ],
        "additionalProperties": true
      }
    }
  }
}
