{
  "openapi": "3.0.4",
  "info": {
    "title": "Ratestellar API",
    "description": "Search, quote and booking API for Ratestellar API.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://sandbox.ratestellar.com",
      "description": "Sandbox"
    },
    {
      "url": "https://api.ratestellar.com",
      "description": "Production"
    }
  ],
  "paths": {
    "/api/v2/quote": {
      "post": {
        "tags": [
          "Book"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2QuoteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V2QuoteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V2QuoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/V2QuoteResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2QuoteResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2QuoteResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/book": {
      "post": {
        "tags": [
          "Book"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2BookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V2BookRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V2BookRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/V2BookResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2BookResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2BookResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/bookings/{orderId}/cancel": {
      "post": {
        "tags": [
          "Booking"
        ],
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CancelBookingResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelBookingResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelBookingResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/bookings/{id}": {
      "get": {
        "tags": [
          "Booking"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/V1Booking"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1Booking"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1Booking"
                }
              }
            }
          }
        }
      }
    },
    "/api/bookings": {
      "get": {
        "tags": [
          "Booking"
        ],
        "parameters": [
          {
            "name": "createdAt.from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "createdAt.to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "checkInAt.from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "checkInAt.to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "checkOutAt.from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "checkOutAt.to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page.limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page.offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BookingsPageResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingsPageResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingsPageResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/liabilities/utilization": {
      "get": {
        "tags": [
          "Liabilities"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/V1UtilizationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1UtilizationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1UtilizationResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/liabilities/{liabilityId}": {
      "get": {
        "tags": [
          "Liabilities"
        ],
        "parameters": [
          {
            "name": "liabilityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/liabilities": {
      "get": {
        "tags": [
          "Liabilities"
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/mapping/rooms": {
      "post": {
        "tags": [
          "Mapping"
        ],
        "summary": "Maps the rooms of a single hotel by matching source rooms against target\n(reference) rooms.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V1MapRoomsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V1MapRoomsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V1MapRoomsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/V1MapRoomsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1MapRoomsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1MapRoomsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/mapping/rooms/batch": {
      "post": {
        "tags": [
          "Mapping"
        ],
        "summary": "Maps rooms for multiple hotels in a single request.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V1MapRoomsBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V1MapRoomsBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V1MapRoomsBatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/V1MapRoomsBatchResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1MapRoomsBatchResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1MapRoomsBatchResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/order/status": {
      "get": {
        "tags": [
          "Order"
        ],
        "parameters": [
          {
            "name": "offerKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orderId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/order": {
      "post": {
        "tags": [
          "Order"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V1CreateOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V1CreateOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V1CreateOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/V1CreateOrderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1CreateOrderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1CreateOrderResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/order/update-status": {
      "post": {
        "tags": [
          "Order"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V1UpdateOrderStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V1UpdateOrderStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V1UpdateOrderStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/V1UpdateOrderStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1UpdateOrderStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1UpdateOrderStatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/content/properties/board-types": {
      "get": {
        "tags": [
          "PropertyContent"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/content/properties/amenities": {
      "get": {
        "tags": [
          "PropertyContent"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/content/properties/room-amenities": {
      "get": {
        "tags": [
          "PropertyContent"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnumEntry"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/content/properties/bed-configurations": {
      "get": {
        "tags": [
          "PropertyContent"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BedConfigurationsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BedConfigurationsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BedConfigurationsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/properties": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postalCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "giataIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "propertyTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "amenityTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stars",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "ratings",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "latitude",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "radius",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "maxDistance",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "searchedPlace",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lastUpdatedFrom",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "include",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PropertiesResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertiesResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertiesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/search": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Availability search over our cached and mapped inventory. Refused when the partner\naccount does not have cached and mapped search enabled.",
        "parameters": [
          {
            "name": "checkIn",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "occupancies",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "residency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "latitude",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "radius",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "maxDistance",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "searchedPlace",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postalCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "propertyTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PropertyType"
              }
            }
          },
          {
            "name": "stars",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "ratings",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "amenityTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PropertyAmenityType"
              }
            }
          },
          {
            "name": "minPrice",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "maxPrice",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "eager",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "giataIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "packages",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeMarketPrice",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "travelPurpose",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/TravelPurpose"
            }
          },
          {
            "name": "supplierTimeout",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "include",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "hideSoldOut",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "Currency to price the search in, one of the partner's allowed currencies. Defaults to the currency of the\nAPI key's configuration profile.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/properties/{id}/packages": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Mapped packages for one property. Refused when the partner account does not have cached\nand mapped search enabled.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "occupancies",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "residency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eager",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "travelPurpose",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/TravelPurpose"
            }
          },
          {
            "name": "supplierTimeout",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "Currency to price the search in, one of the partner's allowed currencies. Defaults to the currency of the\nAPI key's configuration profile.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/properties/packages": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "properties",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "occupancies",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "residency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eager",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "travelPurpose",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/V1TravelPurpose"
            }
          },
          {
            "name": "supplierTimeout",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "Currency to price the search in, one of the partner's allowed currencies. Defaults to the currency of the\nAPI key's configuration profile.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PropertyPackagesResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PropertyPackagesResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PropertyPackagesResponse"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AdditionalGuest": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "specialRequests": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AggregateDto": {
        "type": "object",
        "properties": {
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyQueryFilterDto"
            },
            "nullable": true
          },
          "constraints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyQueryConstraintDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BedConfigurationDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "size": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BedConfigurationsResponse": {
        "type": "object",
        "properties": {
          "sizes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnumEntry"
            },
            "nullable": true
          },
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnumEntry"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BookingCustomer": {
        "required": [
          "email",
          "firstName",
          "lastName",
          "residency"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "residency": {
            "type": "string",
            "nullable": true
          },
          "phoneCountryCode": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BookingProperty": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Deprecated legacy property identifier; use the property ID field below instead.",
            "nullable": true
          },
          "ratestellarId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BookingRoom": {
        "required": [
          "name",
          "occupancy",
          "primaryGuest"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "primaryGuest": {
            "$ref": "#/components/schemas/BookingRoomPrimaryGuest"
          },
          "occupancy": {
            "$ref": "#/components/schemas/BookingRoomOccupancy"
          },
          "specialRequest": {
            "type": "string",
            "nullable": true
          },
          "hotelConfirmationNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BookingRoomInput": {
        "required": [
          "occupancy",
          "primaryGuest"
        ],
        "type": "object",
        "properties": {
          "primaryGuest": {
            "$ref": "#/components/schemas/BookingRoomPrimaryGuest"
          },
          "occupancy": {
            "$ref": "#/components/schemas/BookingRoomOccupancy"
          },
          "specialRequest": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BookingRoomOccupancy": {
        "required": [
          "adultCount"
        ],
        "type": "object",
        "properties": {
          "adultCount": {
            "type": "integer",
            "format": "int32"
          },
          "childrenAges": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BookingRoomPrimaryGuest": {
        "required": [
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BookingsPageResponse": {
        "required": [
          "data",
          "limit",
          "offset",
          "total"
        ],
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "offset": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/V1Booking"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CancelBookingResponse": {
        "type": "object",
        "properties": {
          "isSuccessful": {
            "type": "boolean"
          },
          "success": {
            "type": "boolean",
            "readOnly": true
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "creditLineOutcome": {
            "$ref": "#/components/schemas/CreditLineOutcome"
          }
        },
        "additionalProperties": false
      },
      "CreditLineOutcome": {
        "required": [
          "text"
        ],
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The outcome in plain words, e.g. `credit note on statement 2026ACME003: 400.00`.",
            "nullable": true
          },
          "statementNumber": {
            "type": "string",
            "description": "The statement the credit note is on. Omitted when no credit note was issued.",
            "nullable": true
          },
          "creditNoteAmount": {
            "type": "number",
            "description": "The amount credited on that statement. Omitted when no credit note was issued.",
            "format": "double",
            "nullable": true
          },
          "refundEntryAmount": {
            "type": "number",
            "description": "The refund entry that comes off your next invoice. Omitted when there is none.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "What the refund did on your credit line."
      },
      "CurrencyAmount": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "EnumEntry": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GeoLocationDto": {
        "type": "object",
        "properties": {
          "longitude": {
            "type": "number",
            "format": "double"
          },
          "latitude": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "GuestDetails": {
        "required": [
          "primaryGuest"
        ],
        "type": "object",
        "properties": {
          "primaryGuest": {
            "$ref": "#/components/schemas/V1PrimaryGuest"
          },
          "additionalGuests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdditionalGuest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Hotel": {
        "required": [
          "address",
          "city",
          "country",
          "email",
          "name",
          "phoneNumber"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "ratestellarId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ImageWithCaptionDto": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MappingRoom": {
        "required": [
          "description",
          "id"
        ],
        "type": "object",
        "properties": {
          "supplierCode": {
            "type": "string",
            "description": "Identifier for the room's origin. Required for source rooms.",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Unique room identifier; used as the grouping key in the response.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Room name/description; the primary matching input.",
            "nullable": true
          },
          "roomCode": {
            "type": "string",
            "description": "Room code/SKU.",
            "nullable": true
          },
          "price": {
            "type": "number",
            "description": "Room price.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A room used as either a matching target (reference inventory) or a source\n(rooms to be matched). Shared by both the request and the response."
      },
      "OfferStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ],
        "type": "integer",
        "format": "int32"
      },
      "OrderData": {
        "required": [
          "createdAt",
          "priceToPay",
          "reservationId",
          "status"
        ],
        "type": "object",
        "properties": {
          "reservationId": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/OfferStatus"
          },
          "priceToPay": {
            "type": "number",
            "format": "double"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "OrderStatusResponse": {
        "required": [
          "cancellationPolicies",
          "roomsInformation"
        ],
        "type": "object",
        "properties": {
          "hotelName": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "roomName": {
            "type": "string",
            "nullable": true
          },
          "totalNights": {
            "type": "integer",
            "format": "int32"
          },
          "checkInDate": {
            "type": "string",
            "format": "date-time"
          },
          "checkOutDate": {
            "type": "string",
            "format": "date-time"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "customerPhoneNumber": {
            "type": "string",
            "nullable": true
          },
          "customerEmail": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/OfferStatus"
          },
          "hotelId": {
            "type": "integer",
            "format": "int32"
          },
          "bookingStatus": {
            "$ref": "#/components/schemas/OfferStatus"
          },
          "bookingReference": {
            "type": "string",
            "nullable": true
          },
          "specialRequest": {
            "type": "string",
            "nullable": true
          },
          "stayInformation": {
            "type": "string",
            "nullable": true
          },
          "hotelAddress": {
            "type": "string",
            "nullable": true
          },
          "roomsInformation": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReservationRoomOld"
            },
            "nullable": true
          },
          "cancellationPolicies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/V1OrderCancellationPolicy"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PackageBoard": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "description": "Guests the board covers. Omitted entirely when no count is reported, so an absent\nfield means \"not reported\" rather than zero.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Board conditions originally reported for a rate, before the occupancy-coverage check that\nproduced the package's `boardType`. The two differ only when the reported coverage did not\ncover the searched occupancy, in which case `boardType` is collapsed to `None` and this\ncarries the real meal plan and the guests it covers."
      },
      "Page": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "query": {
            "$ref": "#/components/schemas/PageQuery"
          }
        },
        "additionalProperties": false
      },
      "PageQuery": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "offset": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlatformOrderCurrencyConversion": {
        "required": [
          "from",
          "to"
        ],
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "nullable": true
          },
          "to": {
            "type": "string",
            "nullable": true
          },
          "rate": {
            "type": "number",
            "format": "double"
          },
          "margin": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PlatformOrderInput": {
        "required": [
          "id",
          "platformCode",
          "platformPartnerCode",
          "pricing",
          "referenceNumber"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "platformCode": {
            "type": "string",
            "description": "Identifies which platform system this order came from.",
            "nullable": true
          },
          "platformPartnerCode": {
            "type": "string",
            "description": "Partner code on the platform.",
            "nullable": true
          },
          "referenceNumber": {
            "type": "string",
            "nullable": true
          },
          "pricing": {
            "$ref": "#/components/schemas/PlatformOrderPricing"
          }
        },
        "additionalProperties": false,
        "description": "The originating platform order this booking was created from, when the request comes through a\nplatform partner. Optional; when present it is persisted on the order and carried through\nunchanged."
      },
      "PlatformOrderPriceAdjustment": {
        "required": [
          "amount",
          "code",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/PriceAdjustmentType"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "isIncluded": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PlatformOrderPricing": {
        "required": [
          "basePrice",
          "sourcePrice",
          "total"
        ],
        "type": "object",
        "properties": {
          "sourcePrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "basePrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "total": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "adjustments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformOrderPriceAdjustment"
            },
            "nullable": true
          },
          "currencyConversion": {
            "$ref": "#/components/schemas/PlatformOrderCurrencyConversion"
          },
          "refundedTotal": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PriceAdjustmentType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9
        ],
        "type": "integer",
        "format": "int32"
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "PropertiesResponse": {
        "type": "object",
        "properties": {
          "page": {
            "$ref": "#/components/schemas/Page"
          },
          "properties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyDto"
            },
            "nullable": true
          },
          "aggregate": {
            "$ref": "#/components/schemas/AggregateDto"
          }
        },
        "additionalProperties": false
      },
      "PropertyAmenityDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyAmenityType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20
        ],
        "type": "integer",
        "format": "int32"
      },
      "PropertyCheckInPolicyDto": {
        "type": "object",
        "properties": {
          "startsAt": {
            "type": "string",
            "nullable": true
          },
          "endsAt": {
            "type": "string",
            "nullable": true
          },
          "minAge": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyCheckOutPolicyDto": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyDescriptionDto": {
        "type": "object",
        "properties": {
          "general": {
            "type": "string",
            "nullable": true
          },
          "amenities": {
            "type": "string",
            "nullable": true
          },
          "dining": {
            "type": "string",
            "nullable": true
          },
          "renovations": {
            "type": "string",
            "nullable": true
          },
          "nationalRatings": {
            "type": "string",
            "nullable": true
          },
          "businessAmenities": {
            "type": "string",
            "nullable": true
          },
          "rooms": {
            "type": "string",
            "nullable": true
          },
          "attractions": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "mandatoryFees": {
            "type": "string",
            "nullable": true
          },
          "optionalFees": {
            "type": "string",
            "nullable": true
          },
          "knowBeforeYouGo": {
            "type": "string",
            "nullable": true
          },
          "checkInInstructions": {
            "type": "string",
            "nullable": true
          },
          "checkInSpecialInstructions": {
            "type": "string",
            "nullable": true
          },
          "checkOutInstructions": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "ratestellarId": {
            "type": "string",
            "nullable": true
          },
          "giataId": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "stateProvinceCode": {
            "type": "string",
            "nullable": true
          },
          "stateProvinceName": {
            "type": "string",
            "nullable": true
          },
          "addressLine1": {
            "type": "string",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "$ref": "#/components/schemas/GeoLocationDto"
          },
          "starRating": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "alternateRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "checkInPolicy": {
            "$ref": "#/components/schemas/PropertyCheckInPolicyDto"
          },
          "checkOutPolicy": {
            "$ref": "#/components/schemas/PropertyCheckOutPolicyDto"
          },
          "rank": {
            "type": "integer",
            "format": "int32"
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageWithCaptionDto"
            },
            "nullable": true
          },
          "amenities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyAmenityDto"
            },
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "registryNumber": {
            "type": "string",
            "nullable": true
          },
          "guestReviewSummary": {
            "$ref": "#/components/schemas/PropertyGuestReviewSummaryDto"
          },
          "preferredAirportCode": {
            "type": "string",
            "nullable": true
          },
          "quoteSummary": {
            "$ref": "#/components/schemas/PropertyQuoteSummaryDto"
          },
          "distance": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "rooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoomDto"
            },
            "nullable": true
          },
          "description": {
            "$ref": "#/components/schemas/PropertyDescriptionDto"
          }
        },
        "additionalProperties": false
      },
      "PropertyGuestReviewSummaryDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "overallRating": {
            "type": "number",
            "format": "double"
          },
          "recommendationPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cleanlinessRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "serviceRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "comfortRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "conditionRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "locationRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "neighborhoodRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "qualityRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "valueRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amenitiesRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyPackageAmount": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyPackageCancellationFee": {
        "type": "object",
        "properties": {
          "since": {
            "type": "string",
            "description": "The UTC instant from which this fee applies (inclusive).",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "description": "The fee forfeited when cancelling in this step, in the order's currency (the currency of the package total).",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "One step of the cancellation fee schedule."
      },
      "PropertyPackageCancellationPolicy": {
        "type": "object",
        "properties": {
          "isRefundable": {
            "type": "boolean",
            "description": "Whether cancelling now returns any part of the total. With a fee schedule, true while the fee in\nforce now is below the total; without one, true when there is a free-cancellation deadline."
          },
          "fullRefundability": {
            "$ref": "#/components/schemas/PropertyPackageRefundabilityWindow"
          },
          "fees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyPackageCancellationFee"
            },
            "description": "The cancellation fee schedule, ordered by `since`. Cancellation is free before the first entry;\neach entry applies from its `since` until the next entry's, and the last one applies through\ncheck-in. Omitted (not an empty array) when the rate carries no fee schedule; the cancellation\nterms are then fully described by `isRefundable` and `fullRefundability`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyPackageRefundabilityWindow": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PropertyPackageTaxOrFee": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "isIncludedInPrice": {
            "type": "boolean"
          },
          "isMandatory": {
            "type": "boolean"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "value": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PropertyPackagesHotel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "ratestellarId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyPackagesResponse": {
        "required": [
          "hotel",
          "rooms"
        ],
        "type": "object",
        "properties": {
          "isDone": {
            "type": "boolean"
          },
          "hotel": {
            "$ref": "#/components/schemas/PropertyPackagesHotel"
          },
          "rooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyPackagesRoom"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyPackagesRoom": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyRoomPackage"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyQueryConstraintDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "minValue": {
            "type": "number",
            "format": "double"
          },
          "maxValue": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PropertyQueryFilterDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyQuoteSummaryDto": {
        "type": "object",
        "properties": {
          "isDone": {
            "type": "boolean"
          },
          "cheapestRoom": {
            "$ref": "#/components/schemas/PropertyRoomSummaryDto"
          },
          "highestDiscountRoom": {
            "$ref": "#/components/schemas/PropertyRoomSummaryDto"
          }
        },
        "additionalProperties": false
      },
      "PropertyRoomPackage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "boardType": {
            "type": "string",
            "nullable": true
          },
          "board": {
            "$ref": "#/components/schemas/PackageBoard"
          },
          "totalPrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "marketPrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "recommendedSalePrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "discountPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "taxesAndFees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyPackageTaxOrFee"
            },
            "nullable": true
          },
          "cancellationPolicy": {
            "$ref": "#/components/schemas/PropertyPackageCancellationPolicy"
          },
          "supplierCode": {
            "type": "string",
            "nullable": true
          },
          "remainingRooms": {
            "type": "integer",
            "description": "Number of rooms still available for this package, for this exact room and rate. Optional: the\nproperty is omitted entirely when remaining availability is not reported, so an omitted field\nmeans \"not provided\" and an explicit `0` means no rooms are left.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PropertyRoomSummaryDto": {
        "type": "object",
        "properties": {
          "minTotalPrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "maxTotalPrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "discountPercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PropertyType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          35
        ],
        "type": "integer",
        "format": "int32"
      },
      "QuoteChangeType": {
        "enum": [
          "PriceChanged",
          "CancellationPolicyChanged"
        ],
        "type": "string"
      },
      "QuotedPackage": {
        "required": [
          "boardType",
          "cancellationPolicy",
          "taxesAndFees",
          "totalPrice"
        ],
        "type": "object",
        "properties": {
          "boardType": {
            "$ref": "#/components/schemas/V1BoardType"
          },
          "board": {
            "$ref": "#/components/schemas/PackageBoard"
          },
          "totalPrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "recommendedSalePrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "taxesAndFees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyPackageTaxOrFee"
            },
            "nullable": true
          },
          "cancellationPolicy": {
            "$ref": "#/components/schemas/PropertyPackageCancellationPolicy"
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuoteChangeType"
            },
            "nullable": true
          },
          "supplierCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QuotedRoom": {
        "required": [
          "id",
          "name",
          "package"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "package": {
            "$ref": "#/components/schemas/QuotedPackage"
          }
        },
        "additionalProperties": false
      },
      "Refundability": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "ReservationRoomOld": {
        "required": [
          "childrenAges"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "foodType": {
            "type": "integer",
            "format": "int32"
          },
          "adultsCount": {
            "type": "integer",
            "format": "int32"
          },
          "childrenAges": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RoomDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "amenities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyAmenityDto"
            },
            "nullable": true
          },
          "bedConfigurations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BedConfigurationDto"
            },
            "nullable": true
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageWithCaptionDto"
            },
            "nullable": true
          },
          "squareArea": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "viewDescriptions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TravelPurpose": {
        "enum": [
          "Business"
        ],
        "type": "string"
      },
      "V1BoardType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ],
        "type": "integer",
        "format": "int32"
      },
      "V1Booking": {
        "required": [
          "boardType",
          "cancellationPolicies",
          "currency",
          "customer",
          "hotel",
          "id",
          "rooms",
          "taxesAndFees"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/OfferStatus"
          },
          "salePrice": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "recommendedSalePrice": {
            "type": "number",
            "description": "A recommended retail sale price captured at book time, in the booking's own\n`currency`. Omitted for bookings made before this field existed, or where\nnone was provided.",
            "format": "double",
            "nullable": true
          },
          "hotel": {
            "$ref": "#/components/schemas/Hotel"
          },
          "boardType": {
            "$ref": "#/components/schemas/V1BoardType"
          },
          "customer": {
            "$ref": "#/components/schemas/BookingCustomer"
          },
          "rooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingRoom"
            },
            "nullable": true
          },
          "cancellationPolicies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/V1CancellationPolicy"
            },
            "nullable": true
          },
          "taxesAndFees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/V1TaxOrFee"
            },
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "checkInAt": {
            "type": "string",
            "format": "date-time"
          },
          "checkOutAt": {
            "type": "string",
            "format": "date-time"
          },
          "bookingRemarks": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V1CancellationPolicy": {
        "required": [
          "description"
        ],
        "type": "object",
        "properties": {
          "fee": {
            "type": "number",
            "format": "double"
          },
          "availableFrom": {
            "type": "string",
            "format": "date-time"
          },
          "availableTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "refundability": {
            "$ref": "#/components/schemas/Refundability"
          }
        },
        "additionalProperties": false
      },
      "V1CreateOrderRequest": {
        "required": [
          "guestDetails"
        ],
        "type": "object",
        "properties": {
          "searchId": {
            "type": "integer",
            "format": "int32"
          },
          "encodedString": {
            "type": "string",
            "nullable": true
          },
          "hotelId": {
            "type": "integer",
            "format": "int32"
          },
          "packageId": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "guestDetails": {
            "$ref": "#/components/schemas/GuestDetails"
          },
          "specialRequests": {
            "type": "string",
            "nullable": true
          },
          "customerOrderId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V1CreateOrderResponse": {
        "required": [
          "data",
          "expiresAt",
          "success",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "discount": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "$ref": "#/components/schemas/OrderData"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "V1MapRoomsBatchRequest": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/V1MapRoomsRequest"
            },
            "description": "Per-hotel mapping requests; each follows the single-hotel schema.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Maps rooms for multiple hotels in a single request."
      },
      "V1MapRoomsBatchResponse": {
        "required": [
          "results"
        ],
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/V1MapRoomsResponse"
            },
            "description": "Mapping responses in the same order as the input items.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Result of a batch room-mapping request."
      },
      "V1MapRoomsRequest": {
        "required": [
          "country",
          "hotelId",
          "hotelName",
          "sourceRooms"
        ],
        "type": "object",
        "properties": {
          "hotelId": {
            "type": "string",
            "description": "Unique hotel identifier.",
            "nullable": true
          },
          "hotelName": {
            "type": "string",
            "description": "Hotel display name.",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "2-letter ISO country code.",
            "nullable": true
          },
          "targetRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MappingRoom"
            },
            "description": "Reference room inventory. When omitted, it is auto-populated from our property catalog.",
            "nullable": true
          },
          "sourceRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MappingRoom"
            },
            "description": "Rooms to be matched to the targets.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Maps the rooms of a single hotel by matching `sourceRooms` against\n`targetRooms` (reference inventory)."
      },
      "V1MapRoomsResponse": {
        "required": [
          "hotelId",
          "mappedRooms",
          "unmappedSourceRooms"
        ],
        "type": "object",
        "properties": {
          "hotelId": {
            "type": "string",
            "description": "Echo of the input hotel identifier.",
            "nullable": true
          },
          "mappedRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/V1MappedRoom"
            },
            "description": "Successfully matched room pairs.",
            "nullable": true
          },
          "unmappedSourceRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MappingRoom"
            },
            "description": "Source rooms that had no target match.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Result of mapping a single hotel's rooms."
      },
      "V1MappedRoom": {
        "required": [
          "sourceRooms",
          "targetRoom"
        ],
        "type": "object",
        "properties": {
          "targetRoom": {
            "$ref": "#/components/schemas/MappingRoom"
          },
          "sourceRooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MappingRoom"
            },
            "description": "Source rooms matched to this target room.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A target room together with the source rooms matched to it."
      },
      "V1OrderCancellationPolicy": {
        "required": [
          "description"
        ],
        "type": "object",
        "properties": {
          "fee": {
            "type": "number",
            "format": "double"
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "dateFrom": {
            "type": "string",
            "format": "date-time"
          },
          "dateTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "refundability": {
            "$ref": "#/components/schemas/Refundability"
          },
          "sellingPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V1PrimaryGuest": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "phoneCountryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V1TaxOrFee": {
        "required": [
          "currency",
          "title"
        ],
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "isIncludedInPrice": {
            "type": "boolean"
          },
          "isMandatory": {
            "type": "boolean"
          },
          "isValuePercentage": {
            "type": "boolean"
          },
          "value": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "V1TravelPurpose": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "V1UpdateOrderStatusRequest": {
        "required": [
          "orderId",
          "paid"
        ],
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string",
            "nullable": true
          },
          "paid": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "V1UpdateOrderStatusResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V1UtilizationResponse": {
        "type": "object",
        "properties": {
          "partnerId": {
            "type": "string",
            "nullable": true
          },
          "balance": {
            "type": "number",
            "format": "double"
          },
          "creditRatioMultiplier": {
            "type": "number",
            "format": "double"
          },
          "creditLimit": {
            "type": "number",
            "format": "double"
          },
          "utilizationPercentage": {
            "type": "number",
            "format": "double"
          },
          "isBlocked": {
            "type": "boolean"
          },
          "usedCredit": {
            "type": "number",
            "format": "double"
          },
          "remainingCredit": {
            "type": "number",
            "format": "double"
          },
          "spendingPower": {
            "type": "number",
            "format": "double"
          },
          "amountDue": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "balanceCurrency": {
            "type": "string",
            "nullable": true
          },
          "amountDueCurrency": {
            "type": "string",
            "nullable": true
          },
          "amountDueByCurrency": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyAmount"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V2BookRequest": {
        "required": [
          "customer",
          "packageBookingId",
          "rooms"
        ],
        "type": "object",
        "properties": {
          "packageBookingId": {
            "type": "string",
            "nullable": true
          },
          "customer": {
            "$ref": "#/components/schemas/BookingCustomer"
          },
          "rooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingRoomInput"
            },
            "nullable": true
          },
          "customerOrderId": {
            "type": "string",
            "nullable": true
          },
          "platformOrder": {
            "$ref": "#/components/schemas/PlatformOrderInput"
          }
        },
        "additionalProperties": false
      },
      "V2BookResponse": {
        "required": [
          "booking",
          "property"
        ],
        "type": "object",
        "properties": {
          "property": {
            "$ref": "#/components/schemas/BookingProperty"
          },
          "booking": {
            "$ref": "#/components/schemas/V2Booking"
          }
        },
        "additionalProperties": false
      },
      "V2Booking": {
        "required": [
          "boardType",
          "cancellationPolicy",
          "customerOrderId",
          "id",
          "referenceNumber",
          "rooms",
          "status",
          "supplierReferenceNumber",
          "taxesAndFees",
          "totalPrice"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "customerOrderId": {
            "type": "string",
            "nullable": true
          },
          "referenceNumber": {
            "type": "string",
            "nullable": true
          },
          "supplierReferenceNumber": {
            "type": "string",
            "nullable": true
          },
          "boardType": {
            "$ref": "#/components/schemas/V1BoardType"
          },
          "status": {
            "$ref": "#/components/schemas/OfferStatus"
          },
          "totalPrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "recommendedSalePrice": {
            "$ref": "#/components/schemas/PropertyPackageAmount"
          },
          "rooms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingRoom"
            },
            "nullable": true
          },
          "taxesAndFees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyPackageTaxOrFee"
            },
            "nullable": true
          },
          "cancellationPolicy": {
            "$ref": "#/components/schemas/PropertyPackageCancellationPolicy"
          },
          "bookingRemarks": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V2QuoteRequest": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V2QuoteResponse": {
        "required": [
          "checkIn",
          "checkOut",
          "packageBookingId",
          "property",
          "room"
        ],
        "type": "object",
        "properties": {
          "packageBookingId": {
            "type": "string",
            "nullable": true
          },
          "property": {
            "$ref": "#/components/schemas/BookingProperty"
          },
          "room": {
            "$ref": "#/components/schemas/QuotedRoom"
          },
          "checkIn": {
            "type": "string",
            "format": "date"
          },
          "checkOut": {
            "type": "string",
            "format": "date"
          },
          "bookingRemarks": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "API key is needed to access the endpoints. Use 'X-Api-Key' header.",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": [ ]
    }
  ],
  "tags": [
    {
      "name": "Book"
    },
    {
      "name": "Booking"
    },
    {
      "name": "Liabilities"
    },
    {
      "name": "Mapping"
    },
    {
      "name": "Order"
    },
    {
      "name": "PropertyContent"
    },
    {
      "name": "Search"
    }
  ]
}