{
  "openapi": "3.1.0",
  "info": {
    "title": "Flights DAFAR API",
    "version": "v2"
  },
  "tags": [
    {
      "name": "Offer & Merchandising",
      "description": "Endpoints for creating, pricing, and retrieving offers for a customer's itinerary, as well as generating merchandising content for those offers.\n\n## Merchandising SDK Integration\n\nHTS merchandising SDKs are lightweight, embeddable components that display product offers on your website. The SDKs are built with SolidJS and delivered as web components that render in Shadow DOM with isolated styling.\n\n### Integration Flow\n\n```\n1. Obtain SDK URL from create offer API → 2. Embed SDK in partner purchase flow → 3. Customer selects option → 4. Process selection event\n```\n\n### Custom Element\n\n| Element Name                             |\n| ---------------------------------------- |\n| `<hts-flights-disruption-merchandising>` |\n\n### Basic Integration\n\n```html\n<!-- Preconnect for faster DNS resolution -->\n<link rel=\"preconnect\" href=\"https://hts.hopper.com\" />\n\n<!-- SDK Script (merchandising_url from create offer API response) -->\n<script src=\"{{MERCHANDISING_URL}}\" type=\"module\" async></script>\n\n<!-- SDK Component -->\n<hts-flights-disruption-merchandising></hts-flights-disruption-merchandising>\n```\n\n### Dynamic Integration (JavaScript)\n\n```javascript\n// merchandising_url is provided in the create offer API response\nconst sdkUrl = merchandisingUrl;\n\n// Create and insert script\nconst script = document.createElement('script');\nscript.src = sdkUrl;\nscript.type = 'module';\nscript.async = true;\ndocument.head.appendChild(script);\n\n// Create and insert component\nconst component = document.createElement('hts-flights-disruption-merchandising');\ndocument.body.appendChild(component);\n```\n\n## Handling SDK Events\n\nThe SDK communicates with your page using the `postMessage` API.\n\n### Event Types\n\n| Event Type                  | Description                  | When Fired                                               |\n| --------------------------- | ---------------------------- | -------------------------------------------------------- |\n| `hts-initialized`           | SDK loaded and ready         | On component mount                                       |\n| `hts-option-selected`       | User selected an option      | When selection changes                                   |\n| `hts-invalid-params`        | Invalid parameters detected  | On parameter validation failure                          |\n| `hts-data-loaded`           | Offer data loaded            | After successful data parsing                            |\n| `hts-dimension`             | Component dimensions changed | When size changes                                        |\n| `hts-view-terms`            | User viewing terms           | When terms link is clicked                               |\n| `hts-link-clicked`          | User clicked a link          | When FAQ or T&C links are clicked                        |\n| `hts-initialization-failed` | Initialization blocked       | When the app cannot initialize (e.g. unsupported locale) |\n| `hts-validated`             | Checkout readiness changed   | On each `hts-validate`, and on change once enabled (or immediately with `validate`)                |\n\n### Listening to Events\n\n```javascript\nwindow.addEventListener('message', (event) => {\n  // Verify origin for security\n  if (event.origin !== 'https://hts.hopper.com') return;\n\n  const { type, product, data } = event.data;\n\n  switch (type) {\n    case 'hts-initialized':\n      console.log(`${product} SDK initialized`);\n      break;\n    case 'hts-option-selected':\n      if (data.attached && data.offer) {\n        // User selected the offer\n        console.log(`Offer selected, price: ${data.offer.premium} ${data.offer.currency}`);\n      } else {\n        // User declined the offer\n      }\n      break;\n    case 'hts-invalid-params':\n      console.error('SDK validation failed:', data.error);\n      break;\n    case 'hts-dimension':\n      // Adjust iframe height if using iframe integration\n      break;\n    case 'hts-link-clicked':\n      // contextType is \"faq\" or \"termsAndConditions\"\n      break;\n    case 'hts-initialization-failed':\n      // Widget will not render — hide container and do not require selection\n      console.warn('SDK initialization failed:', data.type);\n      break;\n    case 'hts-validated':\n      // Enable/disable your proceed control based on data.isValid\n      setProceedEnabled(data.isValid);\n      break;\n  }\n});\n```\n\n### Key Event Payloads\n\n#### `hts-option-selected`\n\n```json\n{\n  \"type\": \"hts-option-selected\",\n  \"product\": \"flights-disruption\",\n  \"data\": {\n    \"attached\": true,\n    \"selected\": \"0018868d-652f-4134-b094-a37ebb651f1a\",\n    \"offer\": {\n      \"offerId\": \"0018868d-652f-4134-b094-a37ebb651f1a\",\n      \"premium\": \"48.00\",\n      \"currency\": \"USD\",\n      \"coveragePercentage\": \"100\"\n    }\n  }\n}\n```\n\nWhen `attached` is `false`, the user declined the offer.\n\n#### `hts-initialization-failed`\n\n```json\n{\n  \"type\": \"hts-initialization-failed\",\n  \"product\": \"flights-disruption\",\n  \"data\": {\n    \"type\": \"unsupported_locale\",\n    \"locale\": \"ja\"\n  }\n}\n```\n\nFired when the app cannot initialize due to a precondition failure. The widget will not render. Currently the only failure type is `unsupported_locale`, indicating the tenant is configured to reject unsupported locales rather than falling back to English.\n\n#### `hts-validated`\n\nTells you whether it is safe to proceed to checkout. Use it to enable/disable your proceed/checkout control.\n\n**When it fires.** `hts-validated` is not emitted on load — this event stays quiet until you opt in (other widget events still fire as normal). It starts emitting the first time either you send an `hts-validate` ingress event (e.g. when the customer attempts to proceed), or you set the `validate` attribute/parameter on the component (see the Component Attributes / Iframe Parameters tables below). From then on it emits the **current** `isValid` whenever the value changes (this automatic stream is de-duplicated). In addition, **every `hts-validate` you send always responds with a fresh `hts-validated`** carrying the current validity — even when it hasn't changed — so you can re-query readiness at any time; that ingress also re-shows the in-widget \"selection required\" prompt.\n\n```json\n{\n  \"type\": \"hts-validated\",\n  \"product\": \"flights-disruption\",\n  \"data\": { \"isValid\": false }\n}\n```\n\n**How to interpret `isValid`:** Treat `isValid: false` as \"disable proceed,\" **not** \"show an error.\" If you want a checkout-readiness signal at load without any customer action, set `validate`; the first `hts-validated` then reflects the offer's selection mode (a forced-choice widget starts `isValid: false`; one that permits no selection starts `isValid: true`). Otherwise drive validation from the proceed attempt: send `hts-validate` and read the resulting `hts-validated`. Surface validation messaging only at the proceed attempt (`hts-validate` and/or your own copy).\n\n## Component Attributes\n\nWhen using the web component, customizations are set as **kebab-case** attributes on the custom element.\n\n| Attribute            | Type   | Description                                              |\n| -------------------- | ------ | ------------------------------------------------------- |\n| `selected`           | string | Pre-select an option (`none`, or an offer id)           |\n| `validate`      | boolean | Emit `hts-validated` (current validity) as soon as this attribute is set — on load or later — instead of staying silent until the first `hts-validate`. Default `false`. |\n| `rewards-type`       | string | Override rewards type                                   |\n| `rewards-conversion` | string | Override rewards conversion                             |\n| `entry-point`        | string | The placement the widget is shown in; adjusts UI & copy |\n\n```html\n<hts-flights-disruption-merchandising\n  selected=\"none\"\n  rewards-type=\"miles\"\n  rewards-conversion=\"100\"\n  entry-point=\"postbooking\"\n></hts-flights-disruption-merchandising>\n\n<!-- Pre-select a specific offer -->\n<hts-flights-disruption-merchandising selected=\"0018868d-...\"></hts-flights-disruption-merchandising>\n```\n\n## Iframe Parameters\n\nWhen using iframe integration, the same customizations are supplied as **camelCase** query parameters on the merchandising URL. See the _Iframe Integration (Alternative)_ section below for the embed snippet.\n\n| Parameter           | Type   | Description                                              |\n| ------------------- | ------ | ------------------------------------------------------- |\n| `selected`          | string | Pre-select an option (`none`, or an offer id)           |\n| `validate`      | boolean | Emit `hts-validated` (current validity) from load instead of staying silent until the first `hts-validate`. Default `false`. |\n| `rewardsType`       | string | Override rewards type                                   |\n| `rewardsConversion` | string | Override rewards conversion                             |\n| `entryPoint`        | string | The placement the widget is shown in; adjusts UI & copy |\n\n## Iframe Integration (Alternative)\n\nFor partners who prefer iframe-based integration, use the `merchandising_url` from the create offer response:\n\n```html\n<iframe\n  src=\"{{MERCHANDISING_URL}}\"\n  style=\"width: 100%; border: none; height: 400px;\">\n</iframe>\n```\n\nUse the `hts-dimension` event to adjust iframe height dynamically.\n\n## Loading Tolerance\n\nIf the `hts-initialized` event is not received within a reasonable tolerance period after embedding the SDK, the hosting application should hide the widget and not require forced selection. This prevents user experience degradation if the SDK fails to load.\n\n## Styling and Theming\n\nThe SDK renders in Shadow DOM with partner-specific themes applied automatically based on your `partnerId`. Internal component styling cannot be overridden due to Shadow DOM encapsulation. Contact HTS if you need theme customization.\n\n## Security Considerations\n\n- **Origin Verification**: Always verify `event.origin` when handling postMessage events\n- **HTTPS Only**: Always use HTTPS URLs in production\n- **CSP Headers**: Ensure your Content Security Policy allows loading scripts from `hts.hopper.com`\n\n## Alternative: Merchandising Contents API\n\nPartners who cannot embed the widget can use the **Create Offer Merchandising Contents** endpoint to retrieve product copy and messaging as JSON. This approach requires the partner to build their own UI while using HTS-provided content.\n"
    },
    {
      "name": "Contract Management",
      "description": "Endpoints for managing the lifecycle of contracts after purchase, including creation, confirmation, retrieval, search, and cancellation."
    },
    {
      "name": "Partner Manual Exercise",
      "description": "For cases where self-service tooling is not functioning properly, either due to a disruption that was not automatically identified by HTS, or an exercise that needs to occur outside of our tooling (like a payout to a different payment method than used for purchase, or a rebooking that was done directly with the GDS)."
    },
    {
      "name": "HTS Self-Service Exercise",
      "description": "The partner utilizes the HTS frontend to handle 100% of the exercise experience end to end."
    },
    {
      "name": "Partner Self-Service Exercise",
      "description": "For cases where the partner-owned frontend handles the orchestration of the self-service exercise, and HTS provides the backend logic to expose rebooking options, refund breakdowns, and actually fulfill the exercise."
    },
    {
      "name": "Flight Status Updates",
      "description": "Endpoints for partners to notify HTS of changes to a flight's status, such as delays or cancellations, so HTS can identify affected contracts and trigger the appropriate disruption flows."
    },
    {
      "name": "Analytics",
      "description": "Endpoints for tracking events and analytics data."
    },
    {
      "name": "Partner Endpoints",
      "description": "Endpoints that partners must implement and that HTS calls on-demand."
    }
  ],
  "servers": [
    {
      "url": "https://fintech.htsapis.com/flights-dafar/v2",
      "description": "Production"
    },
    {
      "url": "https://fintech.staging.htsapis.com/flights-dafar/v2",
      "description": "Staging"
    }
  ],
  "paths": {
    "/offers": {
      "post": {
        "tags": [
          "Offer & Merchandising"
        ],
        "summary": "Create Offers",
        "description": "Create offers for a customer's itinerary.",
        "operationId": "postOffers",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_offers_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Offers generated for a given itinerary. There will be at least one type of offer returned. If no offers are available, a 204 No Content will be returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers_eligible"
                }
              }
            }
          },
          "204": {
            "description": "No offers available for the itinerary"
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_create_offers_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/offers/price": {
      "post": {
        "tags": [
          "Offer & Merchandising"
        ],
        "summary": "Price Offers",
        "description": "Price offers for a customer's itinerary.",
        "operationId": "postOffersPrice",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/price_offers_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Offers priced for a given itinerary. There will be at least one type of offer returned. If no offers are available, a 204 No Content will be returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers_eligible"
                }
              }
            }
          },
          "204": {
            "description": "No offers available for the itinerary"
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_price_offers_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/offers/{id}": {
      "get": {
        "tags": [
          "Offer & Merchandising"
        ],
        "summary": "Get Offer",
        "description": "Get an offer.",
        "operationId": "getOffersId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for an offer.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The offer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/dafar_offer"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/merchandising_contents": {
      "put": {
        "tags": [
          "Offer & Merchandising"
        ],
        "summary": "Create Offer Merchandising Contents",
        "description": "Create the merchandising contents for the given product offer(s). This endpoint should be used when the partner is not embedding the merchandising widget provided by HTS in their booking flow. The response will be a customized set of keys, determined during integration, which map to product copy in the provided locale.",
        "operationId": "putMerchandising_contents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/merchandising_contents_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The offers' merchandising contents",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/merchandising_contents"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/merchandising_urls": {
      "post": {
        "tags": [
          "Offer & Merchandising"
        ],
        "summary": "Create Merchandising URL",
        "description": "Create a merchandising URL for offers a partner already has. The offer ids must come from one Create Offers or Price Offers response.",
        "operationId": "postMerchandising_urls",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_merchandising_url_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The merchandising URL",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/create_merchandising_url_response"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_create_merchandising_url_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts": {
      "post": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Create Draft Contract",
        "description": "Create a draft contract for a customer's chosen offer.\n\nHTS uses an external payment gateway to tokenize payment cards as well as process payments and payouts.\nWhen HTS is the Merchant of Record (MOR) for the purchase of the order or remitting any product payout to a customer's credit card, HTS requires a tokenized credit card to be present in the `payments` array in the request below.\n\n<details>\n<summary>Expand this section for instructions about testing and Spreedly integration.</summary>\n\nThe returned payment method token **MxyYEhDK12CUAA18bJDkAq0ab3y** (from the sample response below) should be passed in the `payment_card` type with a `token` identifier as a part of the `payments` array in the request below.\n\nWhen using the staging environment, make sure to use one of [Adyen's test credit card numbers](https://docs.adyen.com/development-resources/testing/test-card-numbers).\n\n**Tokenization URL**: `https://core.spreedly.com/v1/payment_methods.json`\n\n- Documentation: [Spreedly API docs](https://developer.spreedly.com/reference/create-payment-method)\n\n**Example Tokenization Request**:\n\n```\ncurl --request POST --url https://core.spreedly.com/v1/payment_methods.json --header 'content-type: application/json' -u  \"login:password\" --data '{\n\t\"payment_method\": {\n\t\t\"email\": \"aaa@bbb.com\",\n\t\t\"credit_card\": {\n\t\t\t\"number\": \"4000020000000000\",\n\t\t\t\"month\": \"03\",\n\t\t\t\"year\": \"2030\",\n\t\t\t\"first_name\": \"John\",\n\t\t\t\"last_name\": \"Smith\",\n\t\t\t\"address1\": \"123 12th St\",\n\t\t\t\"address2\": \"Building B\",\n\t\t\t\"city\": \"Boston\",\n\t\t\t\"state\": \"MA\",\n\t\t\t\"zip\": \"02121\",\n\t\t\t\"country\": \"US\",\n\t\t\t\"verification_value\": \"737\"\n\t\t}\n\t}\n}'\n```\n**Example Tokenization Response**:\n```\n{\n\t\"transaction\": {\n\t\t\"token\": \"KtToV20m9qT1Yi8pbTeLNz0Ypns\",\n\t\t\"created_at\": \"2023-11-29T13:31:56Z\",\n\t\t\"updated_at\": \"2023-11-29T13:31:56Z\",\n\t\t\"succeeded\": true,\n\t\t\"transaction_type\": \"AddPaymentMethod\",\n\t\t\"retained\": false,\n\t\t\"state\": \"succeeded\",\n\t\t\"message_key\": \"messages.transaction_succeeded\",\n\t\t\"message\": \"Succeeded!\",\n\t\t\"payment_method\": {\n\t\t\t\"token\": \"MxyYEhDK12CUAA18bJDkAq0ab3y\",\n\t\t\t\"created_at\": \"2023-11-29T13:31:56Z\",\n\t\t\t\"updated_at\": \"2023-11-29T13:31:56Z\",\n\t\t\t\"email\": \"aaa@bbb.com\",\n\t\t\t\"data\": null,\n\t\t\t\"storage_state\": \"cached\",\n\t\t\t\"test\": true,\n\t\t\t\"metadata\": null,\n\t\t\t\"callback_url\": null,\n            \"last_four_digits\": \"0000\",\n            \"first_six_digits\": \"400002\",\n\t\t\t\"card_type\": \"visa\",\n\t\t\t\"first_name\": \"John\",\n\t\t\t\"last_name\": \"Smith\",\n\t\t\t\"month\": 3,\n\t\t\t\"year\": 2030,\n\t\t\t\"address1\": \"123 12th St\",\n\t\t\t\"address2\": \"Building B\",\n            \"city\": \"Boston\",\n            \"state\": \"MA\",\n            \"zip\": \"02121\",\n            \"country\": \"US\",\n\t\t\t\"phone_number\": null,\n\t\t\t\"company\": null,\n\t\t\t\"full_name\": \"John Smith\",\n\t\t\t\"eligible_for_card_updater\": true,\n\t\t\t\"shipping_address1\": null,\n\t\t\t\"shipping_address2\": null,\n\t\t\t\"shipping_city\": null,\n\t\t\t\"shipping_state\": null,\n\t\t\t\"shipping_zip\": null,\n\t\t\t\"shipping_country\": null,\n\t\t\t\"shipping_phone_number\": null,\n\t\t\t\"issuer_identification_number\": \"40000200\",\n\t\t\t\"click_to_pay\": false,\n\t\t\t\"managed\": true,\n\t\t\t\"payment_method_type\": \"credit_card\",\n\t\t\t\"errors\": [],\n\t\t\t\"bin_metadata\": {\n\t\t\t\t\"message\": \"BIN Metadata is available only to Advanced Vault enrolled customers and payment methods. Reach out to your account representative for more details.\"\n\t\t\t},\n\t\t\t\"fingerprint\": \"7ccffcf38900f224fc946cf2a9c8e260072b\",\n\t\t\t\"verification_value\": \"XXX\",\n\t\t\t\"number\": \"XXXX-XXXX-XXXX-0000\"\n\t\t}\n\t}\n}\n```\n</details>\n",
        "operationId": "postContracts",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Unique key that makes resource creation idempotent. Send the same value when retrying a request to avoid creating duplicate resources. Send a new key to create a new resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "d96b9fde-b3d5-4a92-b557-332d3c0f7df0"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_draft_contract_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The created contract",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/dafar_contract"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_create_draft_contract_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/confirm": {
      "put": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Confirm Contract",
        "description": "Confirm a contract. If HTS is merchant of record, the price is first captured before confirming.",
        "operationId": "putContractsIdConfirm",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/confirm_contract_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_confirm_contract_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}": {
      "get": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Get Contract",
        "description": "Get a contract.",
        "operationId": "getContractsId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The contract",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/dafar_contract"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/status_history": {
      "get": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Get Contract Status History",
        "description": "Get the history of status events for a contract.",
        "operationId": "getContractsIdStatus_history",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The contract's status event history",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/dafar_contract_status_history"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/search": {
      "post": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Search Contracts",
        "description": "Search contracts.",
        "operationId": "postContractsSearch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/search_contracts_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The contracts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/search_contracts_response"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/exercise": {
      "put": {
        "tags": [
          "Partner Manual Exercise"
        ],
        "summary": "Exercise a Contract",
        "description": "\nMark a contract as exercised with the supplied payouts.\nThis should only be used in cases where a customer could not exercise their contract via the standard flow.\nThe partner can perform the exercise and inform HTS of the action.\n",
        "operationId": "putContractsIdExercise",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/exercise_contract_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_exercise_contract_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/void": {
      "put": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Void Contract",
        "description": "Voiding a contract results in the customer being refunded the total price of the product. This should be used when the itinerary associated with the contracts is canceled within the void window.",
        "operationId": "putContractsIdVoid",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/void_contract_request"
              }
            }
          },
          "required": false
        },
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_void_contract_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/cancel": {
      "put": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Cancel Contract",
        "description": "Canceling a contract *does not* result in the customer being refunded the total price of the product. This should be used when the itinerary associated with the contracts is canceled outside of the void window.",
        "operationId": "putContractsIdCancel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/cancel_contract_request"
              }
            }
          },
          "required": false
        },
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_cancel_contract_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/contact_info": {
      "put": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Update Contact Info",
        "description": "Replace the customer contact info (email, phone number, additional email-only notification recipients, and the primary booker's SMS/push notification preferences) on an existing contract. Send the full contact info; it replaces the stored set. This endpoint never sends notifications — recording SMS/push consent does not trigger delivery, and a request that enables SMS without a phone number is rejected as invalid; verifying the change is the partner's responsibility. The email address is validated the same way as during contract creation; an invalid address returns InvalidEmail. Allowed once the contract is confirmed, including fully-redeemed contracts; rejected for unconfirmed drafts and for voided or concluded contracts, which return InvalidContractStatus.",
        "operationId": "putContractsIdContact_info",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contact_info"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_update_contact_info_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/exercise_eligible": {
      "put": {
        "tags": [
          "Partner Manual Exercise"
        ],
        "summary": "Mark Contract as Exercise Eligible",
        "description": "Mark a contract as eligible for exercise, bypassing standard eligibility checks.",
        "operationId": "putContractsIdExercise_eligible",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contract_exercise_eligible_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_contract_exercise_eligible_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/exercise_url": {
      "post": {
        "tags": [
          "HTS Self-Service Exercise"
        ],
        "summary": "Create an Exercise URL",
        "description": "Create a link to the self serve exercise portal, which provides customers the ability to exercise their product.",
        "operationId": "postContractsIdExercise_url",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/exercise_url"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/exercise_quotes": {
      "post": {
        "tags": [
          "Partner Self-Service Exercise"
        ],
        "summary": "Create DAFAR Exercise Quote",
        "description": "Create DAFAR exercise quote",
        "operationId": "postContractsIdExercise_quotes",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/dafar_exercise_quote"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_create_flights_exercise_quote_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/exercise_quotes/{id}/fulfill": {
      "put": {
        "tags": [
          "Partner Self-Service Exercise"
        ],
        "summary": "Fulfill DAFAR Exercise Quote",
        "description": "Fulfill an exercise quote. When applicable, HTS will payout the exercise amount to the user.",
        "operationId": "putExercise_quotesIdFulfill",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for an exercise quote.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/rebook_eligibility": {
      "get": {
        "tags": [
          "Partner Self-Service Exercise"
        ],
        "summary": "Get Rebook Eligibility",
        "description": "Check whether a contract's segments are eligible for rebook due to a disruption. Each rebook-eligible segment's rebook_eligibility carries search_criteria (nearby airports and the departure date window), so partners sourcing their own inventory can match HTS's search.",
        "operationId": "getContractsIdRebook_eligibility",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The rebook eligibility details for the contract",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rebook_eligibility_response"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_rebook_eligibility_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/flight_shops": {
      "post": {
        "tags": [
          "Partner Self-Service Exercise"
        ],
        "summary": "Create Flight Shop",
        "description": "Create a flight shop to find available rebook itineraries for a disrupted contract. Identify the segment to rebook with segment_id from the rebook eligibility response. By default HTS sources and filters the inventory. Partners that push their own inventory send inventory_source.type=partner_supplied with raw_itineraries; HTS then applies the same eligibility, filtering, and ranking to the supplied itineraries. Partner-supplied mode is gated per tenant.",
        "operationId": "postContractsIdFlight_shops",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_flight_shop_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Available rebook itineraries. If no flights are available, a 204 No Content will be returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/available"
                }
              }
            }
          },
          "204": {
            "description": "No rebook flights available"
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_flight_shop_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/itineraries/{itinerary_id}": {
      "get": {
        "tags": [
          "Partner Self-Service Exercise"
        ],
        "summary": "Get Fare Details",
        "description": "Get detailed fare information for an itinerary from the contract's flight shop.",
        "operationId": "getContractsIdItinerariesItinerary_id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itinerary_id",
            "in": "path",
            "description": "A unique identifier for an itinerary.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The fare details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fare_details_response"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/contracts/{id}/flight_price_quotes": {
      "post": {
        "tags": [
          "Partner Self-Service Exercise"
        ],
        "summary": "Create Flight Price Quote",
        "description": "Create a price quote for a selected rebook itinerary from the contract's flight shop.",
        "operationId": "postContractsIdFlight_price_quotes",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_flight_price_quote_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The created price quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/flight_price_quote"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_flight_price_quote_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/flight_bookings": {
      "post": {
        "tags": [
          "Partner Self-Service Exercise"
        ],
        "summary": "Create Flight Booking",
        "description": "Create a flight booking from a price quote. HTS derives how the booking is fulfilled from the price quote: for an HTS-issued quote HTS issues the ticket asynchronously and the partner polls for status; for a partner-supplied quote the partner has already issued the ticket and supplies a partner_booking_reference, which HTS records as the redemption against the contract instead of issuing a ticket. Partner-supplied inventory is gated per tenant.",
        "operationId": "postFlight_bookings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_flight_booking_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The created flight booking",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/flight_booking"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_dafar_flight_booking_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/flight_bookings/{id}": {
      "get": {
        "tags": [
          "Partner Self-Service Exercise"
        ],
        "summary": "Get Flight Booking",
        "description": "Get the status of a flight booking.",
        "operationId": "getFlight_bookingsId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a flight booking.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The flight booking",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/flight_booking"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/flight_status_updates": {
      "post": {
        "tags": [
          "Flight Status Updates"
        ],
        "summary": "Publish Flight Status Update",
        "description": "Notify HTS that a flight's status has changed, such as a delay or a cancellation. HTS uses the notification to identify affected contracts and trigger the appropriate disruption flows.",
        "operationId": "postFlight_status_updates",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/flight_status_update_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "The flight status update has been accepted for processing."
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unprocessable_entity_flight_status_update_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/events": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "summary": "Create Event",
        "description": "Create a new event for the provided session.",
        "operationId": "postEvents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/dafar_create_event"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "The event has been successfully created"
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The client could not be authenticated"
          },
          "403": {
            "description": "The authenticated client does not have permission to call this endpoint"
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/get_booking": {
      "get": {
        "tags": [
          "Partner Endpoints"
        ],
        "summary": "Get Booking",
        "description": "Called by HTS to retrieve the current state of a flight booking from the partner system.\n\nHTS provides the booking references stored on the contract as query parameters. These references\nare partner-defined key/value pairs (e.g. record locator, order ID) established during contract creation.\n\nThe recommended response includes:\n- **Booking status** — the current status of the booking (e.g. confirmed, cancelled, voided, pending, checked_in, no_show). Partners may use their own status values; HTS will accept and translate them.\n- **Itinerary** — flight slices with segments (origin, destination, departure/arrival times, carrier, flight number, cabin), fare brand, passengers with per-passenger fare amounts, and ancillaries\n- **Currency** — ISO 4217 currency code for all monetary amounts\n- **Booking references** — the same key/value pairs used to identify the booking\n- **Void eligibility** — whether the booking can still be voided (allowed, not_allowed, or allowed_until with an ISO 8601 timestamp)\n- **Payment transactions** — amounts, timestamps, transaction types (credit/debit), and payment methods\n- **Created at** — ISO 8601 timestamp of when the booking was originally created\n\nPartner implementations may vary in structure and fields returned. HTS is designed to handle\nthese variations gracefully.",
        "operationId": "get_booking",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/get_booking_response"
                }
              }
            }
          },
          "400": {
            "description": "Syntactic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource could not be found"
          },
          "422": {
            "description": "Semantic errors were encountered while handling the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/error"
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        }
      }
    }
  },
  "webhooks": {
    "contract_confirmed": {
      "post": {
        "summary": "Contract Confirmed",
        "description": "Sent when a DAFAR contract is successfully purchased and confirmed.",
        "operationId": "contract_confirmed",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contract_confirmed_webhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Acknowledged successfully."
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a given amount of time"
          },
          "500": {
            "description": "The server encountered an internal error"
          },
          "503": {
            "description": "The server is overloaded or undergoing maintenance"
          }
        }
      }
    },
    "contract_exercise_eligible": {
      "post": {
        "summary": "Contract Exercise Eligible",
        "description": "Sent when a contract becomes eligible for exercise due to a qualifying disruption event.",
        "operationId": "contract_exercise_eligible",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contract_exercise_eligible_webhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Acknowledged successfully."
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a given amount of time"
          },
          "500": {
            "description": "The server encountered an internal error"
          },
          "503": {
            "description": "The server is overloaded or undergoing maintenance"
          }
        }
      }
    },
    "contract_exercised": {
      "post": {
        "summary": "Contract Exercised",
        "description": "Sent when a customer has successfully exercised their DAFAR contract.",
        "operationId": "contract_exercised",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contract_exercised_webhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Acknowledged successfully."
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a given amount of time"
          },
          "500": {
            "description": "The server encountered an internal error"
          },
          "503": {
            "description": "The server is overloaded or undergoing maintenance"
          }
        }
      }
    },
    "contract_canceled": {
      "post": {
        "summary": "Contract Canceled",
        "description": "Sent when a DAFAR contract is canceled.",
        "operationId": "contract_canceled",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contract_canceled_webhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Acknowledged successfully."
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a given amount of time"
          },
          "500": {
            "description": "The server encountered an internal error"
          },
          "503": {
            "description": "The server is overloaded or undergoing maintenance"
          }
        }
      }
    },
    "contract_expired": {
      "post": {
        "summary": "Contract Expired",
        "description": "Sent when a DAFAR contract expires without being exercised.",
        "operationId": "contract_expired",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contract_expired_webhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Acknowledged successfully."
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a given amount of time"
          },
          "500": {
            "description": "The server encountered an internal error"
          },
          "503": {
            "description": "The server is overloaded or undergoing maintenance"
          }
        }
      }
    },
    "contract_voided": {
      "post": {
        "summary": "Contract Voided",
        "description": "Sent when a DAFAR contract is voided.",
        "operationId": "contract_voided",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contract_voided_webhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Acknowledged successfully."
          },
          "400": {
            "description": "Invalid value for: body",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a given amount of time"
          },
          "500": {
            "description": "The server encountered an internal error"
          },
          "503": {
            "description": "The server is overloaded or undergoing maintenance"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "additional_contact_info": {
        "title": "additional_contact_info",
        "description": "An additional recipient to notify about this purchase, such as flight disruption alerts, reminders, and exercise confirmations. Additional recipients receive notifications only; they are never used for sign-in, one-time passcodes, or receipts.",
        "type": "object",
        "properties": {
          "email_address": {
            "$ref": "#/components/schemas/literal1"
          },
          "phone_number": {
            "description": "SMS notifications are not currently supported; a request that includes a phone number is rejected.",
            "type": "string",
            "pattern": "^\\+[1-9][0-9]{1,14}$"
          }
        }
      },
      "agent": {
        "title": "agent",
        "description": "The agent operating the session. Expected from every agent portal integration.",
        "type": "object",
        "required": [
          "id",
          "account_created_at",
          "verification_status"
        ],
        "properties": {
          "id": {
            "description": "The ID of the agent.",
            "examples": [
              "a420c244-06c0-40cf-b004-a1f390f069cc"
            ],
            "type": "string",
            "minLength": 1
          },
          "account_created_at": {
            "description": "When the agent's account was created in the partner's system, in UTC.",
            "examples": [
              "2026-08-14T09:31:00Z"
            ],
            "type": "string",
            "format": "date-time"
          },
          "verification_status": {
            "$ref": "#/components/schemas/verification_status"
          }
        }
      },
      "agent_reseller": {
        "title": "agent_reseller",
        "description": "The partner's channel that is interacting with the API.",
        "type": "object",
        "required": [
          "agency_id",
          "agent",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "agent_reseller",
            "description": "value: `agent_reseller`"
          },
          "agency_id": {
            "description": "The ID of the agency.",
            "examples": [
              "858695eb-db27-406a-b9dd-a76af17b7d1c"
            ],
            "type": "string",
            "minLength": 1
          },
          "agent": {
            "$ref": "#/components/schemas/agent"
          }
        }
      },
      "allowed": {
        "title": "allowed",
        "description": "Voiding is allowed with no known expiration.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "allowed",
            "description": "value: `allowed`"
          }
        }
      },
      "allowed1": {
        "title": "allowed",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "allowed",
            "description": "value: `allowed`"
          }
        }
      },
      "allowed_for": {
        "title": "allowed_for",
        "description": "Voiding is allowed for a specific duration after booking.",
        "type": "object",
        "required": [
          "duration",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "allowed_for",
            "description": "value: `allowed_for`"
          },
          "duration": {
            "description": "The duration after booking during which the booking can be voided, as an ISO 8601 duration.",
            "examples": [
              "PT24H"
            ],
            "type": "string"
          }
        }
      },
      "allowed_until": {
        "title": "allowed_until",
        "description": "Voiding is allowed until a specific point in time.",
        "type": "object",
        "required": [
          "expires_at",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "allowed_until",
            "description": "value: `allowed_until`"
          },
          "expires_at": {
            "description": "The point in time until which the booking can be voided, as a UTC RFC3339 formatted datetime.",
            "examples": [
              "2025-07-13T12:00:00Z"
            ],
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "allowed_until1": {
        "title": "allowed_until",
        "description": "Booking can be voided until the specified ISO 8601 timestamp.",
        "type": "object",
        "required": [
          "expires_at",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "allowed_until",
            "description": "value: `allowed_until`"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "alternate_payment_method": {
        "title": "alternate_payment_method",
        "type": "object",
        "required": [
          "amount",
          "method",
          "type"
        ],
        "properties": {
          "type": {
            "description": "A payment that cannot be tokenized. eg: ApplePay.",
            "examples": [
              "alternate_payment_method"
            ],
            "type": "string",
            "const": "alternate_payment_method"
          },
          "amount": {
            "examples": [
              "173.24"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          },
          "method": {
            "$ref": "#/components/schemas/method"
          }
        }
      },
      "ancillary": {
        "title": "ancillary",
        "type": "object",
        "required": [
          "amount",
          "code"
        ],
        "properties": {
          "amount": {
            "description": "Total price of the ancillary.",
            "examples": [
              "20.55"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          },
          "code": {
            "description": "Code of the ancillary in the PNR/Order, e.g. the SSR code XBAG for an extra checked baggage. The mapping table of code => ancillary type, and whether the ancillary is covered or not, is configured on the HTS side. It's important to use the same value as in the PNR/Order since it's used by HTS for various flow, e.g. validating and updating a CFAR or DAFAR payout amount.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "ancillary1": {
        "title": "ancillary",
        "description": "An ancillary purchase.",
        "type": "object",
        "required": [
          "amount",
          "code"
        ],
        "properties": {
          "amount": {
            "description": "Monetary amount of the ancillary.",
            "examples": [
              "25.00"
            ],
            "type": "string",
            "minimum": 0
          },
          "code": {
            "description": "Code identifying the type of ancillary.",
            "type": "string"
          }
        }
      },
      "ancillary_itinerary": {
        "title": "ancillary_itinerary",
        "description": "Itinerary for which to create offers.",
        "type": "object",
        "required": [
          "slices",
          "ancillaries",
          "passengers"
        ],
        "properties": {
          "slices": {
            "description": "List of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/itinerary_slice"
            }
          },
          "ancillaries": {
            "description": "Ancillaries attached to the itinerary which will be covered by the product and their prices. In the case of a split itinerary the payout amount of these ancillaries will be evenly distributed amongst the passengers.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ancillary"
            }
          },
          "passengers": {
            "description": "List of passengers on the itinerary.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/itinerary_passenger"
            }
          }
        }
      },
      "and": {
        "title": "and",
        "type": "object",
        "required": [
          "filters",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "and",
            "description": "value: `and`"
          },
          "filters": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/composable_filter"
            }
          }
        }
      },
      "api": {
        "title": "api",
        "description": "The partner's channel that is interacting with the API.",
        "type": "object",
        "required": [
          "client",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "api",
            "description": "value: `api`"
          },
          "client": {
            "description": "The client name of the API.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "apple_pay": {
        "title": "apple_pay",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "apple_pay",
            "description": "value: `apple_pay`"
          }
        }
      },
      "available": {
        "title": "available",
        "type": "object",
        "required": [
          "expires_at",
          "itineraries"
        ],
        "properties": {
          "expires_at": {
            "description": "Date and time at which the shop results expire, as a UTC RFC3339 formatted datetime.",
            "examples": [
              "2024-06-15T15:00:00Z"
            ],
            "type": "string",
            "format": "date-time"
          },
          "itineraries": {
            "description": "Available itineraries for rebook.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/shopped_itinerary"
            }
          }
        }
      },
      "billing_info": {
        "title": "billing_info",
        "description": "Billing information of the user buying the product(s). Required if HTS is merchant of record.",
        "type": "object",
        "required": [
          "first_name",
          "last_name",
          "street_address",
          "city",
          "state_province",
          "postal_code",
          "country"
        ],
        "properties": {
          "first_name": {
            "description": "First name of the customer.",
            "type": "string",
            "minLength": 1
          },
          "last_name": {
            "description": "Last name of the customer.",
            "type": "string",
            "minLength": 1
          },
          "street_address": {
            "description": "Street address of the customer billing address.",
            "type": "string",
            "minLength": 1
          },
          "city": {
            "description": "City of the customer billing address.",
            "type": "string",
            "minLength": 1
          },
          "state_province": {
            "description": "State or province of the customer billing address.",
            "type": "string",
            "minLength": 1
          },
          "postal_code": {
            "description": "Postal code of the customer billing address.",
            "type": "string",
            "minLength": 1
          },
          "country": {
            "description": "Country of the customer billing address.",
            "examples": [
              "US"
            ],
            "type": "string",
            "pattern": "[A-Z]{2}"
          }
        }
      },
      "billing_jurisdiction": {
        "title": "billing_jurisdiction",
        "type": "object",
        "properties": {
          "country": {
            "description": "Country of the customer billing address. 2 uppercase letter ISO country code.",
            "examples": [
              "US"
            ],
            "type": "string",
            "pattern": "[A-Z]{2}"
          },
          "state_province": {
            "description": "State or province of the customer billing address.",
            "type": "string",
            "minLength": 1
          },
          "city": {
            "description": "City of the customer billing address.",
            "type": "string",
            "minLength": 1
          },
          "postal_code": {
            "description": "Postal code of the customer billing address.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "booking_confirmed": {
        "title": "booking_confirmed",
        "description": "Triggered when a booking is confirmed",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "booking_information_source",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "booking_confirmed",
            "description": "value: `booking_confirmed`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "booking_information_source": {
            "$ref": "#/components/schemas/booking_information_source"
          }
        }
      },
      "booking_failed": {
        "title": "booking_failed",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "booking_failed"
          }
        }
      },
      "booking_in_void_window": {
        "title": "booking_in_void_window",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "booking_in_void_window"
          }
        }
      },
      "booking_information_source": {
        "title": "booking_information_source",
        "description": "Source of booking information.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/from_booking_references"
          },
          {
            "$ref": "#/components/schemas/not_available"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "from_booking_references": "#/components/schemas/from_booking_references",
            "not_available": "#/components/schemas/not_available"
          }
        }
      },
      "booking_status": {
        "title": "booking_status",
        "description": "Current status of the booking as reported by the partner system. HTS will accept and translate partner-specific statuses.",
        "type": "string",
        "enum": [
          "confirmed",
          "canceled",
          "pending",
          "checked_in",
          "no_show",
          "voided"
        ]
      },
      "cabin": {
        "title": "cabin",
        "type": "string",
        "enum": [
          "economy",
          "premium_economy",
          "business",
          "first"
        ]
      },
      "cancel_contract_request": {
        "title": "cancel_contract_request",
        "type": "object",
        "required": [
          "reason"
        ],
        "properties": {
          "reason": {
            "$ref": "#/components/schemas/reason1"
          }
        }
      },
      "canceled": {
        "title": "canceled",
        "description": "The flight was canceled.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "canceled",
            "description": "value: `canceled`"
          }
        }
      },
      "canceled1": {
        "title": "canceled",
        "description": "The flight has been canceled.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "canceled",
            "description": "value: `canceled`"
          }
        }
      },
      "channel": {
        "title": "channel",
        "description": "Partner's channel that is interacting with the API.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/agent_reseller"
          },
          {
            "$ref": "#/components/schemas/api"
          },
          {
            "$ref": "#/components/schemas/direct"
          },
          {
            "$ref": "#/components/schemas/online_booking_tool"
          },
          {
            "$ref": "#/components/schemas/white_label"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "direct": "#/components/schemas/direct",
            "agent_reseller": "#/components/schemas/agent_reseller",
            "api": "#/components/schemas/api",
            "online_booking_tool": "#/components/schemas/online_booking_tool",
            "white_label": "#/components/schemas/white_label"
          }
        }
      },
      "chargeback": {
        "title": "chargeback",
        "description": "The customer initiated a chargeback with the payment provider.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "chargeback",
            "description": "value: `chargeback`"
          }
        }
      },
      "composable_filter": {
        "title": "composable_filter",
        "oneOf": [
          {
            "$ref": "#/components/schemas/field"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "field": "#/components/schemas/field"
          }
        }
      },
      "confirm_contract_request": {
        "title": "confirm_contract_request",
        "type": "object",
        "required": [
          "booking_references"
        ],
        "properties": {
          "booking_references": {
            "$ref": "#/components/schemas/map_string",
            "description": "Record locators if PSS, Order ID if OMS, etc. Used to retrieve the flight booking later. It's a dictionary of key/value pairs. The keys can be anything, but they are referenced in the configuration when retrieving the booking, so those must align."
          }
        }
      },
      "confirmed": {
        "title": "confirmed",
        "description": "The booking has been confirmed.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "confirmed",
            "description": "value: `confirmed`"
          }
        }
      },
      "confirmed_itinerary": {
        "title": "confirmed_itinerary",
        "description": "The new itinerary details.",
        "type": "object",
        "required": [
          "currency",
          "slices",
          "passengers",
          "booking_references"
        ],
        "properties": {
          "currency": {
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "slices": {
            "description": "List of slices of the itinerary; 1 (one way), 2 (round trip), or up to 10 (multi-destination) slices are allowed",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/itinerary_slice"
            }
          },
          "passengers": {
            "description": "List of passengers on the itinerary.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/confirmed_itinerary_passenger"
            }
          },
          "booking_references": {
            "$ref": "#/components/schemas/map_string"
          }
        }
      },
      "confirmed_itinerary_passenger": {
        "title": "confirmed_itinerary_passenger",
        "type": "object",
        "required": [
          "type",
          "fare_amount"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/passenger_type"
          },
          "fare_amount": {
            "description": "Total price of the fare for this passenger",
            "examples": [
              "140.56"
            ],
            "type": "string",
            "minimum": 0
          }
        }
      },
      "contact_info": {
        "title": "contact_info",
        "type": "object",
        "required": [
          "email_address"
        ],
        "properties": {
          "email_address": {
            "$ref": "#/components/schemas/email_address"
          },
          "phone_number": {
            "type": "string",
            "pattern": "^\\+[1-9][0-9]{1,14}$"
          },
          "additional_recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/additional_contact_info"
            }
          },
          "notification_preferences": {
            "$ref": "#/components/schemas/notification_preferences"
          }
        }
      },
      "contract_already_exercised": {
        "title": "contract_already_exercised",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_already_exercised"
          }
        }
      },
      "contract_already_exercised1": {
        "title": "contract_already_exercised",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_already_exercised"
          }
        }
      },
      "contract_canceled_webhook": {
        "title": "contract_canceled_webhook",
        "description": "Webhook sent when a DAFAR contract is canceled.",
        "type": "object",
        "required": [
          "id",
          "type",
          "occurred_at",
          "data"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this webhook event.",
            "type": "string"
          },
          "type": {
            "description": "The webhook event type: `fintech.flights.dafar.contract.canceled`",
            "type": "string",
            "enum": [
              "fintech.flights.dafar.contract.canceled"
            ]
          },
          "occurred_at": {
            "description": "Timestamp when the event occurred (ISO 8601).",
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "$ref": "#/components/schemas/contract_canceled_webhook_data"
          }
        }
      },
      "contract_canceled_webhook_data": {
        "title": "contract_canceled_webhook_data",
        "description": "The webhook payload.",
        "type": "object",
        "required": [
          "contract"
        ],
        "properties": {
          "contract": {
            "$ref": "#/components/schemas/dafar_contract",
            "description": "The canceled contract."
          }
        }
      },
      "contract_confirmed_webhook": {
        "title": "contract_confirmed_webhook",
        "description": "Webhook sent when a DAFAR contract is successfully purchased and confirmed.",
        "type": "object",
        "required": [
          "id",
          "type",
          "occurred_at",
          "data"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this webhook event.",
            "type": "string"
          },
          "type": {
            "description": "The webhook event type: `fintech.flights.dafar.contract.confirmed`",
            "type": "string",
            "enum": [
              "fintech.flights.dafar.contract.confirmed"
            ]
          },
          "occurred_at": {
            "description": "Timestamp when the event occurred (ISO 8601).",
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "$ref": "#/components/schemas/contract_confirmed_webhook_data"
          }
        }
      },
      "contract_confirmed_webhook_data": {
        "title": "contract_confirmed_webhook_data",
        "description": "The webhook payload.",
        "type": "object",
        "required": [
          "contract"
        ],
        "properties": {
          "contract": {
            "$ref": "#/components/schemas/dafar_contract",
            "description": "The confirmed contract."
          }
        }
      },
      "contract_exercise_eligible_error": {
        "title": "contract_exercise_eligible_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_contract_status4"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_contract_status": "#/components/schemas/invalid_contract_status4"
          }
        }
      },
      "contract_exercise_eligible_request": {
        "title": "contract_exercise_eligible_request",
        "type": "object",
        "required": [
          "reason"
        ],
        "properties": {
          "reason": {
            "$ref": "#/components/schemas/eligible_reason"
          }
        }
      },
      "contract_exercise_eligible_webhook": {
        "title": "contract_exercise_eligible_webhook",
        "description": "Webhook sent when a contract becomes eligible for exercise due to a qualifying disruption event.",
        "type": "object",
        "required": [
          "id",
          "type",
          "occurred_at",
          "data"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this webhook event.",
            "type": "string"
          },
          "type": {
            "description": "The webhook event type: `fintech.flights.dafar.contract.exercise_eligible`",
            "type": "string",
            "enum": [
              "fintech.flights.dafar.contract.exercise_eligible"
            ]
          },
          "occurred_at": {
            "description": "Timestamp when the event occurred (ISO 8601).",
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "$ref": "#/components/schemas/contract_exercise_eligible_webhook_data"
          }
        }
      },
      "contract_exercise_eligible_webhook_data": {
        "title": "contract_exercise_eligible_webhook_data",
        "description": "The webhook payload.",
        "type": "object",
        "required": [
          "contract",
          "disruption"
        ],
        "properties": {
          "contract": {
            "$ref": "#/components/schemas/dafar_contract",
            "description": "The contract that is now eligible for exercise."
          },
          "disruption": {
            "$ref": "#/components/schemas/disruption_event"
          }
        }
      },
      "contract_exercised_webhook": {
        "title": "contract_exercised_webhook",
        "description": "Webhook sent when a customer has successfully exercised their DAFAR contract.",
        "type": "object",
        "required": [
          "id",
          "type",
          "occurred_at",
          "data"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this webhook event.",
            "type": "string"
          },
          "type": {
            "description": "The webhook event type: `fintech.flights.dafar.contract.exercised`",
            "type": "string",
            "enum": [
              "fintech.flights.dafar.contract.exercised"
            ]
          },
          "occurred_at": {
            "description": "Timestamp when the event occurred (ISO 8601).",
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "$ref": "#/components/schemas/contract_exercised_webhook_data"
          }
        }
      },
      "contract_exercised_webhook_data": {
        "title": "contract_exercised_webhook_data",
        "description": "The webhook payload.",
        "type": "object",
        "required": [
          "contract",
          "exercise"
        ],
        "properties": {
          "contract": {
            "$ref": "#/components/schemas/dafar_contract",
            "description": "The exercised contract."
          },
          "exercise": {
            "$ref": "#/components/schemas/dafar_exercise",
            "description": "Details of how the contract was exercised."
          }
        }
      },
      "contract_expired": {
        "title": "contract_expired",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_expired"
          }
        }
      },
      "contract_expired1": {
        "title": "contract_expired",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_expired"
          }
        }
      },
      "contract_expired_webhook": {
        "title": "contract_expired_webhook",
        "description": "Webhook sent when a DAFAR contract expires without being exercised.",
        "type": "object",
        "required": [
          "id",
          "type",
          "occurred_at",
          "data"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this webhook event.",
            "type": "string"
          },
          "type": {
            "description": "The webhook event type: `fintech.flights.dafar.contract.expired`",
            "type": "string",
            "enum": [
              "fintech.flights.dafar.contract.expired"
            ]
          },
          "occurred_at": {
            "description": "Timestamp when the event occurred (ISO 8601).",
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "$ref": "#/components/schemas/contract_expired_webhook_data"
          }
        }
      },
      "contract_expired_webhook_data": {
        "title": "contract_expired_webhook_data",
        "description": "The webhook payload.",
        "type": "object",
        "required": [
          "contract"
        ],
        "properties": {
          "contract": {
            "$ref": "#/components/schemas/dafar_contract",
            "description": "The expired contract."
          }
        }
      },
      "contract_itinerary": {
        "title": "contract_itinerary",
        "description": "The trip as purchased, with each slice's exercise eligibility and each segment's rebook eligibility and disruption. It doesn't change after a rebook; the rebooked flights are in that rebook's exercise. Populated on Get Contract and the contract webhooks; absent on Create Contract.",
        "type": "object",
        "required": [
          "slices"
        ],
        "properties": {
          "slices": {
            "description": "The slices of the trip as purchased, in purchase order.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/contract_itinerary_slice"
            }
          }
        }
      },
      "contract_itinerary_segment": {
        "title": "contract_itinerary_segment",
        "type": "object",
        "required": [
          "id",
          "origin_airport",
          "destination_airport",
          "departure_date_time",
          "arrival_date_time",
          "cabin",
          "marketing_carrier_code",
          "marketing_flight_number",
          "rebook_eligibility"
        ],
        "properties": {
          "id": {
            "description": "Base64-encoded string of \"<slice_index>:<segment_index>\", both zero-based. The encoding is padded, so some ids end in `=`; treat the id as an opaque string.",
            "examples": [
              "MDow"
            ],
            "type": "string"
          },
          "origin_airport": {
            "description": "IATA airport code of origin.",
            "examples": [
              "YUL"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination_airport": {
            "description": "IATA airport code of destination.",
            "examples": [
              "SFO"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date_time": {
            "description": "Local date and time of departure, in ISO 8601 format.",
            "examples": [
              "2026-11-15T08:00"
            ],
            "type": "string"
          },
          "arrival_date_time": {
            "description": "Local date and time of arrival, in ISO 8601 format.",
            "examples": [
              "2026-11-15T11:15"
            ],
            "type": "string"
          },
          "cabin": {
            "$ref": "#/components/schemas/cabin",
            "description": "Cabin of the segment.",
            "examples": [
              "Economy"
            ]
          },
          "reservation_booking_designator": {
            "description": "Reservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. `Y`, `B`, `M`, `Q`, `N`, `J`, `F`, `E1`). Pass the code exactly as it appears on the ticket/PNR.",
            "examples": [
              "Y"
            ],
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]?$"
          },
          "marketing_carrier_code": {
            "description": "IATA airline code of the marketing carrier for this segment.",
            "examples": [
              "AC"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "marketing_flight_number": {
            "description": "Flight number for the marketing carrier.",
            "examples": [
              "759"
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "operating_carrier_code": {
            "description": "IATA airline code of the operating carrier for this segment. Assumed to be the same as marketing_carrier_code if not set.",
            "examples": [
              "AC"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "operating_flight_number": {
            "description": "Flight number for the operating carrier. Assumed to be the same as marketing_flight_number if not set.",
            "examples": [
              "759"
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "rebook_eligibility": {
            "$ref": "#/components/schemas/rebook_eligibility",
            "description": "Whether a rebook can start from this segment, with the search criteria when it can."
          },
          "disruption": {
            "$ref": "#/components/schemas/disruption_reason",
            "description": "The disruption on this segment. Absent when the segment has not been disrupted."
          }
        }
      },
      "contract_itinerary_slice": {
        "title": "contract_itinerary_slice",
        "type": "object",
        "required": [
          "segments",
          "fare_brand",
          "exercise_eligibility"
        ],
        "properties": {
          "segments": {
            "description": "The ordered list of segments that make up this slice.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/contract_itinerary_segment"
            }
          },
          "fare_brand": {
            "description": "Name of the brand for the fare of the slice.",
            "examples": [
              "Standard"
            ],
            "type": "string",
            "minLength": 1
          },
          "exercise_eligibility": {
            "$ref": "#/components/schemas/exercise_eligibility"
          }
        }
      },
      "contract_not_confirmed": {
        "title": "contract_not_confirmed",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_not_confirmed"
          }
        }
      },
      "contract_not_confirmed1": {
        "title": "contract_not_confirmed",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_not_confirmed"
          }
        }
      },
      "contract_not_found": {
        "title": "contract_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_not_found"
          }
        }
      },
      "contract_not_found1": {
        "title": "contract_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_not_found"
          }
        }
      },
      "contract_price": {
        "title": "contract_price",
        "description": "The price breakdown of the product.",
        "type": "object",
        "required": [
          "total_amount",
          "base_amount"
        ],
        "properties": {
          "total_amount": {
            "description": "Total amount to be paid for the product, including taxes.",
            "examples": [
              "40.80"
            ],
            "type": "string",
            "minimum": 0
          },
          "base_amount": {
            "description": "Amount to be paid for the product, excluding taxes.",
            "examples": [
              "30.20"
            ],
            "type": "string",
            "minimum": 0
          },
          "taxes": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/tax"
            }
          }
        }
      },
      "contract_voided": {
        "title": "contract_voided",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_voided"
          }
        }
      },
      "contract_voided_webhook": {
        "title": "contract_voided_webhook",
        "description": "Webhook sent when a DAFAR contract is voided.",
        "type": "object",
        "required": [
          "id",
          "type",
          "occurred_at",
          "data"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this webhook event.",
            "type": "string"
          },
          "type": {
            "description": "The webhook event type: `fintech.flights.dafar.contract.voided`",
            "type": "string",
            "enum": [
              "fintech.flights.dafar.contract.voided"
            ]
          },
          "occurred_at": {
            "description": "Timestamp when the event occurred (ISO 8601).",
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "$ref": "#/components/schemas/contract_voided_webhook_data"
          }
        }
      },
      "contract_voided_webhook_data": {
        "title": "contract_voided_webhook_data",
        "description": "The webhook payload.",
        "type": "object",
        "required": [
          "contract"
        ],
        "properties": {
          "contract": {
            "$ref": "#/components/schemas/dafar_contract",
            "description": "The voided contract."
          }
        }
      },
      "create_draft_contract_request": {
        "title": "create_draft_contract_request",
        "type": "object",
        "required": [
          "offer_id",
          "currency",
          "locale",
          "payment_information",
          "merchant_of_record",
          "contact_info"
        ],
        "properties": {
          "offer_id": {
            "description": "Priced offer to be purchased by the user.",
            "type": "string"
          },
          "currency": {
            "description": "Currency of all pricing fields within the request.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "locale": {
            "description": "The user's locale, as an IETF [BCP 47](https://www.rfc-editor.org/info/bcp47) language tag in {language}-{region} form, where region is an ISO 3166-1 alpha-2 country code or a UN M.49 macro-region code (e.g. en-US, es-419). Determines the language of user-facing content.",
            "examples": [
              "en-US"
            ],
            "type": "string"
          },
          "payments": {
            "description": "DEPRECATED: Use payment_information instead. List of payment methods used to pay for the booking (includes flights and ancillaries). Payments should equate to the total amount for which a partner is the MoR, e.g. if the partner is collecting the ancillary price, the total of the payments should be inclusive of the price. Must include a tokenized payment card if HTS is merchant of record.",
            "deprecated": true,
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/provided_payment"
            }
          },
          "payment_information": {
            "$ref": "#/components/schemas/payment_information"
          },
          "merchant_of_record": {
            "$ref": "#/components/schemas/merchant_of_record"
          },
          "contact_info": {
            "$ref": "#/components/schemas/contact_info",
            "description": "Contact information of the user buying the product(s)."
          },
          "billing_info": {
            "$ref": "#/components/schemas/billing_info"
          },
          "user_id": {
            "description": "Partner's unique ID of the user making the purchase. This is used for fraud prevention.",
            "examples": [
              "33bb4eb2-2937-4bd3-97b1-7796206712f0"
            ],
            "type": "string"
          }
        }
      },
      "create_flight_booking_request": {
        "title": "create_flight_booking_request",
        "type": "object",
        "required": [
          "price_quote_id"
        ],
        "properties": {
          "price_quote_id": {
            "description": "The ID of the price quote to book.",
            "examples": [
              "pq_abc123"
            ],
            "type": "string"
          },
          "partner_booking_reference": {
            "$ref": "#/components/schemas/partner_booking_reference"
          }
        }
      },
      "create_flight_price_quote_request": {
        "title": "create_flight_price_quote_request",
        "type": "object",
        "required": [
          "itinerary_id"
        ],
        "properties": {
          "itinerary_id": {
            "description": "The ID of the itinerary to price. Each shopped itinerary is a single priced option, so the itinerary id fully identifies the fare.",
            "examples": [
              "itin_1"
            ],
            "type": "string"
          }
        }
      },
      "create_flight_shop_request": {
        "title": "create_flight_shop_request",
        "type": "object",
        "required": [
          "segment_id",
          "checked_bags"
        ],
        "properties": {
          "segment_id": {
            "description": "The segment to rebook, identified by the id returned in the rebook eligibility response (slices[].segments[].id). Must reference a rebook-eligible segment of this purchase; HTS derives the search origin/destination and date window from that segment.",
            "examples": [
              "seg_1"
            ],
            "type": "string"
          },
          "checked_bags": {
            "description": "Whether the customer has checked bags. If true, additional departure time filtering is applied to allow the customer enough time to retrieve their checked bags before the rebooked flight.",
            "examples": [
              true
            ],
            "type": "boolean"
          },
          "inventory_source": {
            "$ref": "#/components/schemas/inventory_source"
          }
        }
      },
      "create_merchandising_url_error": {
        "title": "create_merchandising_url_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/not_merchandisable"
          },
          {
            "$ref": "#/components/schemas/offer_expired"
          },
          {
            "$ref": "#/components/schemas/offer_not_found1"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "not_merchandisable": "#/components/schemas/not_merchandisable",
            "offer_expired": "#/components/schemas/offer_expired",
            "offer_not_found": "#/components/schemas/offer_not_found1"
          }
        }
      },
      "create_merchandising_url_request": {
        "title": "create_merchandising_url_request",
        "type": "object",
        "required": [
          "offer_ids"
        ],
        "properties": {
          "offer_ids": {
            "description": "Offer ids from one Create Offers or Price Offers response.",
            "type": "array",
            "minItems": 1,
            "items": {
              "description": "Unique identifier for an offer.",
              "type": "string"
            }
          }
        }
      },
      "create_merchandising_url_response": {
        "title": "create_merchandising_url_response",
        "description": "Response containing a merchandising URL for the given offers.",
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "description": "A merchandising URL for those offers.",
            "type": "string"
          }
        }
      },
      "create_offers_error": {
        "title": "create_offers_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_input"
          },
          {
            "$ref": "#/components/schemas/invalid_itinerary"
          },
          {
            "$ref": "#/components/schemas/invalid_session"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_input": "#/components/schemas/invalid_input",
            "invalid_itinerary": "#/components/schemas/invalid_itinerary",
            "invalid_session": "#/components/schemas/invalid_session"
          }
        }
      },
      "create_offers_request": {
        "title": "create_offers_request",
        "type": "object",
        "required": [
          "session_id",
          "currency",
          "itinerary",
          "channel",
          "point_of_sale",
          "merchandising_context"
        ],
        "properties": {
          "session_id": {
            "description": "Identifies a single shopping funnel, from the initial search through to booking. A new search (including changing the search parameters) begins a new funnel with a new id.",
            "examples": [
              "c17aff84-7581-461e-8505-002d15ac368a"
            ],
            "type": "string"
          },
          "currency": {
            "description": "Currency of all pricing fields within the request.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "itinerary": {
            "$ref": "#/components/schemas/ancillary_itinerary"
          },
          "channel": {
            "$ref": "#/components/schemas/channel"
          },
          "point_of_sale": {
            "description": "Two character country code where the offer(s) are being sold, in ISO 3166-1 format.",
            "type": "string",
            "pattern": "[A-Z]{2}"
          },
          "merchandising_context": {
            "$ref": "#/components/schemas/merchandising_context"
          },
          "priced": {
            "description": "Type of offer requested; priced or not. A priced offer can be used to create an order, but has lower rate limits and adds a bit of latency. This should be aligned with the booking flow of the partner: if the offer is made on itineraries that are repriced later in the flow then it’s best to keep it as false here and then call the Price Offers endpoint later in the flow. But if the itinerary is already after the price quote step on the partner side and it might be the final prices we get then setting this option to true returns offers that are priced and can therefore be used as is in the Create Order endpoint, without having to call the Price Offers endpoint. It’s an optimization to facilitate the integration on the partner side. Default: false.",
            "type": "boolean"
          },
          "billing_jurisdiction": {
            "$ref": "#/components/schemas/billing_jurisdiction",
            "description": "Billing jurisdiction of the user buying the product(s). Recommended for accurate tax calculations at the price offer step, especially if HTS is merchant of record, to avoid corrections at the create order step since it would be after the user has clicked 'book'. This information is usually not known at this step of the flow, but if the offers are created deep in the funnel it might be available, and if setting priced=true to be able to use the offers in the create order endpoint, then it’s important to use this information here to have accurate pricing. Otherwise it’s optional and the price taxes are approximated based on point_of_sale."
          },
          "user_id": {
            "description": "User ID in the partner system. This is used for fraud prevention to knock out offers for users flagged as fraudulent.",
            "type": "string"
          },
          "entry_point": {
            "description": "Entry point from which the disruption offer is being presented to the user. If not provided, defaults to in_funnel for pre-booking and my_trips for post-booking contexts.",
            "type": "string"
          }
        }
      },
      "dafar_cancel_contract_error": {
        "title": "dafar_cancel_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_contract_status2"
          },
          {
            "$ref": "#/components/schemas/order_item_not_found"
          },
          {
            "$ref": "#/components/schemas/refund_amount_more_than_outstanding_balance1"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_contract_status": "#/components/schemas/invalid_contract_status2",
            "order_item_not_found": "#/components/schemas/order_item_not_found",
            "refund_amount_more_than_outstanding_balance": "#/components/schemas/refund_amount_more_than_outstanding_balance1"
          }
        }
      },
      "dafar_confirm_contract_error": {
        "title": "dafar_confirm_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/order_not_found"
          },
          {
            "$ref": "#/components/schemas/unsupported_trip_type1"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "order_not_found": "#/components/schemas/order_not_found",
            "unsupported_trip_type": "#/components/schemas/unsupported_trip_type1"
          }
        }
      },
      "dafar_contract": {
        "title": "dafar_contract",
        "type": "object",
        "required": [
          "id",
          "status",
          "price",
          "eligible_disruptions",
          "rebooking_allowance_per_passenger",
          "window_minutes_before_departure",
          "currency",
          "expires_at",
          "booking_references",
          "exercises"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for a contract.",
            "type": "string"
          },
          "user_id": {
            "description": "User ID in the partner system.",
            "examples": [
              "33bb4eb2-2937-4bd3-97b1-7796206712f0"
            ],
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/status",
            "description": "Current status of the contract."
          },
          "price": {
            "$ref": "#/components/schemas/contract_price"
          },
          "eligible_disruptions": {
            "$ref": "#/components/schemas/eligible_disruptions"
          },
          "payout": {
            "$ref": "#/components/schemas/payout"
          },
          "rebooking_allowance_per_passenger": {
            "description": "Total monetary allowance per passenger for rebooking a flight in case a disruption occurs.",
            "examples": [
              "1000.00"
            ],
            "type": "string",
            "minimum": 0
          },
          "window_minutes_before_departure": {
            "description": "The number of minutes before departure of each slice from which a purchased contract would be eligible for exercise in the event of a disruption.",
            "examples": [
              1440
            ],
            "type": "integer",
            "format": "int32",
            "exclusiveMinimum": 0
          },
          "currency": {
            "description": "Currency of all pricing fields within the contract.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "expires_at": {
            "description": "Date and time at which the contract will expire, once purchased, as a UTC RFC3339 formatted datetime.",
            "examples": [
              "2020-12-20T12:15:48Z"
            ],
            "type": "string",
            "format": "date-time"
          },
          "booking_references": {
            "$ref": "#/components/schemas/map_string",
            "description": "Record locators if PSS, Order ID if OMS, etc. Used to retrieve the flight booking later. It's a dictionary of key/value pairs. The keys can be anything, but they are referenced in the configuration when retrieving the booking, so those must align."
          },
          "itinerary": {
            "$ref": "#/components/schemas/contract_itinerary"
          },
          "exercises": {
            "description": "Details of how this contract was exercised (payout and/or rebook). Always present as a list. Populated when exercised, empty otherwise.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/dafar_exercise"
            }
          }
        }
      },
      "dafar_contract_status_history": {
        "title": "dafar_contract_status_history",
        "type": "object",
        "required": [
          "events"
        ],
        "properties": {
          "events": {
            "description": "The historical list of status events for a contract.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/dafar_contract_status_history_event"
            }
          }
        }
      },
      "dafar_contract_status_history_event": {
        "title": "dafar_contract_status_history_event",
        "type": "object",
        "required": [
          "status",
          "description",
          "occurred_at"
        ],
        "properties": {
          "status": {
            "$ref": "#/components/schemas/status",
            "description": "The contract status associated with the event."
          },
          "description": {
            "description": "Human-readable description of the status event.",
            "examples": [
              "Policy purchased"
            ],
            "type": "string",
            "minLength": 1
          },
          "monetary_transaction": {
            "$ref": "#/components/schemas/monetary_transaction"
          },
          "occurred_at": {
            "description": "Date and time when the status event occurred, as a UTC RFC3339 formatted datetime.",
            "examples": [
              "2024-12-20T12:15:48Z"
            ],
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "dafar_create_draft_contract_error": {
        "title": "dafar_create_draft_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/idempotency_key_reused"
          },
          {
            "$ref": "#/components/schemas/invalid_email"
          },
          {
            "$ref": "#/components/schemas/offer_not_found2"
          },
          {
            "$ref": "#/components/schemas/order_already_exists"
          },
          {
            "$ref": "#/components/schemas/payment_authorization_failure"
          },
          {
            "$ref": "#/components/schemas/unsupported_trip_type"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "idempotency_key_reused": "#/components/schemas/idempotency_key_reused",
            "invalid_email": "#/components/schemas/invalid_email",
            "offer_not_found": "#/components/schemas/offer_not_found2",
            "order_already_exists": "#/components/schemas/order_already_exists",
            "payment_authorization_failure": "#/components/schemas/payment_authorization_failure",
            "unsupported_trip_type": "#/components/schemas/unsupported_trip_type"
          }
        }
      },
      "dafar_create_event": {
        "title": "dafar_create_event",
        "description": "A type of event to be recorded.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/booking_confirmed"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_complete_page_continue_clicked"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_complete_page_loaded"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_confirmation_page_back_clicked"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_confirmation_page_confirm_clicked"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_confirmation_page_loaded"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_landing_continue_clicked"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_landing_loaded"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_rebooking_flight_choice_continue_clicked"
          },
          {
            "$ref": "#/components/schemas/exercise_portal_rebooking_shop_page_loaded"
          },
          {
            "$ref": "#/components/schemas/flight_search_loaded"
          },
          {
            "$ref": "#/components/schemas/flight_search_submitted"
          },
          {
            "$ref": "#/components/schemas/flight_selected"
          },
          {
            "$ref": "#/components/schemas/flight_submitted_for_offer"
          },
          {
            "$ref": "#/components/schemas/merchandising_displayed"
          },
          {
            "$ref": "#/components/schemas/merchandising_faq_clicked"
          },
          {
            "$ref": "#/components/schemas/merchandising_offer_attached"
          },
          {
            "$ref": "#/components/schemas/merchandising_offer_declined"
          },
          {
            "$ref": "#/components/schemas/merchandising_sdk_loaded"
          },
          {
            "$ref": "#/components/schemas/offer_display_requested"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "booking_confirmed": "#/components/schemas/booking_confirmed",
            "exercise_portal_complete_page_continue_clicked": "#/components/schemas/exercise_portal_complete_page_continue_clicked",
            "exercise_portal_complete_page_loaded": "#/components/schemas/exercise_portal_complete_page_loaded",
            "exercise_portal_confirmation_page_back_clicked": "#/components/schemas/exercise_portal_confirmation_page_back_clicked",
            "exercise_portal_confirmation_page_confirm_clicked": "#/components/schemas/exercise_portal_confirmation_page_confirm_clicked",
            "exercise_portal_confirmation_page_loaded": "#/components/schemas/exercise_portal_confirmation_page_loaded",
            "exercise_portal_landing_continue_clicked": "#/components/schemas/exercise_portal_landing_continue_clicked",
            "exercise_portal_landing_loaded": "#/components/schemas/exercise_portal_landing_loaded",
            "exercise_portal_rebooking_flight_choice_continue_clicked": "#/components/schemas/exercise_portal_rebooking_flight_choice_continue_clicked",
            "exercise_portal_rebooking_shop_page_loaded": "#/components/schemas/exercise_portal_rebooking_shop_page_loaded",
            "flight_search_loaded": "#/components/schemas/flight_search_loaded",
            "flight_search_submitted": "#/components/schemas/flight_search_submitted",
            "flight_selected": "#/components/schemas/flight_selected",
            "flight_submitted_for_offer": "#/components/schemas/flight_submitted_for_offer",
            "merchandising_displayed": "#/components/schemas/merchandising_displayed",
            "merchandising_faq_clicked": "#/components/schemas/merchandising_faq_clicked",
            "merchandising_offer_attached": "#/components/schemas/merchandising_offer_attached",
            "merchandising_offer_declined": "#/components/schemas/merchandising_offer_declined",
            "merchandising_sdk_loaded": "#/components/schemas/merchandising_sdk_loaded",
            "offer_display_requested": "#/components/schemas/offer_display_requested"
          }
        }
      },
      "dafar_create_flights_exercise_quote_error": {
        "title": "dafar_create_flights_exercise_quote_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/booking_in_void_window"
          },
          {
            "$ref": "#/components/schemas/invalid_contract_status5"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "booking_in_void_window": "#/components/schemas/booking_in_void_window",
            "invalid_contract_status": "#/components/schemas/invalid_contract_status5"
          }
        }
      },
      "dafar_exercise": {
        "title": "dafar_exercise",
        "oneOf": [
          {
            "$ref": "#/components/schemas/payout1"
          },
          {
            "$ref": "#/components/schemas/rebook"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "payout": "#/components/schemas/payout1",
            "rebook": "#/components/schemas/rebook"
          }
        }
      },
      "dafar_exercise_contract_error": {
        "title": "dafar_exercise_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_contract_status"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_contract_status": "#/components/schemas/invalid_contract_status"
          }
        }
      },
      "dafar_exercise_quote": {
        "title": "dafar_exercise_quote",
        "type": "object",
        "required": [
          "id",
          "payouts"
        ],
        "properties": {
          "id": {
            "description": "Unique ID for an exercise quote.",
            "type": "string"
          },
          "payouts": {
            "description": "The list of payouts which would be issued for this quote.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/exercise_payout"
            }
          }
        }
      },
      "dafar_flight_booking_error": {
        "title": "dafar_flight_booking_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/booking_failed"
          },
          {
            "$ref": "#/components/schemas/partner_booking_reference_required"
          },
          {
            "$ref": "#/components/schemas/partner_inventory_not_enabled1"
          },
          {
            "$ref": "#/components/schemas/price_quote_expired"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "booking_failed": "#/components/schemas/booking_failed",
            "partner_booking_reference_required": "#/components/schemas/partner_booking_reference_required",
            "partner_inventory_not_enabled": "#/components/schemas/partner_inventory_not_enabled1",
            "price_quote_expired": "#/components/schemas/price_quote_expired"
          }
        }
      },
      "dafar_flight_price_quote_error": {
        "title": "dafar_flight_price_quote_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/fare_no_longer_available"
          },
          {
            "$ref": "#/components/schemas/shop_expired"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "fare_no_longer_available": "#/components/schemas/fare_no_longer_available",
            "shop_expired": "#/components/schemas/shop_expired"
          }
        }
      },
      "dafar_flight_shop_error": {
        "title": "dafar_flight_shop_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/contract_already_exercised1"
          },
          {
            "$ref": "#/components/schemas/contract_expired1"
          },
          {
            "$ref": "#/components/schemas/contract_not_confirmed1"
          },
          {
            "$ref": "#/components/schemas/contract_not_found1"
          },
          {
            "$ref": "#/components/schemas/partner_inventory_not_enabled"
          },
          {
            "$ref": "#/components/schemas/segment_not_in_contract"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "contract_already_exercised": "#/components/schemas/contract_already_exercised1",
            "contract_expired": "#/components/schemas/contract_expired1",
            "contract_not_confirmed": "#/components/schemas/contract_not_confirmed1",
            "contract_not_found": "#/components/schemas/contract_not_found1",
            "partner_inventory_not_enabled": "#/components/schemas/partner_inventory_not_enabled",
            "segment_not_in_contract": "#/components/schemas/segment_not_in_contract"
          }
        }
      },
      "dafar_offer": {
        "title": "dafar_offer",
        "type": "object",
        "required": [
          "id",
          "price",
          "eligible_disruptions",
          "rebooking_allowance_per_passenger",
          "window_minutes_before_departure",
          "currency",
          "expires_at",
          "contract_expires_at",
          "priced"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for an offer.",
            "type": "string"
          },
          "price": {
            "$ref": "#/components/schemas/offer_price"
          },
          "eligible_disruptions": {
            "$ref": "#/components/schemas/eligible_disruptions"
          },
          "payout": {
            "$ref": "#/components/schemas/payout"
          },
          "rebooking_allowance_per_passenger": {
            "description": "Total monetary allowance per passenger for rebooking a flight in case a disruption occurs.",
            "examples": [
              "1000.00"
            ],
            "type": "string",
            "minimum": 0
          },
          "window_minutes_before_departure": {
            "description": "The number of minutes before departure of each slice from which a purchased contract would be eligible for exercise in the event of an eligible disruption event.",
            "examples": [
              1440
            ],
            "type": "integer",
            "format": "int32",
            "exclusiveMinimum": 0
          },
          "currency": {
            "description": "Currency of all pricing fields for the offer.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "expires_at": {
            "description": "Date and time at which this offer expires at which point a new offer must be created, as a UTC RFC3339 formatted datetime.",
            "examples": [
              "2020-12-20T12:15:48Z"
            ],
            "type": "string",
            "format": "date-time"
          },
          "contract_expires_at": {
            "description": "Date and time at which the contract will expire once purchased, as a UTC RFC3339 formatted datetime.",
            "examples": [
              "2020-12-20T12:15:48Z"
            ],
            "type": "string",
            "format": "date-time"
          },
          "priced": {
            "description": "Whether this is a priced offer or not. A priced offer is required to create an order.",
            "type": "boolean"
          },
          "entry_point": {
            "description": "The entry point from which the disruption offer was presented to the user.",
            "type": "string"
          }
        }
      },
      "dafar_rebook_eligibility_error": {
        "title": "dafar_rebook_eligibility_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/contract_already_exercised"
          },
          {
            "$ref": "#/components/schemas/contract_expired"
          },
          {
            "$ref": "#/components/schemas/contract_not_confirmed"
          },
          {
            "$ref": "#/components/schemas/contract_not_found"
          },
          {
            "$ref": "#/components/schemas/contract_voided"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "contract_already_exercised": "#/components/schemas/contract_already_exercised",
            "contract_expired": "#/components/schemas/contract_expired",
            "contract_not_confirmed": "#/components/schemas/contract_not_confirmed",
            "contract_not_found": "#/components/schemas/contract_not_found",
            "contract_voided": "#/components/schemas/contract_voided"
          }
        }
      },
      "dafar_update_contact_info_error": {
        "title": "dafar_update_contact_info_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_contract_status3"
          },
          {
            "$ref": "#/components/schemas/invalid_email1"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_contract_status": "#/components/schemas/invalid_contract_status3",
            "invalid_email": "#/components/schemas/invalid_email1"
          }
        }
      },
      "dafar_void_contract_error": {
        "title": "dafar_void_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_contract_status1"
          },
          {
            "$ref": "#/components/schemas/order_not_found1"
          },
          {
            "$ref": "#/components/schemas/refund_amount_more_than_outstanding_balance"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_contract_status": "#/components/schemas/invalid_contract_status1",
            "order_not_found": "#/components/schemas/order_not_found1",
            "refund_amount_more_than_outstanding_balance": "#/components/schemas/refund_amount_more_than_outstanding_balance"
          }
        }
      },
      "date_window": {
        "title": "date_window",
        "description": "The departure date window to search across.",
        "type": "object",
        "required": [
          "start",
          "end"
        ],
        "properties": {
          "start": {
            "description": "First date of the search window (the disrupted departure day), as an ISO local date.",
            "examples": [
              "2026-05-11"
            ],
            "type": "string",
            "format": "date"
          },
          "end": {
            "description": "Last date of the search window (typically the day after the disruption), as an ISO local date.",
            "examples": [
              "2026-05-12"
            ],
            "type": "string",
            "format": "date"
          }
        }
      },
      "delayed": {
        "title": "delayed",
        "description": "The flight was delayed.",
        "type": "object",
        "required": [
          "delay_minutes",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "delayed",
            "description": "value: `delayed`"
          },
          "delay_minutes": {
            "description": "The number of minutes the flight was delayed.",
            "examples": [
              150
            ],
            "type": "integer",
            "format": "int32",
            "exclusiveMinimum": 0
          }
        }
      },
      "delayed1": {
        "title": "delayed",
        "description": "The flight's departure and/or arrival times have changed. At least one estimated time must be provided.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "delayed",
            "description": "value: `delayed`"
          },
          "estimated_departure_date_time": {
            "description": "The newly estimated local date and time of departure in ISO Local Date Time format. Optional, but at least one of the estimated departure or arrival times must be provided.",
            "examples": [
              "2026-02-15T10:30"
            ],
            "type": "string"
          },
          "estimated_arrival_date_time": {
            "description": "The newly estimated local date and time of arrival in ISO Local Date Time format. Optional, but at least one of the estimated departure or arrival times must be provided.",
            "examples": [
              "2026-02-15T14:00"
            ],
            "type": "string"
          }
        }
      },
      "details": {
        "title": "details",
        "type": "object",
        "required": [
          "last_four_digits",
          "expiration_month",
          "expiration_year",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "details",
            "description": "value: `details`"
          },
          "last_four_digits": {
            "description": "Last four digits of the payment card.",
            "type": "string",
            "pattern": "[0-9]{4}"
          },
          "expiration_month": {
            "description": "Two digits expiration month of the payment card.",
            "type": "string",
            "pattern": "[0-9]{2}"
          },
          "expiration_year": {
            "description": "Four digits expiration year of the payment card.",
            "type": "string",
            "pattern": "[0-9]{4}"
          }
        }
      },
      "direct": {
        "title": "direct",
        "description": "The partner's channel that is interacting with the API.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "direct",
            "description": "value: `direct`"
          }
        }
      },
      "disrupted_segment": {
        "title": "disrupted_segment",
        "type": "object",
        "required": [
          "origin_airport",
          "destination_airport",
          "departure_date_time",
          "arrival_date_time",
          "cabin",
          "marketing_carrier_code",
          "marketing_flight_number"
        ],
        "properties": {
          "origin_airport": {
            "description": "IATA airport code of origin.",
            "examples": [
              "BOS"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination_airport": {
            "description": "IATA airport code of destination.",
            "examples": [
              "LGA"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date_time": {
            "description": "Local date and time of departure, in ISO 8601 format.",
            "examples": [
              "2022-04-02T18:34:30"
            ],
            "type": "string"
          },
          "revised_departure_date_time": {
            "type": "string"
          },
          "arrival_date_time": {
            "description": "Local date and time of arrival, in ISO 8601 format.",
            "examples": [
              "2022-04-02T19:12:30"
            ],
            "type": "string"
          },
          "revised_arrival_date_time": {
            "type": "string"
          },
          "cabin": {
            "$ref": "#/components/schemas/cabin",
            "description": "Cabin of the segment."
          },
          "reservation_booking_designator": {
            "description": "Reservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. `Y`, `B`, `M`, `Q`, `N`, `J`, `F`, `E1`). Pass the code exactly as it appears on the ticket/PNR.",
            "examples": [
              "Y"
            ],
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]?$"
          },
          "marketing_carrier_code": {
            "description": "IATA airline code of the marketing carrier for this segment.",
            "examples": [
              "B6"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "marketing_flight_number": {
            "description": "Flight number for the marketing carrier.",
            "examples": [
              "776"
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "operating_carrier_code": {
            "description": "IATA airline code of the operating carrier for this segment. Assumed to be the same asmarketing_carrier_code if not set.",
            "examples": [
              "B6"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "operating_flight_number": {
            "description": "Flight number for the operating carrier. Assumed to be the same asmarketing_flight_number if not set.",
            "examples": [
              "776"
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          }
        }
      },
      "disruption_event": {
        "title": "disruption_event",
        "description": "Details of the disruption that triggered eligibility.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/flight_cancellation1"
          },
          {
            "$ref": "#/components/schemas/flight_delay1"
          },
          {
            "$ref": "#/components/schemas/manually_triggered"
          },
          {
            "$ref": "#/components/schemas/missed_connection2"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "flight_cancellation": "#/components/schemas/flight_cancellation1",
            "flight_delay": "#/components/schemas/flight_delay1",
            "manually_triggered": "#/components/schemas/manually_triggered",
            "missed_connection": "#/components/schemas/missed_connection2"
          }
        }
      },
      "disruption_reason": {
        "title": "disruption_reason",
        "oneOf": [
          {
            "$ref": "#/components/schemas/canceled"
          },
          {
            "$ref": "#/components/schemas/delayed"
          },
          {
            "$ref": "#/components/schemas/missed_connection1"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "canceled": "#/components/schemas/canceled",
            "delayed": "#/components/schemas/delayed",
            "missed_connection": "#/components/schemas/missed_connection1"
          }
        }
      },
      "eligible": {
        "title": "eligible",
        "description": "A rebook can start from this segment.",
        "type": "object",
        "required": [
          "search_criterias",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "eligible",
            "description": "value: `eligible`"
          },
          "search_criterias": {
            "description": "The searches HTS applies before shopping a rebook from this segment. Partners sourcing their own inventory must apply them so their rebook options match the HTS-sourced flow.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/search_criteria"
            }
          }
        }
      },
      "eligible1": {
        "title": "eligible",
        "description": "The slice can be exercised.",
        "type": "object",
        "required": [
          "exercise_options",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "eligible",
            "description": "value: `eligible`"
          },
          "exercise_options": {
            "description": "The ways the slice can be exercised.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/exercise_option"
            }
          }
        }
      },
      "eligible_disruptions": {
        "title": "eligible_disruptions",
        "description": "The disruption events which allow a customer to exercise their product.",
        "type": "object",
        "properties": {
          "flight_cancellation": {
            "$ref": "#/components/schemas/flight_cancellation"
          },
          "flight_delay": {
            "$ref": "#/components/schemas/flight_delay"
          },
          "missed_connection": {
            "$ref": "#/components/schemas/missed_connection"
          }
        }
      },
      "eligible_reason": {
        "title": "eligible_reason",
        "description": "The reason for which the contract is being marked as exercise eligible.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/other3"
          },
          {
            "$ref": "#/components/schemas/reported_disruption"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "reported_disruption": "#/components/schemas/reported_disruption",
            "other": "#/components/schemas/other3"
          }
        }
      },
      "email_address": {
        "title": "email_address",
        "oneOf": [
          {
            "$ref": "#/components/schemas/hashed"
          },
          {
            "$ref": "#/components/schemas/literal"
          },
          {
            "$ref": "#/components/schemas/not_provided1"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "hashed": "#/components/schemas/hashed",
            "literal": "#/components/schemas/literal",
            "not_provided": "#/components/schemas/not_provided1"
          }
        }
      },
      "error": {
        "title": "error",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "estimated_times_unchanged": {
        "title": "estimated_times_unchanged",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "estimated_times_unchanged"
          }
        }
      },
      "exercise_contract_request": {
        "title": "exercise_contract_request",
        "oneOf": [
          {
            "$ref": "#/components/schemas/payout2"
          },
          {
            "$ref": "#/components/schemas/rebooking"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "payout": "#/components/schemas/payout2",
            "rebooking": "#/components/schemas/rebooking"
          }
        }
      },
      "exercise_eligibility": {
        "title": "exercise_eligibility",
        "description": "Whether this slice can be exercised, and how.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/eligible1"
          },
          {
            "$ref": "#/components/schemas/ineligible1"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "eligible": "#/components/schemas/eligible1",
            "ineligible": "#/components/schemas/ineligible1"
          }
        }
      },
      "exercise_option": {
        "title": "exercise_option",
        "type": "string",
        "enum": [
          "payout",
          "rebook"
        ]
      },
      "exercise_payout": {
        "title": "exercise_payout",
        "oneOf": [
          {
            "$ref": "#/components/schemas/original_form_of_payment"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "original_form_of_payment": "#/components/schemas/original_form_of_payment"
          }
        }
      },
      "exercise_portal_complete_page_continue_clicked": {
        "title": "exercise_portal_complete_page_continue_clicked",
        "description": "Triggered when continue is clicked on the exercise portal complete page",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_complete_page_continue_clicked",
            "description": "value: `exercise_portal_complete_page_continue_clicked`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          }
        }
      },
      "exercise_portal_complete_page_loaded": {
        "title": "exercise_portal_complete_page_loaded",
        "description": "Triggered when the exercise portal complete page is loaded",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type",
          "exercise_type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_complete_page_loaded",
            "description": "value: `exercise_portal_complete_page_loaded`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          },
          "exercise_type": {
            "$ref": "#/components/schemas/exercise_type"
          }
        }
      },
      "exercise_portal_confirmation_page_back_clicked": {
        "title": "exercise_portal_confirmation_page_back_clicked",
        "description": "Triggered when back is clicked on the exercise portal confirmation page",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type",
          "exercise_type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_confirmation_page_back_clicked",
            "description": "value: `exercise_portal_confirmation_page_back_clicked`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          },
          "exercise_type": {
            "$ref": "#/components/schemas/exercise_type"
          }
        }
      },
      "exercise_portal_confirmation_page_confirm_clicked": {
        "title": "exercise_portal_confirmation_page_confirm_clicked",
        "description": "Triggered when confirm is clicked on the exercise portal confirmation page",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type",
          "exercise_type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_confirmation_page_confirm_clicked",
            "description": "value: `exercise_portal_confirmation_page_confirm_clicked`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          },
          "exercise_type": {
            "$ref": "#/components/schemas/exercise_type"
          }
        }
      },
      "exercise_portal_confirmation_page_loaded": {
        "title": "exercise_portal_confirmation_page_loaded",
        "description": "Triggered when the exercise portal confirmation page is loaded",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type",
          "exercise_type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_confirmation_page_loaded",
            "description": "value: `exercise_portal_confirmation_page_loaded`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          },
          "exercise_type": {
            "$ref": "#/components/schemas/exercise_type"
          }
        }
      },
      "exercise_portal_landing_continue_clicked": {
        "title": "exercise_portal_landing_continue_clicked",
        "description": "Triggered when continue is clicked on the exercise portal landing page",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type",
          "exercise_type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_landing_continue_clicked",
            "description": "value: `exercise_portal_landing_continue_clicked`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          },
          "exercise_type": {
            "$ref": "#/components/schemas/exercise_type"
          }
        }
      },
      "exercise_portal_landing_loaded": {
        "title": "exercise_portal_landing_loaded",
        "description": "Triggered when the exercise portal landing page is loaded",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_landing_loaded",
            "description": "value: `exercise_portal_landing_loaded`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          }
        }
      },
      "exercise_portal_rebooking_flight_choice_continue_clicked": {
        "title": "exercise_portal_rebooking_flight_choice_continue_clicked",
        "description": "Triggered when a customer selects a fare and continues to the review page.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_rebooking_flight_choice_continue_clicked",
            "description": "value: `exercise_portal_rebooking_flight_choice_continue_clicked`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          }
        }
      },
      "exercise_portal_rebooking_shop_page_loaded": {
        "title": "exercise_portal_rebooking_shop_page_loaded",
        "description": "Triggered when the rebooking flight-results page is loaded.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "contract_id",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "exercise_portal_rebooking_shop_page_loaded",
            "description": "value: `exercise_portal_rebooking_shop_page_loaded`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "contract_id": {
            "type": "string"
          }
        }
      },
      "exercise_type": {
        "title": "exercise_type",
        "type": "string",
        "enum": [
          "rebook",
          "payout"
        ]
      },
      "exercise_url": {
        "title": "exercise_url",
        "type": "object",
        "required": [
          "exercise_url"
        ],
        "properties": {
          "exercise_url": {
            "type": "string"
          }
        }
      },
      "failed": {
        "title": "failed",
        "description": "The booking has failed.",
        "type": "object",
        "required": [
          "error",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "failed",
            "description": "value: `failed`"
          },
          "error": {
            "description": "Error message describing why the booking failed.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "fare": {
        "title": "fare",
        "type": "object",
        "required": [
          "amount",
          "brand"
        ],
        "properties": {
          "amount": {
            "description": "Price of the fare.",
            "examples": [
              "401.10"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          },
          "brand": {
            "description": "Name of the brand for this fare.",
            "examples": [
              "flex"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "fare_amount_modification": {
        "title": "fare_amount_modification",
        "description": "A single modification to the fare amount.",
        "type": "object",
        "required": [
          "amount",
          "reason"
        ],
        "properties": {
          "amount": {
            "description": "Amount of the modification.",
            "examples": [
              "10.00"
            ],
            "type": "string"
          },
          "reason": {
            "description": "Reason for the modification being applied to the fare amount.",
            "examples": [
              "points conversion"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "fare_detail": {
        "title": "fare_detail",
        "oneOf": [
          {
            "$ref": "#/components/schemas/generic"
          },
          {
            "$ref": "#/components/schemas/included"
          },
          {
            "$ref": "#/components/schemas/purchasable"
          },
          {
            "$ref": "#/components/schemas/unavailable"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "generic": "#/components/schemas/generic",
            "included": "#/components/schemas/included",
            "purchasable": "#/components/schemas/purchasable",
            "unavailable": "#/components/schemas/unavailable"
          }
        }
      },
      "fare_details_response": {
        "title": "fare_details_response",
        "type": "object",
        "required": [
          "slices"
        ],
        "properties": {
          "slices": {
            "description": "Slices containing segment-level fare details.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/slice"
            }
          }
        }
      },
      "fare_no_longer_available": {
        "title": "fare_no_longer_available",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "fare_no_longer_available"
          }
        }
      },
      "fare_rules": {
        "title": "fare_rules",
        "description": "The fare rules for the slice detailing cancel and change policies with associated penalties and refund methods. Fare rules which are not sent are assumed to be unknown.",
        "type": "object",
        "properties": {
          "cancel": {
            "$ref": "#/components/schemas/policies",
            "description": "The cancel policy for the slice."
          },
          "change": {
            "$ref": "#/components/schemas/policies",
            "description": "The change policy for the slice."
          }
        }
      },
      "fee": {
        "title": "fee",
        "type": "object",
        "required": [
          "amount",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "fee",
            "description": "value: `fee`"
          },
          "amount": {
            "description": "A fixed monetary penalty amount.",
            "type": "string",
            "exclusiveMinimum": 0
          }
        }
      },
      "field": {
        "title": "field",
        "type": "object",
        "required": [
          "name",
          "value",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "field",
            "description": "value: `field`"
          },
          "name": {
            "$ref": "#/components/schemas/filterable_field"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "filter": {
        "title": "filter",
        "oneOf": [
          {
            "$ref": "#/components/schemas/and"
          },
          {
            "$ref": "#/components/schemas/field"
          },
          {
            "$ref": "#/components/schemas/or"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "and": "#/components/schemas/and",
            "field": "#/components/schemas/field",
            "or": "#/components/schemas/or"
          }
        }
      },
      "filterable_field": {
        "title": "filterable_field",
        "type": "string",
        "enum": [
          "booking_reference"
        ]
      },
      "flight_booking": {
        "title": "flight_booking",
        "type": "object",
        "required": [
          "id",
          "status"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this flight booking.",
            "examples": [
              "bk_abc123"
            ],
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/status1"
          }
        }
      },
      "flight_cancellation": {
        "title": "flight_cancellation",
        "description": "The product becomes exercise eligible in the event of a flight cancellation.",
        "type": "object"
      },
      "flight_cancellation1": {
        "title": "flight_cancellation",
        "description": "The covered flight was canceled.",
        "type": "object",
        "required": [
          "segment",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "flight_cancellation",
            "description": "value: `flight_cancellation`"
          },
          "segment": {
            "$ref": "#/components/schemas/itinerary_slice_segment",
            "description": "The flight segment that was canceled."
          }
        }
      },
      "flight_delay": {
        "title": "flight_delay",
        "description": "The product becomes exercise eligible in the event of a flight delay.",
        "type": "object",
        "required": [
          "delay_minutes_threshold"
        ],
        "properties": {
          "delay_minutes_threshold": {
            "description": "The number of minutes a flight must be delayed to qualify for disruption exercise eligibility.",
            "examples": [
              120
            ],
            "type": "integer",
            "format": "int32",
            "exclusiveMinimum": 0
          }
        }
      },
      "flight_delay1": {
        "title": "flight_delay",
        "description": "The covered flight was delayed beyond the threshold.",
        "type": "object",
        "required": [
          "segment",
          "delay_minutes",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "flight_delay",
            "description": "value: `flight_delay`"
          },
          "segment": {
            "$ref": "#/components/schemas/disrupted_segment",
            "description": "The flight segment that was delayed."
          },
          "delay_minutes": {
            "description": "The number of minutes the flight was delayed.",
            "type": "integer",
            "format": "int32",
            "exclusiveMinimum": 0
          }
        }
      },
      "flight_price_quote": {
        "title": "flight_price_quote",
        "type": "object",
        "required": [
          "id",
          "expires_at"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this price quote.",
            "examples": [
              "pq_abc123"
            ],
            "type": "string"
          },
          "expires_at": {
            "description": "Date and time at which this price quote expires, as a UTC RFC3339 formatted datetime.",
            "examples": [
              "2024-06-15T15:00:00Z"
            ],
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "flight_search_loaded": {
        "title": "flight_search_loaded",
        "description": "Triggered when the flight search screen is ready for use.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "flight_search_loaded",
            "description": "value: `flight_search_loaded`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "flight_search_submitted": {
        "title": "flight_search_submitted",
        "description": "Triggered when a customer submits a flight search.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "flight_search_submitted",
            "description": "value: `flight_search_submitted`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "flight_selected": {
        "title": "flight_selected",
        "description": "Triggered when a customer selects a flight option.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "flight_selected",
            "description": "value: `flight_selected`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "flight_status_update_error": {
        "title": "flight_status_update_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/estimated_times_unchanged"
          },
          {
            "$ref": "#/components/schemas/inconsistent_estimated_times"
          },
          {
            "$ref": "#/components/schemas/missing_estimated_time"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "estimated_times_unchanged": "#/components/schemas/estimated_times_unchanged",
            "inconsistent_estimated_times": "#/components/schemas/inconsistent_estimated_times",
            "missing_estimated_time": "#/components/schemas/missing_estimated_time"
          }
        }
      },
      "flight_status_update_request": {
        "title": "flight_status_update_request",
        "type": "object",
        "required": [
          "flight",
          "status_update",
          "occurred_at"
        ],
        "properties": {
          "flight": {
            "$ref": "#/components/schemas/id"
          },
          "status_update": {
            "$ref": "#/components/schemas/status_update"
          },
          "occurred_at": {
            "description": "The date and time at which the status change occurred, as a UTC RFC3339 formatted datetime.",
            "examples": [
              "2026-02-15T13:12:48Z"
            ],
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "flight_submitted_for_offer": {
        "title": "flight_submitted_for_offer",
        "description": "Triggered when a customer submits the selected itinerary for an offer.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "flight_submitted_for_offer",
            "description": "value: `flight_submitted_for_offer`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "from_booking_references": {
        "title": "from_booking_references",
        "description": "Booking Information is to be retrieved from the partner systems by HTS, using the booking references provided.",
        "type": "object",
        "required": [
          "booking_references",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "from_booking_references",
            "description": "value: `from_booking_references`"
          },
          "booking_references": {
            "$ref": "#/components/schemas/map_string",
            "description": "Record locators if PSS, Order ID if OMS, etc. Used to retrieve the flight booking later. It's a dictionary of key/value pairs. The keys can be anything, but they are referenced in the configuration when retrieving the booking, so those must align."
          }
        }
      },
      "generic": {
        "title": "generic",
        "description": "A generic fare detail.",
        "type": "object",
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "generic",
            "description": "value: `generic`"
          },
          "text": {
            "description": "Description text for this fare detail.",
            "examples": [
              "Standard boarding"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "get_booking_response": {
        "title": "get_booking_response",
        "description": "Recommended response structure for the partner get_booking endpoint.",
        "type": "object",
        "required": [
          "currency",
          "itinerary",
          "booking_references",
          "booking_status",
          "void_policy",
          "created_at"
        ],
        "properties": {
          "currency": {
            "description": "ISO 4217 currency code for all monetary amounts in the response.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "itinerary": {
            "$ref": "#/components/schemas/itinerary"
          },
          "booking_references": {
            "$ref": "#/components/schemas/map_string",
            "description": "Partner-defined key/value pairs used to identify the booking (e.g. record locator, order ID). These must match the references provided during contract creation."
          },
          "booking_status": {
            "$ref": "#/components/schemas/booking_status"
          },
          "void_policy": {
            "$ref": "#/components/schemas/void_policy1"
          },
          "created_at": {
            "description": "ISO 8601 timestamp of when the booking was originally created.",
            "examples": [
              "2024-06-15T10:30:00Z"
            ],
            "type": "string",
            "format": "date-time"
          },
          "payment_transactions": {
            "description": "Record of payment transactions associated with this booking.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/payment_transaction"
            }
          }
        }
      },
      "good_will": {
        "title": "good_will",
        "description": "Void was performed to establish good will with the customer, i.e. in response to sub-par customer experience.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "good_will",
            "description": "value: `good_will`"
          }
        }
      },
      "hashed": {
        "title": "hashed",
        "type": "object",
        "required": [
          "value",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "hashed",
            "description": "value: `hashed`"
          },
          "value": {
            "description": "A stable hash of the user's email address. Must be stable across different API calls and different bookings. Used for transaction correlation for fraud analysis.",
            "examples": [
              "a8cfcd74832004951b4408cdb0a5dbcd8c7e5243f7fe-244bf72058205241da"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "hts": {
        "title": "hts",
        "description": "HTS sources and filters the rebook inventory. This is the default behavior when inventory_source is omitted.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "hts",
            "description": "value: `hts`"
          }
        }
      },
      "id": {
        "title": "id",
        "description": "The flight whose status has changed.",
        "type": "object",
        "required": [
          "marketing_airline_code",
          "flight_number",
          "origin_airport",
          "destination_airport",
          "scheduled_departure_date_time",
          "scheduled_arrival_date_time"
        ],
        "properties": {
          "marketing_airline_code": {
            "description": "The IATA carrier code of the marketing airline of the flight.",
            "examples": [
              "AA"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "flight_number": {
            "description": "The numeric portion of the flight number.",
            "examples": [
              123
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "origin_airport": {
            "description": "IATA airport code of origin",
            "examples": [
              "JFK"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination_airport": {
            "description": "IATA airport code of destination",
            "examples": [
              "LAX"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "scheduled_departure_date_time": {
            "description": "The original scheduled local date and time of departure in ISO Local Date Time format",
            "examples": [
              "2026-02-15T08:00"
            ],
            "type": "string"
          },
          "scheduled_arrival_date_time": {
            "description": "The original scheduled local date and time of arrival in ISO Local Date Time format",
            "examples": [
              "2026-02-15T11:30"
            ],
            "type": "string"
          }
        }
      },
      "idempotency_key_reused": {
        "title": "idempotency_key_reused",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "idempotency_key_reused"
          }
        }
      },
      "identifier": {
        "title": "identifier",
        "oneOf": [
          {
            "$ref": "#/components/schemas/details"
          },
          {
            "$ref": "#/components/schemas/token"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "details": "#/components/schemas/details",
            "token": "#/components/schemas/token"
          }
        }
      },
      "included": {
        "title": "included",
        "description": "An included fare detail.",
        "type": "object",
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "included",
            "description": "value: `included`"
          },
          "text": {
            "description": "Description text for this fare detail.",
            "examples": [
              "1 carry-on bag included"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "inconsistent_estimated_times": {
        "title": "inconsistent_estimated_times",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "inconsistent_estimated_times"
          }
        }
      },
      "ineligible": {
        "title": "ineligible",
        "description": "A rebook cannot start from this segment.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "ineligible",
            "description": "value: `ineligible`"
          }
        }
      },
      "ineligible1": {
        "title": "ineligible",
        "description": "The slice can't be exercised.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "ineligible",
            "description": "value: `ineligible`"
          }
        }
      },
      "invalid_contract_status": {
        "title": "invalid_contract_status",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_contract_status"
          }
        }
      },
      "invalid_contract_status1": {
        "title": "invalid_contract_status",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_contract_status"
          }
        }
      },
      "invalid_contract_status2": {
        "title": "invalid_contract_status",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_contract_status"
          }
        }
      },
      "invalid_contract_status3": {
        "title": "invalid_contract_status",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_contract_status"
          }
        }
      },
      "invalid_contract_status4": {
        "title": "invalid_contract_status",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_contract_status"
          }
        }
      },
      "invalid_contract_status5": {
        "title": "invalid_contract_status",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_contract_status"
          }
        }
      },
      "invalid_email": {
        "title": "invalid_email",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_email"
          }
        }
      },
      "invalid_email1": {
        "title": "invalid_email",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_email"
          }
        }
      },
      "invalid_input": {
        "title": "invalid_input",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_input"
          }
        }
      },
      "invalid_itinerary": {
        "title": "invalid_itinerary",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_itinerary"
          }
        }
      },
      "invalid_session": {
        "title": "invalid_session",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_session"
          }
        }
      },
      "inventory_source": {
        "title": "inventory_source",
        "description": "Where to source the rebook inventory. Omit (or send type=hts) for standard HTS-sourced shopping. Send type=partner_supplied with raw_itineraries to shop the partner's own pushed inventory; this mode requires the tenant to be allowlisted.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/hts"
          },
          {
            "$ref": "#/components/schemas/partner_supplied"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "hts": "#/components/schemas/hts",
            "partner_supplied": "#/components/schemas/partner_supplied"
          }
        }
      },
      "itinerary": {
        "title": "itinerary",
        "description": "The flight itinerary associated with the booking.",
        "type": "object",
        "required": [
          "slices",
          "passengers"
        ],
        "properties": {
          "slices": {
            "description": "The legs of the itinerary.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/slice1"
            }
          },
          "passengers": {
            "description": "Passengers on the booking.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/passenger"
            }
          },
          "ancillaries": {
            "description": "Optional ancillary purchases.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ancillary1"
            }
          }
        }
      },
      "itinerary_passenger": {
        "title": "itinerary_passenger",
        "type": "object",
        "required": [
          "type",
          "ancillaries",
          "fare_amount"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/passenger_type"
          },
          "ancillaries": {
            "description": "Ancillaries attached to the passenger and their prices.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ancillary"
            }
          },
          "fare_amount": {
            "description": "Total price of the fare for this passenger",
            "examples": [
              "140.56"
            ],
            "type": "string",
            "minimum": 0
          },
          "fare_amount_modifications": {
            "description": "Modifications to the fare amount, which change how much a customer is charged. Add each fare modification to the fare amount to get the total fare amount the customer will be charged.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/fare_amount_modification"
            }
          }
        }
      },
      "itinerary_slice": {
        "title": "itinerary_slice",
        "type": "object",
        "required": [
          "segments",
          "fare_brand"
        ],
        "properties": {
          "segments": {
            "description": "A list of segments which make up the slice.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/itinerary_slice_segment"
            }
          },
          "fare_brand": {
            "description": "Name of the brand for the fare of the slice.",
            "examples": [
              "Flex"
            ],
            "type": "string",
            "minLength": 1
          },
          "alternative_fares": {
            "description": "A list of alternative fares which were also available to the user in the same cabin.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/fare"
            }
          },
          "fare_rules": {
            "$ref": "#/components/schemas/fare_rules"
          },
          "void_policy": {
            "$ref": "#/components/schemas/void_policy"
          }
        }
      },
      "itinerary_slice_segment": {
        "title": "itinerary_slice_segment",
        "type": "object",
        "required": [
          "origin_airport",
          "destination_airport",
          "departure_date_time",
          "arrival_date_time",
          "cabin",
          "marketing_carrier_code",
          "marketing_flight_number"
        ],
        "properties": {
          "origin_airport": {
            "description": "IATA airport code of origin.",
            "examples": [
              "BOS"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination_airport": {
            "description": "IATA airport code of destination.",
            "examples": [
              "LGA"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date_time": {
            "description": "Local date and time of departure, in ISO 8601 format.",
            "examples": [
              "2022-04-02T18:34:30"
            ],
            "type": "string"
          },
          "arrival_date_time": {
            "description": "Local date and time of arrival, in ISO 8601 format.",
            "examples": [
              "2022-04-02T19:12:30"
            ],
            "type": "string"
          },
          "cabin": {
            "$ref": "#/components/schemas/cabin",
            "description": "Cabin of the segment."
          },
          "reservation_booking_designator": {
            "description": "Reservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. `Y`, `B`, `M`, `Q`, `N`, `J`, `F`, `E1`). Pass the code exactly as it appears on the ticket/PNR.",
            "examples": [
              "Y"
            ],
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]?$"
          },
          "marketing_carrier_code": {
            "description": "IATA airline code of the marketing carrier for this segment.",
            "examples": [
              "B6"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "marketing_flight_number": {
            "description": "Flight number for the marketing carrier.",
            "examples": [
              "776"
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "operating_carrier_code": {
            "description": "IATA airline code of the operating carrier for this segment. Assumed to be the same asmarketing_carrier_code if not set.",
            "examples": [
              "B6"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "operating_flight_number": {
            "description": "Flight number for the operating carrier. Assumed to be the same asmarketing_flight_number if not set.",
            "examples": [
              "776"
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          }
        }
      },
      "literal": {
        "title": "literal",
        "type": "object",
        "required": [
          "value",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "literal",
            "description": "value: `literal`"
          },
          "value": {
            "description": "The actual email address for the user.",
            "examples": [
              "john@email.com"
            ],
            "type": "string",
            "pattern": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"
          }
        }
      },
      "literal1": {
        "title": "literal",
        "description": "Email address of the additional recipient to notify.",
        "type": "object",
        "required": [
          "value"
        ],
        "properties": {
          "value": {
            "description": "The actual email address for the user.",
            "examples": [
              "john@email.com"
            ],
            "type": "string",
            "pattern": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"
          }
        }
      },
      "loyalty_program": {
        "title": "loyalty_program",
        "type": "object",
        "required": [
          "amount",
          "name",
          "units",
          "type"
        ],
        "properties": {
          "type": {
            "examples": [
              "alternate_payment_method"
            ],
            "type": "string",
            "const": "loyalty_program",
            "description": "value: `loyalty_program`"
          },
          "amount": {
            "examples": [
              "173.24"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          },
          "name": {
            "description": "\n The name of the of the loyalty program, e.g. points, miles, cash_rewards, etc.\n Required, to ensure that the amounts are refunded to the same loyalty program used during purchase.\n ",
            "type": "string",
            "minLength": 1
          },
          "units": {
            "description": "\n The unit to currency exchange rate is implicit from the amount in the Payment object\n and this number of points.\n ",
            "type": "string",
            "exclusiveMinimum": 0
          }
        }
      },
      "manually_triggered": {
        "title": "manually_triggered",
        "description": "The disruption event that triggered exercise eligibility.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "manually_triggered",
            "description": "value: `manually_triggered`"
          }
        }
      },
      "map_string": {
        "title": "map_string",
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      },
      "merchandising_contents": {
        "title": "merchandising_contents",
        "type": "object",
        "required": [
          "merchandising_contents"
        ],
        "properties": {
          "merchandising_contents": {
            "$ref": "#/components/schemas/map_string"
          }
        }
      },
      "merchandising_contents_request": {
        "title": "merchandising_contents_request",
        "type": "object",
        "required": [
          "offer_ids",
          "locale"
        ],
        "properties": {
          "offer_ids": {
            "type": "array",
            "minItems": 1,
            "items": {
              "description": "Unique identifier for an offer.",
              "type": "string"
            }
          },
          "locale": {
            "description": "The user's locale, as an IETF [BCP 47](https://www.rfc-editor.org/info/bcp47) language tag in {language}-{region} form, where region is an ISO 3166-1 alpha-2 country code or a UN M.49 macro-region code (e.g. en-US, es-419). Determines the language of user-facing content.",
            "examples": [
              "en-US"
            ],
            "type": "string"
          },
          "substitutions": {
            "$ref": "#/components/schemas/map_string"
          }
        }
      },
      "merchandising_context": {
        "title": "merchandising_context",
        "description": "Context for which generated offers will be merchandised on the partner's site.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/post_booking"
          },
          {
            "$ref": "#/components/schemas/pre_booking"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "post_booking": "#/components/schemas/post_booking",
            "pre_booking": "#/components/schemas/pre_booking"
          }
        }
      },
      "merchandising_displayed": {
        "title": "merchandising_displayed",
        "description": "Triggered when merchandising content is displayed to a user.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "offer_ids",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "merchandising_displayed",
            "description": "value: `merchandising_displayed`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "merchandising_faq_clicked": {
        "title": "merchandising_faq_clicked",
        "description": "Triggered during merchandising when FAQ is clicked.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "offer_ids",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "merchandising_faq_clicked",
            "description": "value: `merchandising_faq_clicked`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "merchandising_offer_attached": {
        "title": "merchandising_offer_attached",
        "description": "Triggered during merchandising when an offer is selected by a user and attached to a booking.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "offer_id",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "merchandising_offer_attached",
            "description": "value: `merchandising_offer_attached`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "offer_id": {
            "type": "string"
          }
        }
      },
      "merchandising_offer_declined": {
        "title": "merchandising_offer_declined",
        "description": "Triggered during merchandising when a user declines an offer.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "offer_ids",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "merchandising_offer_declined",
            "description": "value: `merchandising_offer_declined`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "merchandising_sdk_loaded": {
        "title": "merchandising_sdk_loaded",
        "description": "Triggered when the merchandising SDK is loaded.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "offer_ids",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "merchandising_sdk_loaded",
            "description": "value: `merchandising_sdk_loaded`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "merchant_of_record": {
        "title": "merchant_of_record",
        "description": "Party responsible for processing the payment for the purchased offers.",
        "type": "string",
        "enum": [
          "partner",
          "hts"
        ]
      },
      "method": {
        "title": "method",
        "description": "The method of payment.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/apple_pay"
          },
          {
            "$ref": "#/components/schemas/other"
          },
          {
            "$ref": "#/components/schemas/paypal"
          },
          {
            "$ref": "#/components/schemas/venmo"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "apple_pay": "#/components/schemas/apple_pay",
            "other": "#/components/schemas/other",
            "paypal": "#/components/schemas/paypal",
            "venmo": "#/components/schemas/venmo"
          }
        }
      },
      "missed_connection": {
        "title": "missed_connection",
        "description": "The product becomes exercise eligible in the event of a missed connection.",
        "type": "object",
        "required": [
          "minimum_connection_minutes_threshold"
        ],
        "properties": {
          "minimum_connection_minutes_threshold": {
            "description": "The minimum number of minutes between connections for which the product will consider a connection missed in the event of a disruption.",
            "examples": [
              120
            ],
            "type": "integer",
            "format": "int32",
            "exclusiveMinimum": 0
          }
        }
      },
      "missed_connection1": {
        "title": "missed_connection",
        "description": "A connection was missed due to a prior flight disruption.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "missed_connection",
            "description": "value: `missed_connection`"
          }
        }
      },
      "missed_connection2": {
        "title": "missed_connection",
        "description": "A connection was missed due to a prior flight disruption.",
        "type": "object",
        "required": [
          "segment",
          "minutes_between_disrupted_segments",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "missed_connection",
            "description": "value: `missed_connection`"
          },
          "segment": {
            "$ref": "#/components/schemas/disrupted_segment",
            "description": "The flight segment where the connection was missed."
          },
          "minutes_between_disrupted_segments": {
            "description": "The number of minutes between the disrupted segments.",
            "type": "integer",
            "format": "int32",
            "exclusiveMinimum": 0
          }
        }
      },
      "missing_estimated_time": {
        "title": "missing_estimated_time",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "missing_estimated_time"
          }
        }
      },
      "monetary_transaction": {
        "title": "monetary_transaction",
        "description": "The money exchanged as a part of the status event, if applicable.",
        "type": "object",
        "required": [
          "amount",
          "currency"
        ],
        "properties": {
          "amount": {
            "description": "The amount of the monetary transaction.",
            "type": "string"
          },
          "currency": {
            "description": "The currency of the monetary transaction.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          }
        }
      },
      "non_refundable": {
        "title": "non_refundable",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "non_refundable",
            "description": "value: `non_refundable`"
          }
        }
      },
      "non_refundable_discounts": {
        "title": "non_refundable_discounts",
        "type": "object",
        "required": [
          "amount",
          "name",
          "type"
        ],
        "properties": {
          "type": {
            "description": "A discount to the booking that won't be refunded if the booking is canceled or CFAR is exercised. eg: $5 off first time booking.",
            "examples": [
              "alternate_payment_method"
            ],
            "type": "string",
            "const": "non_refundable_discounts"
          },
          "amount": {
            "examples": [
              "173.24"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          },
          "name": {
            "description": "\n The name of the non-refundable discount, e.g. first time booker incentive, etc.\n Set if useful for refund during exercise, e.g. for display, book keeping, etc.\n ",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "not_allowed": {
        "title": "not_allowed",
        "description": "Voiding is not allowed for this slice.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "not_allowed",
            "description": "value: `not_allowed`"
          }
        }
      },
      "not_allowed1": {
        "title": "not_allowed",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "not_allowed",
            "description": "value: `not_allowed`"
          }
        }
      },
      "not_available": {
        "title": "not_available",
        "description": "Booking information is not available.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "not_available",
            "description": "value: `not_available`"
          }
        }
      },
      "not_merchandisable": {
        "title": "not_merchandisable",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "not_merchandisable"
          }
        }
      },
      "not_provided": {
        "title": "not_provided",
        "description": "\n When partner can not pass any form of payment information.\n Not compatible with HTS as Merchant of Record.\n ",
        "type": "object",
        "required": [
          "amount",
          "type"
        ],
        "properties": {
          "type": {
            "examples": [
              "provided"
            ],
            "type": "string",
            "const": "not_provided",
            "description": "value: `not_provided`"
          },
          "amount": {
            "description": "Total amount of the transaction.",
            "examples": [
              "200.00"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          }
        }
      },
      "not_provided1": {
        "title": "not_provided",
        "description": "Indicates that no email address is available. Only valid when the partner is MOR and cannot provide the email in any form, including hashed. Rejected when HTS is MOR.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "not_provided",
            "description": "value: `not_provided`"
          }
        }
      },
      "not_provided2": {
        "title": "not_provided",
        "description": "\n Used when the partner is Merchant of Record and does not provide payment details.\n Payment information is controlled by the partner and not shared with Hopper.\n ",
        "type": "object",
        "required": [
          "amount",
          "type"
        ],
        "properties": {
          "type": {
            "examples": [
              "alternate_payment_method"
            ],
            "type": "string",
            "const": "not_provided",
            "description": "value: `not_provided`"
          },
          "amount": {
            "examples": [
              "173.24"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          }
        }
      },
      "not_provided3": {
        "title": "not_provided",
        "description": "\n The partner is Merchant of Record and does not provide payout details to Hopper.\n The partner is responsible for all refund processing.\n ",
        "type": "object",
        "required": [
          "amount",
          "type"
        ],
        "properties": {
          "type": {
            "examples": [
              "provided"
            ],
            "type": "string",
            "const": "not_provided",
            "description": "value: `not_provided`"
          },
          "amount": {
            "description": "Total amount of the payout.",
            "examples": [
              "200.00"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          }
        }
      },
      "not_purchased": {
        "title": "not_purchased",
        "description": "The booking was not purchased.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "not_purchased",
            "description": "value: `not_purchased`"
          }
        }
      },
      "notification_preferences": {
        "title": "notification_preferences",
        "description": "Consent for the PRIMARY BOOKER (the email_address / phone_number on this contact_info) to receive disruption notifications via SMS/push. Applies to the primary booker only: additional_recipients never receive SMS or push (they are email-only, notification-only). Captured per offer at purchase; does not persist across offers. Recording consent does not trigger delivery.",
        "type": "object",
        "properties": {
          "sms": {
            "description": "SMS consent for the primary booker's phone_number. Omit = not specified, true = opt-in, false = declined. Requires phone_number to be present; the request is rejected if sms=true and phone_number is absent.",
            "type": "boolean"
          },
          "push": {
            "description": "Push consent for the primary booker. Omit = not specified, true = opt-in, false = declined.",
            "type": "boolean"
          }
        }
      },
      "offer_display_requested": {
        "title": "offer_display_requested",
        "description": "Triggered when a customer explicitly requests to view an offer.",
        "type": "object",
        "required": [
          "session_id",
          "occurred_at",
          "offer_ids",
          "trigger",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "offer_display_requested",
            "description": "value: `offer_display_requested`"
          },
          "session_id": {
            "type": "string"
          },
          "occurred_at": {
            "description": "Date and time at which the event occurred, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "offer_ids": {
            "description": "The offers that the customer is requesting to view.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "trigger": {
            "$ref": "#/components/schemas/request_trigger"
          }
        }
      },
      "offer_expired": {
        "title": "offer_expired",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "offer_expired"
          }
        }
      },
      "offer_not_found": {
        "title": "offer_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "offer_not_found"
          }
        }
      },
      "offer_not_found1": {
        "title": "offer_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "offer_not_found"
          }
        }
      },
      "offer_not_found2": {
        "title": "offer_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "offer_not_found"
          }
        }
      },
      "offer_price": {
        "title": "offer_price",
        "description": "The price breakdown of the product.",
        "type": "object",
        "required": [
          "total_amount",
          "total_amount_per_passenger",
          "base_amount"
        ],
        "properties": {
          "total_amount": {
            "description": "Total amount to be paid for the product, including taxes.",
            "examples": [
              "40.80"
            ],
            "type": "string",
            "minimum": 0
          },
          "total_amount_per_passenger": {
            "description": "The per-passenger amount to be paid for the product, including taxes.",
            "examples": [
              "20.40"
            ],
            "type": "string",
            "minimum": 0
          },
          "base_amount": {
            "description": "Amount to be paid for the product, excluding taxes.",
            "examples": [
              "30.20"
            ],
            "type": "string",
            "minimum": 0
          },
          "taxes": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/tax"
            }
          }
        }
      },
      "offers_eligible": {
        "title": "offers_eligible",
        "type": "object",
        "required": [
          "offers"
        ],
        "properties": {
          "offers": {
            "description": "List of DAFAR offers generated for a given itinerary.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/dafar_offer"
            }
          },
          "merchandising_url": {
            "description": "A URL which links to the HTS offer merchandising micro-site.",
            "type": "string"
          }
        }
      },
      "online_booking_tool": {
        "title": "online_booking_tool",
        "description": "The partner's channel that is interacting with the API.",
        "type": "object",
        "required": [
          "travel_management_company",
          "business",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "online_booking_tool",
            "description": "value: `online_booking_tool`"
          },
          "travel_management_company": {
            "description": "The name of the travel management company.",
            "type": "string",
            "minLength": 1
          },
          "business": {
            "description": "The name of the business.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "or": {
        "title": "or",
        "type": "object",
        "required": [
          "filters",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "or",
            "description": "value: `or`"
          },
          "filters": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/composable_filter"
            }
          }
        }
      },
      "order_already_exists": {
        "title": "order_already_exists",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "order_already_exists"
          }
        }
      },
      "order_item_not_found": {
        "title": "order_item_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "order_item_not_found"
          }
        }
      },
      "order_not_found": {
        "title": "order_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "order_not_found"
          }
        }
      },
      "order_not_found1": {
        "title": "order_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "order_not_found"
          }
        }
      },
      "original_form_of_payment": {
        "title": "original_form_of_payment",
        "description": "The details for this payout describe how the customer will receive their payout via original form(s) of payment at flight booking.",
        "type": "object",
        "required": [
          "payout",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "original_form_of_payment",
            "description": "value: `original_form_of_payment`"
          },
          "payout": {
            "$ref": "#/components/schemas/refundable_payment"
          }
        }
      },
      "other": {
        "title": "other",
        "type": "object",
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "other",
            "description": "value: `other`"
          },
          "name": {
            "description": "Name of the alternate payment method for unsupported types, e.g. Bank Transfer.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "other1": {
        "title": "other",
        "description": "Void was performed for a reason not covered by the other options.",
        "type": "object",
        "required": [
          "reason",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "other",
            "description": "value: `other`"
          },
          "reason": {
            "description": "Human-readable explanation for why this void was performed.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "other2": {
        "title": "other",
        "description": "Policy cancellation was performed for a reason not covered by the other options.",
        "type": "object",
        "required": [
          "reason",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "other",
            "description": "value: `other`"
          },
          "reason": {
            "description": "Human-readable explanation for why this policy cancellation was performed.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "other3": {
        "title": "other",
        "type": "object",
        "required": [
          "description",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "other",
            "description": "value: `other`"
          },
          "description": {
            "type": "string",
            "minLength": 1
          }
        }
      },
      "partner_booking_reference": {
        "title": "partner_booking_reference",
        "description": "The partner's own booking reference (PNR) for a rebooked ticket it already issued. Send it when the partner booked the replacement flight itself, and HTS records this reference instead of issuing its own ticket; omit it when HTS issues the ticket. HTS determines from the price quote whether this field is required.",
        "type": "object",
        "required": [
          "pnrs"
        ],
        "properties": {
          "pnrs": {
            "description": "The PNR(s) of the partner-issued booking.",
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "pattern": "[A-Z0-9]{5,8}"
            }
          }
        }
      },
      "partner_booking_reference_required": {
        "title": "partner_booking_reference_required",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "partner_booking_reference_required"
          }
        }
      },
      "partner_inventory_not_enabled": {
        "title": "partner_inventory_not_enabled",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "partner_inventory_not_enabled"
          }
        }
      },
      "partner_inventory_not_enabled1": {
        "title": "partner_inventory_not_enabled",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "partner_inventory_not_enabled"
          }
        }
      },
      "partner_supplied": {
        "title": "partner_supplied",
        "description": "The partner pushes its own rebook inventory. HTS skips fetching inventory and runs the supplied itineraries through the same eligibility, filtering, and ranking as the HTS-sourced flow. Gated per tenant: senders that are not allowlisted receive 422 partner_inventory_not_enabled.",
        "type": "object",
        "required": [
          "raw_itineraries",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "partner_supplied",
            "description": "value: `partner_supplied`"
          },
          "raw_itineraries": {
            "description": "The partner-supplied itineraries to shop, in the same canonical shape HTS returns from this endpoint. The partner assigns each itinerary a unique id; that id is echoed back in the shop response and is the itinerary_id the partner sends when creating a flight price quote. Each itinerary must end at the final destination of the slice whose segment is disrupted: HTS rebooks through to the slice's final destination rather than replacing only the disrupted segment. For example, for an original slice A->B->C->D where the disrupted segment is B->C, rebook itineraries run from B to D, not B to C. Itineraries that do not end at the slice's final destination are rejected with 400 Bad Request. An empty list yields 204 No Content, the same as an empty HTS shop result. Each itinerary must carry a fare_price (amount and currency); HTS uses it to apply the rebook-allowance filter and to record the redemption amount.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/shopped_itinerary"
            }
          }
        }
      },
      "passenger": {
        "title": "passenger",
        "description": "A passenger on the booking.",
        "type": "object",
        "required": [
          "passenger_type",
          "fare_amount"
        ],
        "properties": {
          "passenger_type": {
            "description": "Type of passenger (e.g. adult, child, lap_infant, seated_infant).",
            "type": "string"
          },
          "fare_amount": {
            "description": "The fare amount for this passenger.",
            "examples": [
              "250.00"
            ],
            "type": "string",
            "minimum": 0
          },
          "ancillaries": {
            "description": "Optional ancillary purchases for this passenger.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ancillary1"
            }
          },
          "id": {
            "description": "A non-PII identifier generated by the partner that uniquely identifies a passenger within the booking and remains stable for the life of the booking.",
            "examples": [
              "passenger-id-1"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "passenger_type": {
        "title": "passenger_type",
        "description": "Type of passenger:<br />* adult - 12+ years of age<br/>* child - 2-11 years of age<br />* seated_infant - < 2 years of age, in their own seat<br />* lap_infant - < 2 years of age, not in their own seat",
        "type": "string",
        "enum": [
          "adult",
          "child",
          "seated_infant",
          "lap_infant"
        ]
      },
      "payment_authorization_failure": {
        "title": "payment_authorization_failure",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "payment_authorization_failure"
          }
        }
      },
      "payment_card": {
        "title": "payment_card",
        "type": "object",
        "required": [
          "amount",
          "identifier",
          "type"
        ],
        "properties": {
          "type": {
            "description": "A credit or debit card. Must be tokenized (refer to above documentation).",
            "examples": [
              "alternate_payment_method"
            ],
            "type": "string",
            "const": "payment_card"
          },
          "amount": {
            "examples": [
              "173.24"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          },
          "identifier": {
            "$ref": "#/components/schemas/identifier"
          }
        }
      },
      "payment_information": {
        "title": "payment_information",
        "description": "Payment information for the contract. Either a detailed breakdown of payment methods (Provided) or a signal that no payment details are available (NotProvided). Payments should equate to the total amount for which a partner is the MoR, e.g. if the partner is collecting the ancillary price, the total of the payments should be inclusive of the price. Must include a tokenized payment card if HTS is merchant of record. If both payments and payment_information are provided, payment_information takes precedence.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/not_provided"
          },
          {
            "$ref": "#/components/schemas/provided"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "not_provided": "#/components/schemas/not_provided",
            "provided": "#/components/schemas/provided"
          }
        }
      },
      "payment_transaction": {
        "title": "payment_transaction",
        "description": "A payment transaction associated with the booking.",
        "type": "object",
        "required": [
          "amount",
          "date_time",
          "transaction_type",
          "payment_type"
        ],
        "properties": {
          "amount": {
            "description": "Monetary amount of the transaction.",
            "examples": [
              "150.00"
            ],
            "type": "string",
            "minimum": 0
          },
          "date_time": {
            "description": "ISO 8601 timestamp when the transaction occurred.",
            "examples": [
              "2024-06-15T10:30:00Z"
            ],
            "type": "string",
            "format": "date-time"
          },
          "transaction_type": {
            "$ref": "#/components/schemas/transaction_type"
          },
          "payment_type": {
            "$ref": "#/components/schemas/payment_type"
          }
        }
      },
      "payment_type": {
        "title": "payment_type",
        "description": "The payment method used for this transaction.",
        "type": "string",
        "enum": [
          "payment_card",
          "not_provided"
        ]
      },
      "payout": {
        "title": "payout",
        "description": "If the product is eligible for payout, the payout to be issued upon exercise.",
        "type": "object",
        "required": [
          "amount",
          "percentage"
        ],
        "properties": {
          "amount": {
            "description": "The total amount to be paid out upon exercise.",
            "examples": [
              "400.00"
            ],
            "type": "string",
            "minimum": 0
          },
          "percentage": {
            "description": "The percentage of the booking to be paid out upon exercise.",
            "examples": [
              100
            ],
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "maximum": 100
          }
        }
      },
      "payout1": {
        "title": "payout",
        "description": "Customer received monetary compensation.",
        "type": "object",
        "required": [
          "id",
          "contract_id",
          "payouts",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "payout",
            "description": "value: `payout`"
          },
          "id": {
            "description": "Unique identifier for this exercise.",
            "type": "string"
          },
          "contract_id": {
            "description": "The contract that was exercised.",
            "type": "string"
          },
          "payouts": {
            "description": "The payouts issued to the customer.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/exercise_payout"
            }
          }
        }
      },
      "payout2": {
        "title": "payout",
        "type": "object",
        "required": [
          "payout_information",
          "currency",
          "reason",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "payout",
            "description": "value: `payout`"
          },
          "payouts": {
            "description": "DEPRECATED: Use payout_information instead. The payouts issued to the customer in the currency of the original booking.",
            "deprecated": true,
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/provided_refundable_payment"
            }
          },
          "payout_information": {
            "$ref": "#/components/schemas/payout_information"
          },
          "currency": {
            "description": "Currency of all exercise payouts.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "reason": {
            "description": "Human-readable explanation for why this exercise was performed.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "payout_information": {
        "title": "payout_information",
        "description": "Payout information for the exercise. Either a detailed breakdown of payouts (Provided) or a signal that no payout details are available (NotProvided). If both payouts and payout_information are provided, payout_information takes precedence.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/not_provided3"
          },
          {
            "$ref": "#/components/schemas/provided1"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "not_provided": "#/components/schemas/not_provided3",
            "provided": "#/components/schemas/provided1"
          }
        }
      },
      "paypal": {
        "title": "paypal",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "paypal",
            "description": "value: `paypal`"
          }
        }
      },
      "penalty": {
        "title": "penalty",
        "description": "Penalty applied to the refund amount, if applicable.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/fee"
          },
          {
            "$ref": "#/components/schemas/percentage"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "fee": "#/components/schemas/fee",
            "percentage": "#/components/schemas/percentage"
          }
        }
      },
      "pending": {
        "title": "pending",
        "description": "The booking is pending.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "pending",
            "description": "value: `pending`"
          }
        }
      },
      "percentage": {
        "title": "percentage",
        "type": "object",
        "required": [
          "value",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "percentage",
            "description": "value: `percentage`"
          },
          "value": {
            "description": "A percentage-based penalty calculated from the fare amount.",
            "type": "string",
            "exclusiveMinimum": 0,
            "maximum": 100
          }
        }
      },
      "policies": {
        "title": "policies",
        "type": "object",
        "properties": {
          "before_departure": {
            "$ref": "#/components/schemas/policy",
            "description": "Policy that applies before the flight departure time."
          },
          "after_departure": {
            "$ref": "#/components/schemas/policy",
            "description": "Policy that applies after the flight departure time."
          },
          "anytime": {
            "$ref": "#/components/schemas/policy",
            "description": "Policy that applies regardless of timing relative to departure."
          }
        }
      },
      "policy": {
        "title": "policy",
        "oneOf": [
          {
            "$ref": "#/components/schemas/non_refundable"
          },
          {
            "$ref": "#/components/schemas/refundable"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "non_refundable": "#/components/schemas/non_refundable",
            "refundable": "#/components/schemas/refundable"
          }
        }
      },
      "post_booking": {
        "title": "post_booking",
        "type": "object",
        "required": [
          "booked_at",
          "booking_references",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "post_booking",
            "description": "value: `post_booking`"
          },
          "booked_at": {
            "description": "Date and time at which the booking was made, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "booking_references": {
            "$ref": "#/components/schemas/map_string",
            "description": "Record locators if PSS, Order ID if OMS, etc. Used to retrieve the flight booking. It's a dictionary of key/value pairs. The keys can be anything, but they are referenced in the configuration when retrieving the booking, so those must align."
          }
        }
      },
      "pre_booking": {
        "title": "pre_booking",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "pre_booking",
            "description": "value: `pre_booking`"
          }
        }
      },
      "price_offers_error": {
        "title": "price_offers_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/offer_not_found"
          },
          {
            "$ref": "#/components/schemas/session_not_found"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "offer_not_found": "#/components/schemas/offer_not_found",
            "session_not_found": "#/components/schemas/session_not_found"
          }
        }
      },
      "price_offers_request": {
        "title": "price_offers_request",
        "type": "object",
        "required": [
          "offer_ids",
          "currency",
          "itinerary"
        ],
        "properties": {
          "offer_ids": {
            "description": "Ids of the offer(s) to create new priced offers for.",
            "type": "array",
            "minItems": 1,
            "items": {
              "description": "Unique identifier for an offer.",
              "type": "string"
            }
          },
          "currency": {
            "description": "Currency of all pricing fields within the request.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "itinerary": {
            "$ref": "#/components/schemas/ancillary_itinerary"
          },
          "billing_jurisdiction": {
            "$ref": "#/components/schemas/billing_jurisdiction",
            "description": "Billing jurisdiction of the user buying the product(s). Recommended for accurate tax calculations at the price offer step, especially if HTS is merchant of record, to avoid corrections at the create order step since it would be after the user has clicked 'book'."
          },
          "user_id": {
            "description": "The ID of a user as defined by the partner",
            "examples": [
              "33bb4eb2-2937-4bd3-97b1-7796206712f0"
            ],
            "type": "string"
          }
        }
      },
      "price_quote_expired": {
        "title": "price_quote_expired",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "price_quote_expired"
          }
        }
      },
      "provided": {
        "title": "provided",
        "description": "\n The partner provides a detailed list of payment methods used for the booking.\n This is the standard flow where Hopper receives full payment details.\n ",
        "type": "object",
        "required": [
          "payment_methods",
          "type"
        ],
        "properties": {
          "type": {
            "examples": [
              "provided"
            ],
            "type": "string",
            "const": "provided",
            "description": "value: `provided`"
          },
          "payment_methods": {
            "description": "\n List of payment methods used to pay for the booking.\n ",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/provided_payment"
            }
          }
        }
      },
      "provided1": {
        "title": "provided",
        "description": "\n The partner provides a detailed list of payouts issued to the customer.\n This is the standard flow where Hopper receives full payout details.\n ",
        "type": "object",
        "required": [
          "payouts",
          "type"
        ],
        "properties": {
          "type": {
            "examples": [
              "provided"
            ],
            "type": "string",
            "const": "provided",
            "description": "value: `provided`"
          },
          "payouts": {
            "description": "\n List of payouts issued to the customer.\n ",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/provided_refundable_payment"
            }
          }
        }
      },
      "provided_payment": {
        "title": "provided_payment",
        "oneOf": [
          {
            "$ref": "#/components/schemas/alternate_payment_method"
          },
          {
            "$ref": "#/components/schemas/loyalty_program"
          },
          {
            "$ref": "#/components/schemas/non_refundable_discounts"
          },
          {
            "$ref": "#/components/schemas/payment_card"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "alternate_payment_method": "#/components/schemas/alternate_payment_method",
            "loyalty_program": "#/components/schemas/loyalty_program",
            "non_refundable_discounts": "#/components/schemas/non_refundable_discounts",
            "payment_card": "#/components/schemas/payment_card"
          }
        }
      },
      "provided_refundable_payment": {
        "title": "provided_refundable_payment",
        "oneOf": [
          {
            "$ref": "#/components/schemas/alternate_payment_method"
          },
          {
            "$ref": "#/components/schemas/loyalty_program"
          },
          {
            "$ref": "#/components/schemas/payment_card"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "alternate_payment_method": "#/components/schemas/alternate_payment_method",
            "loyalty_program": "#/components/schemas/loyalty_program",
            "payment_card": "#/components/schemas/payment_card"
          }
        }
      },
      "purchasable": {
        "title": "purchasable",
        "description": "A purchasable fare detail.",
        "type": "object",
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "purchasable",
            "description": "value: `purchasable`"
          },
          "text": {
            "description": "Description text for this fare detail.",
            "examples": [
              "Seat selection available for purchase"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "reason": {
        "title": "reason",
        "description": "Explanation for why this void occurred.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/good_will"
          },
          {
            "$ref": "#/components/schemas/not_purchased"
          },
          {
            "$ref": "#/components/schemas/other1"
          },
          {
            "$ref": "#/components/schemas/void_window"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "good_will": "#/components/schemas/good_will",
            "not_purchased": "#/components/schemas/not_purchased",
            "other": "#/components/schemas/other1",
            "void_window": "#/components/schemas/void_window"
          }
        }
      },
      "reason1": {
        "title": "reason",
        "description": "Explanation for why this cancellation occurred.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/chargeback"
          },
          {
            "$ref": "#/components/schemas/other2"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "chargeback": "#/components/schemas/chargeback",
            "other": "#/components/schemas/other2"
          }
        }
      },
      "rebook": {
        "title": "rebook",
        "description": "Customer was rebooked on alternative flights.",
        "type": "object",
        "required": [
          "id",
          "contract_id",
          "rebooked_segments",
          "itinerary",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "rebook",
            "description": "value: `rebook`"
          },
          "id": {
            "description": "Unique identifier for this exercise.",
            "type": "string"
          },
          "contract_id": {
            "description": "The contract that was exercised.",
            "type": "string"
          },
          "rebooked_segments": {
            "description": "The new flight segments the customer was rebooked on.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/itinerary_slice_segment"
            }
          },
          "itinerary": {
            "$ref": "#/components/schemas/confirmed_itinerary"
          }
        }
      },
      "rebook_eligibility": {
        "title": "rebook_eligibility",
        "oneOf": [
          {
            "$ref": "#/components/schemas/eligible"
          },
          {
            "$ref": "#/components/schemas/ineligible"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "eligible": "#/components/schemas/eligible",
            "ineligible": "#/components/schemas/ineligible"
          }
        }
      },
      "rebook_eligibility_response": {
        "title": "rebook_eligibility_response",
        "type": "object",
        "required": [
          "slices"
        ],
        "properties": {
          "slices": {
            "description": "Slice-grouped eligibility for the contract's itinerary. Each slice carries its segments' eligibility for rebook.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/slice_eligibility"
            }
          }
        }
      },
      "rebooking": {
        "title": "rebooking",
        "type": "object",
        "required": [
          "amount",
          "currency",
          "reason",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "rebooking",
            "description": "value: `rebooking`"
          },
          "amount": {
            "description": "The amount that the rebooking cost in the currency of the original booking.",
            "type": "string",
            "exclusiveMinimum": 0
          },
          "currency": {
            "description": "Currency of the rebooking amount.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "reason": {
            "description": "Human-readable explanation for why this exercise was performed.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "refund_amount_more_than_outstanding_balance": {
        "title": "refund_amount_more_than_outstanding_balance",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "refund_amount_more_than_outstanding_balance"
          }
        }
      },
      "refund_amount_more_than_outstanding_balance1": {
        "title": "refund_amount_more_than_outstanding_balance",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "refund_amount_more_than_outstanding_balance"
          }
        }
      },
      "refund_method": {
        "title": "refund_method",
        "description": "The method by which the refund will be processed.",
        "type": "string",
        "enum": [
          "original_form_of_payment",
          "future_travel_credit"
        ]
      },
      "refundable": {
        "title": "refundable",
        "type": "object",
        "required": [
          "method",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "refundable",
            "description": "value: `refundable`"
          },
          "method": {
            "$ref": "#/components/schemas/refund_method"
          },
          "penalty": {
            "$ref": "#/components/schemas/penalty"
          }
        }
      },
      "refundable_payment": {
        "title": "refundable_payment",
        "description": "The payment details for this payout.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/alternate_payment_method"
          },
          {
            "$ref": "#/components/schemas/loyalty_program"
          },
          {
            "$ref": "#/components/schemas/not_provided2"
          },
          {
            "$ref": "#/components/schemas/payment_card"
          },
          {
            "$ref": "#/components/schemas/reseller_controlled"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "alternate_payment_method": "#/components/schemas/alternate_payment_method",
            "loyalty_program": "#/components/schemas/loyalty_program",
            "not_provided": "#/components/schemas/not_provided2",
            "payment_card": "#/components/schemas/payment_card",
            "reseller_controlled": "#/components/schemas/reseller_controlled"
          }
        }
      },
      "reported_disruption": {
        "title": "reported_disruption",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "reported_disruption",
            "description": "value: `reported_disruption`"
          }
        }
      },
      "request_trigger": {
        "title": "request_trigger",
        "description": "What prompted the customer to request to view an offer.",
        "type": "object",
        "required": [
          "page",
          "entry_point"
        ],
        "properties": {
          "page": {
            "description": "The page where the request was triggered.",
            "examples": [
              "checkout"
            ],
            "type": "string",
            "minLength": 1
          },
          "entry_point": {
            "description": "The entry point of the flow where the request was triggered.",
            "examples": [
              "postbooking"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "reseller_controlled": {
        "title": "reseller_controlled",
        "type": "object",
        "required": [
          "amount",
          "type"
        ],
        "properties": {
          "type": {
            "description": "The partner does not charge the user directly and thus does not have payment information.",
            "examples": [
              "alternate_payment_method"
            ],
            "type": "string",
            "const": "reseller_controlled"
          },
          "amount": {
            "examples": [
              "173.24"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          }
        }
      },
      "search_contracts_request": {
        "title": "search_contracts_request",
        "type": "object",
        "required": [
          "filter"
        ],
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/filter"
          }
        }
      },
      "search_contracts_response": {
        "title": "search_contracts_response",
        "type": "object",
        "required": [
          "contracts"
        ],
        "properties": {
          "contracts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/dafar_contract"
            }
          }
        }
      },
      "search_criteria": {
        "title": "search_criteria",
        "description": "The canonical search HTS applies before shopping one slice of a rebook: the origin/destination airports (original plus nearby) and the departure date window. Partners running their own supplier search must apply these criteria so their rebook options match the HTS-sourced flow. HTS still re-filters and re-ranks whatever is shopped.",
        "type": "object",
        "required": [
          "slice_index",
          "origin_airports",
          "destination_airports",
          "departure_date_window"
        ],
        "properties": {
          "slice_index": {
            "description": "Zero-based position in slices of the slice these criteria search for.",
            "examples": [
              0
            ],
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "origin_airports": {
            "description": "Origin airports to search: the original airport plus any nearby airports HTS would include.",
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "pattern": "[A-Z]{3}"
            }
          },
          "destination_airports": {
            "description": "Destination airports to search: the original airport plus any nearby airports HTS would include.",
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "pattern": "[A-Z]{3}"
            }
          },
          "departure_date_window": {
            "$ref": "#/components/schemas/date_window"
          }
        }
      },
      "segment": {
        "title": "segment",
        "type": "object",
        "required": [
          "details"
        ],
        "properties": {
          "details": {
            "description": "Fare details for this segment.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/fare_detail"
            }
          }
        }
      },
      "segment_eligibility": {
        "title": "segment_eligibility",
        "type": "object",
        "required": [
          "id",
          "origin_airport",
          "destination_airport",
          "departure_date_time",
          "arrival_date_time",
          "marketing_carrier_code",
          "marketing_flight_number",
          "cabin",
          "rebook_eligibility"
        ],
        "properties": {
          "id": {
            "description": "Stable identifier for this segment within the rebook eligibility. Echo it back as segment_id on the flight shop request to rebook this exact segment. Stable across eligibility calls for the same disruption.",
            "examples": [
              "seg_1"
            ],
            "type": "string"
          },
          "origin_airport": {
            "description": "IATA code of the origin airport.",
            "examples": [
              "YUL"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination_airport": {
            "description": "IATA code of the destination airport.",
            "examples": [
              "YYZ"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date_time": {
            "description": "Scheduled local departure date and time in ISO Local Date Time format.",
            "examples": [
              "2024-06-15T14:30"
            ],
            "type": "string"
          },
          "arrival_date_time": {
            "description": "Scheduled local arrival date and time in ISO Local Date Time format.",
            "examples": [
              "2024-06-15T16:00"
            ],
            "type": "string"
          },
          "marketing_carrier_code": {
            "description": "IATA marketing carrier code.",
            "examples": [
              "AC"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "marketing_flight_number": {
            "description": "Marketing flight number.",
            "examples": [
              123
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "cabin": {
            "$ref": "#/components/schemas/cabin",
            "description": "Cabin class.",
            "examples": [
              "Economy"
            ]
          },
          "reservation_booking_designator": {
            "description": "Reservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. `Y`, `B`, `M`, `Q`, `N`, `J`, `F`, `E1`). Pass the code exactly as it appears on the ticket/PNR.",
            "examples": [
              "J"
            ],
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]?$"
          },
          "rebook_eligibility": {
            "$ref": "#/components/schemas/rebook_eligibility",
            "description": "Whether this segment is eligible for rebook, with the search criteria when it is."
          },
          "disruption": {
            "$ref": "#/components/schemas/disruption_reason",
            "description": "The disruption experienced by the segment, if any has occurred."
          }
        }
      },
      "segment_not_in_contract": {
        "title": "segment_not_in_contract",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "segment_not_in_contract"
          }
        }
      },
      "session_not_found": {
        "title": "session_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "session_not_found"
          }
        }
      },
      "shop_expired": {
        "title": "shop_expired",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "shop_expired"
          }
        }
      },
      "shopped_fare_price": {
        "title": "shopped_fare_price",
        "description": "Total price of the fare for this itinerary. Required on each partner-supplied raw itinerary: HTS uses it to apply the rebook-allowance filter and to record the redemption amount. Never present on itineraries in the shop response.",
        "type": "object",
        "required": [
          "amount",
          "currency"
        ],
        "properties": {
          "amount": {
            "description": "Total fare amount, including taxes. Must be greater than zero.",
            "examples": [
              "350.00"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          },
          "currency": {
            "description": "Currency of the fare amount, as an ISO 4217 code.",
            "examples": [
              "USD"
            ],
            "type": "string"
          }
        }
      },
      "shopped_itinerary": {
        "title": "shopped_itinerary",
        "type": "object",
        "required": [
          "id",
          "slices"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this itinerary.",
            "examples": [
              "itin_1"
            ],
            "type": "string"
          },
          "slices": {
            "description": "The slices (legs) of this itinerary.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/shopped_slice"
            }
          },
          "fare_price": {
            "$ref": "#/components/schemas/shopped_fare_price"
          }
        }
      },
      "shopped_segment": {
        "title": "shopped_segment",
        "type": "object",
        "required": [
          "origin_airport",
          "destination_airport",
          "departure_date_time",
          "arrival_date_time",
          "marketing_carrier_code",
          "marketing_flight_number",
          "cabin"
        ],
        "properties": {
          "origin_airport": {
            "description": "IATA code of the origin airport.",
            "examples": [
              "YUL"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination_airport": {
            "description": "IATA code of the destination airport.",
            "examples": [
              "YYZ"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date_time": {
            "description": "Scheduled local departure date and time in ISO Local Date Time format.",
            "examples": [
              "2024-06-15T14:30"
            ],
            "type": "string"
          },
          "arrival_date_time": {
            "description": "Scheduled local arrival date and time in ISO Local Date Time format.",
            "examples": [
              "2024-06-15T16:00"
            ],
            "type": "string"
          },
          "marketing_carrier_code": {
            "description": "IATA marketing carrier code.",
            "examples": [
              "AC"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "marketing_flight_number": {
            "description": "Marketing flight number.",
            "examples": [
              123
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "operating_carrier_code": {
            "description": "IATA operating carrier code, present when the flight is operated by a different carrier.",
            "examples": [
              "QK"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "operating_flight_number": {
            "description": "Operating flight number, present when the flight is operated under a different number.",
            "examples": [
              456
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "cabin": {
            "$ref": "#/components/schemas/cabin",
            "description": "Cabin class.",
            "examples": [
              "Economy"
            ]
          },
          "reservation_booking_designator": {
            "description": "Reservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. `Y`, `B`, `M`, `Q`, `N`, `J`, `F`, `E1`). Pass the code exactly as it appears on the ticket/PNR.",
            "examples": [
              "F"
            ],
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]?$"
          }
        }
      },
      "shopped_slice": {
        "title": "shopped_slice",
        "type": "object",
        "required": [
          "segments"
        ],
        "properties": {
          "segments": {
            "description": "The segments in this slice.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/shopped_segment"
            }
          },
          "fare_brand": {
            "description": "Name of the fare brand for this slice, if the source provides one.",
            "examples": [
              "Economy Flex"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "slice": {
        "title": "slice",
        "type": "object",
        "required": [
          "segments"
        ],
        "properties": {
          "segments": {
            "description": "Segments within this slice, each with fare details.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/segment"
            }
          }
        }
      },
      "slice1": {
        "title": "slice",
        "description": "A single leg of the itinerary, containing one or more segments.",
        "type": "object",
        "required": [
          "segments",
          "fare_brand"
        ],
        "properties": {
          "segments": {
            "description": "The flight segments within this slice.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/slice_segment"
            }
          },
          "fare_brand": {
            "description": "The fare brand for this slice.",
            "type": "string"
          }
        }
      },
      "slice_eligibility": {
        "title": "slice_eligibility",
        "type": "object",
        "required": [
          "segments"
        ],
        "properties": {
          "segments": {
            "description": "The ordered list of segments that make up this slice.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/segment_eligibility"
            }
          }
        }
      },
      "slice_segment": {
        "title": "slice_segment",
        "description": "A single flight segment.",
        "type": "object",
        "required": [
          "origin_airport",
          "destination_airport",
          "departure_date_time",
          "arrival_date_time",
          "cabin",
          "marketing_carrier_code",
          "marketing_flight_number"
        ],
        "properties": {
          "origin_airport": {
            "description": "IATA code of the origin airport.",
            "examples": [
              "YUL"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination_airport": {
            "description": "IATA code of the destination airport.",
            "examples": [
              "YYZ"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date_time": {
            "description": "Scheduled local departure date and time in ISO Local Date Time format.",
            "examples": [
              "2024-06-15T14:30"
            ],
            "type": "string"
          },
          "arrival_date_time": {
            "description": "Scheduled local arrival date and time in ISO Local Date Time format.",
            "examples": [
              "2024-06-15T16:00"
            ],
            "type": "string"
          },
          "cabin": {
            "$ref": "#/components/schemas/cabin",
            "description": "Cabin class.",
            "examples": [
              "Economy"
            ]
          },
          "reservation_booking_designator": {
            "description": "Reservation Booking Designator (RBD) for this segment: the booking code the airline sold the seat under, one uppercase letter and an optional second letter or digit. Also known as booking class, booking code, class of service, or fare class (e.g. `Y`, `B`, `M`, `Q`, `N`, `J`, `F`, `E1`). Pass the code exactly as it appears on the ticket/PNR.",
            "examples": [
              "N"
            ],
            "type": "string",
            "pattern": "^[A-Z][A-Z0-9]?$"
          },
          "marketing_carrier_code": {
            "description": "IATA marketing carrier code.",
            "examples": [
              "AC"
            ],
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "marketing_flight_number": {
            "description": "Marketing flight number.",
            "examples": [
              123
            ],
            "type": "string",
            "pattern": "[0-9]{1,4}"
          },
          "operating_carrier_code": {
            "description": "IATA operating carrier code, if different from marketing carrier.",
            "type": "string",
            "pattern": "[A-Z0-9]{2}"
          },
          "operating_flight_number": {
            "description": "Operating flight number, if different from marketing flight number.",
            "type": "string",
            "pattern": "[0-9]{1,4}"
          }
        }
      },
      "status": {
        "title": "status",
        "examples": [
          "Confirmed"
        ],
        "type": "string",
        "enum": [
          "canceled",
          "confirmed",
          "drafted",
          "exercise_eligible",
          "expired",
          "exercised",
          "voided"
        ]
      },
      "status1": {
        "title": "status",
        "description": "Current status of the booking.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/confirmed"
          },
          {
            "$ref": "#/components/schemas/failed"
          },
          {
            "$ref": "#/components/schemas/pending"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "confirmed": "#/components/schemas/confirmed",
            "failed": "#/components/schemas/failed",
            "pending": "#/components/schemas/pending"
          }
        }
      },
      "status_update": {
        "title": "status_update",
        "description": "The status update that occurred for the flight.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/canceled1"
          },
          {
            "$ref": "#/components/schemas/delayed1"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "canceled": "#/components/schemas/canceled1",
            "delayed": "#/components/schemas/delayed1"
          }
        }
      },
      "tax": {
        "title": "tax",
        "type": "object",
        "required": [
          "code",
          "amount"
        ],
        "properties": {
          "code": {
            "description": "Code representing this tax.",
            "examples": [
              "VAT"
            ],
            "type": "string",
            "minLength": 1
          },
          "amount": {
            "description": "Total amount of the tax.",
            "examples": [
              "20.00"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          }
        }
      },
      "token": {
        "title": "token",
        "type": "object",
        "required": [
          "value",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "token",
            "description": "value: `token`"
          },
          "value": {
            "description": "\n The token representing a credit card or a debit card.\n Used to process refunds to the original form of payment.\n ",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "transaction_type": {
        "title": "transaction_type",
        "description": "Whether this transaction is a charge or refund.",
        "type": "string",
        "enum": [
          "user_charge",
          "user_refund"
        ]
      },
      "unavailable": {
        "title": "unavailable",
        "description": "An unavailable fare detail.",
        "type": "object",
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "unavailable",
            "description": "value: `unavailable`"
          },
          "text": {
            "description": "Description text for this fare detail.",
            "examples": [
              "No checked bags"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      },
      "unprocessable_entity_contract_exercise_eligible_error": {
        "title": "unprocessable_entity_contract_exercise_eligible_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/contract_exercise_eligible_error"
        }
      },
      "unprocessable_entity_create_merchandising_url_error": {
        "title": "unprocessable_entity_create_merchandising_url_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/create_merchandising_url_error"
        }
      },
      "unprocessable_entity_create_offers_error": {
        "title": "unprocessable_entity_create_offers_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/create_offers_error"
        }
      },
      "unprocessable_entity_dafar_cancel_contract_error": {
        "title": "unprocessable_entity_dafar_cancel_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_cancel_contract_error"
        }
      },
      "unprocessable_entity_dafar_confirm_contract_error": {
        "title": "unprocessable_entity_dafar_confirm_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_confirm_contract_error"
        }
      },
      "unprocessable_entity_dafar_create_draft_contract_error": {
        "title": "unprocessable_entity_dafar_create_draft_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_create_draft_contract_error"
        }
      },
      "unprocessable_entity_dafar_create_flights_exercise_quote_error": {
        "title": "unprocessable_entity_dafar_create_flights_exercise_quote_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_create_flights_exercise_quote_error"
        }
      },
      "unprocessable_entity_dafar_exercise_contract_error": {
        "title": "unprocessable_entity_dafar_exercise_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_exercise_contract_error"
        }
      },
      "unprocessable_entity_dafar_flight_booking_error": {
        "title": "unprocessable_entity_dafar_flight_booking_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_flight_booking_error"
        }
      },
      "unprocessable_entity_dafar_flight_price_quote_error": {
        "title": "unprocessable_entity_dafar_flight_price_quote_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_flight_price_quote_error"
        }
      },
      "unprocessable_entity_dafar_flight_shop_error": {
        "title": "unprocessable_entity_dafar_flight_shop_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_flight_shop_error"
        }
      },
      "unprocessable_entity_dafar_rebook_eligibility_error": {
        "title": "unprocessable_entity_dafar_rebook_eligibility_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_rebook_eligibility_error"
        }
      },
      "unprocessable_entity_dafar_update_contact_info_error": {
        "title": "unprocessable_entity_dafar_update_contact_info_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_update_contact_info_error"
        }
      },
      "unprocessable_entity_dafar_void_contract_error": {
        "title": "unprocessable_entity_dafar_void_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/dafar_void_contract_error"
        }
      },
      "unprocessable_entity_flight_status_update_error": {
        "title": "unprocessable_entity_flight_status_update_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/flight_status_update_error"
        }
      },
      "unprocessable_entity_price_offers_error": {
        "title": "unprocessable_entity_price_offers_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/price_offers_error"
        }
      },
      "unsupported_trip_type": {
        "title": "unsupported_trip_type",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "unsupported_trip_type"
          }
        }
      },
      "unsupported_trip_type1": {
        "title": "unsupported_trip_type",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "unsupported_trip_type"
          }
        }
      },
      "venmo": {
        "title": "venmo",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "venmo",
            "description": "value: `venmo`"
          }
        }
      },
      "verification_status": {
        "title": "verification_status",
        "description": "\n The partner's verification status for this agent. An opaque partner assertion: this API does not define\n what a partner must do to assert `verified`. Partners that run no verification programme send `not_supported`.\n ",
        "type": "string",
        "enum": [
          "verified",
          "unverified",
          "not_supported"
        ]
      },
      "void_contract_request": {
        "title": "void_contract_request",
        "type": "object",
        "required": [
          "reason"
        ],
        "properties": {
          "reason": {
            "$ref": "#/components/schemas/reason"
          }
        }
      },
      "void_policy": {
        "title": "void_policy",
        "description": "The void policy for the slice, describing whether and how long a booking can be voided after purchase. If not specified, the void policy is unknown.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/allowed"
          },
          {
            "$ref": "#/components/schemas/allowed_for"
          },
          {
            "$ref": "#/components/schemas/allowed_until"
          },
          {
            "$ref": "#/components/schemas/not_allowed"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "allowed": "#/components/schemas/allowed",
            "allowed_for": "#/components/schemas/allowed_for",
            "allowed_until": "#/components/schemas/allowed_until",
            "not_allowed": "#/components/schemas/not_allowed"
          }
        }
      },
      "void_policy1": {
        "title": "void_policy",
        "description": "Whether the booking is eligible to be voided.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/allowed1"
          },
          {
            "$ref": "#/components/schemas/allowed_until1"
          },
          {
            "$ref": "#/components/schemas/not_allowed1"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "allowed": "#/components/schemas/allowed1",
            "allowed_until": "#/components/schemas/allowed_until1",
            "not_allowed": "#/components/schemas/not_allowed1"
          }
        }
      },
      "void_window": {
        "title": "void_window",
        "description": "Customer wants to exercise while the booking's void window is still active.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "void_window",
            "description": "value: `void_window`"
          }
        }
      },
      "white_label": {
        "title": "white_label",
        "description": "The partner's channel that is interacting with the API.",
        "type": "object",
        "required": [
          "brand",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "white_label",
            "description": "value: `white_label`"
          },
          "brand": {
            "description": "The brand name of the white label partner.",
            "examples": [
              "Bank XYZ"
            ],
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "securitySchemes": {
      "PartnerAuth": {
        "type": "apiKey",
        "description": "This API supports authentication via API Key. Clients should include their API key in every request using the `X-Api-Key` header.\n\n**Example Request**:\n\n```\ncurl --request GET --url https://api.hopper.com/v1/example --header 'X-Api-Key: <your-api-key>'\n```\n",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  }
}
