{
  "openapi": "3.1.0",
  "info": {
    "title": "Flights CFAR 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-cfar-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-cfar-merchandising></hts-flights-cfar-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-cfar-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-cfar\",\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-cfar\",\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-cfar\",\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-cfar-merchandising\n  selected=\"none\"\n  rewards-type=\"miles\"\n  rewards-conversion=\"100\"\n  entry-point=\"postbooking\"\n></hts-flights-cfar-merchandising>\n\n<!-- Pre-select a specific offer -->\n<hts-flights-cfar-merchandising selected=\"0018868d-...\"></hts-flights-cfar-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": "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-cfar/v2",
      "description": "Production"
    },
    {
      "url": "https://fintech.staging.htsapis.com/flights-cfar/v2",
      "description": "Staging"
    }
  ],
  "paths": {
    "/synthetic_fares": {
      "post": {
        "tags": [
          "Offer & Merchandising"
        ],
        "summary": "Create Synthetic Fares",
        "description": "Create synthetic fares for a customer's itinerary.",
        "operationId": "postSynthetic_fares",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/create_synthetic_fares_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Synthetic fare offers generated for a list itineraries. There will be at least one synthetic fare offer returned. If no offers are available, a 204 No Content will be returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/synthetic_fares_eligible"
                }
              }
            }
          },
          "204": {
            "description": "No synthetic fares available for the itineraries"
          },
          "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_synthetic_fares_error"
                }
              }
            }
          },
          "499": {
            "description": "The client cancelled the request"
          },
          "500": {
            "description": "The server encountered an internal error"
          }
        },
        "security": [
          {
            "PartnerAuth": []
          }
        ]
      }
    },
    "/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.",
            "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/cfar_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 offer's 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/cfar_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_cfar_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_cfar_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/cfar_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}/user_projected_payouts": {
      "post": {
        "tags": [
          "Contract Management"
        ],
        "summary": "Get User Projected Payouts",
        "description": "\nReturns the projected payout a user would receive if they exercised CFAR on this contract, for each\npayout option, broken down by how they would be refunded. Read-only; does not create an exercise quote.\n\nThe projection uses the same payout calculation as the exercise quote. Where the contract carries a\ncancellation penalty, the payout is capped at that penalty, as it is when exercising. The projection is\nreturned even while the booking is within the void window.\n\nReturns 422 if the contract is not in a state that can be exercised (already exercised, voided, cancelled,\nexpired or not purchased); the body carries the specific reason.\n",
        "operationId": "postContractsIdUser_projected_payouts",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier for a contract.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The projected payout breakdown, by payout option",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/user_payouts_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_user_payouts_error"
                }
              }
            }
          },
          "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": "\nRecord an exercise for all remaining passengers or only the identified passengers.\nFull-itinerary exercise uses supplied payouts; passenger exercise records the full covered amount for the selected passengers in the contract's currency.\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_cfar_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_cfar_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_cfar_cancel_contract_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 CFAR Exercise Quote",
        "description": "Create CFAR exercise quote",
        "operationId": "postContractsIdExercise_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_cfar_exercise_quote_request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/cfar_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_cfar_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 CFAR 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"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/fulfill_exercise_quote_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"
          },
          "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. When exercise_type is omitted on an event that supports it, this endpoint stores payout and preserves an explicit value.",
        "operationId": "postEvents",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/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"
          }
        }
      }
    },
    "/cancel_booking": {
      "post": {
        "tags": [
          "Partner Endpoints"
        ],
        "summary": "Cancel Booking",
        "description": "Called by HTS to cancel a flight booking in the partner system as part of a contract exercise flow.\n\nHTS provides the booking references in the request body to identify the booking to cancel.\n\nCancellation may be processed synchronously or asynchronously:\n- **202 Accepted** — cancellation initiated asynchronously; HTS will poll or await a callback for completion\n- **204 No Content** — cancellation completed synchronously; no response body expected\n\nPartner implementations may vary — some always process cancellations synchronously, others always\nasynchronously. HTS is designed to handle these variations gracefully.\n\nKnown 422 error codes:\n- `already_canceled` — booking has already been canceled\n- `last_slice_departed` — booking cannot be canceled because the last slice has already departed",
        "operationId": "cancel_booking",
        "responses": {
          "202": {
            "description": "Accepted for asynchronous processing"
          },
          "204": {
            "description": "Completed successfully"
          },
          "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_drafted": {
      "post": {
        "summary": "Contract Drafted",
        "description": "Sent when a CFAR contract is drafted.",
        "operationId": "contract_drafted",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/contract_drafted_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_confirmed": {
      "post": {
        "summary": "Contract Confirmed",
        "description": "Sent when a CFAR 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_exercised": {
      "post": {
        "summary": "Contract Exercised",
        "description": "Sent when a customer has successfully exercised their CFAR 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_voided": {
      "post": {
        "summary": "Contract Voided",
        "description": "Sent when a CFAR 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"
          }
        }
      }
    },
    "contract_canceled": {
      "post": {
        "summary": "Contract Canceled",
        "description": "Sent when a CFAR 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"
          }
        }
      }
    }
  },
  "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`"
          }
        }
      },
      "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_info_required_for_merchant_of_record_hts": {
        "title": "billing_info_required_for_merchant_of_record_hts",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "billing_info_required_for_merchant_of_record_hts"
          }
        }
      },
      "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_already_canceled": {
        "title": "booking_already_canceled",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "booking_already_canceled"
          }
        }
      },
      "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_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"
          }
        }
      },
      "cfar_cancel_contract_error": {
        "title": "cfar_cancel_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_contract_status3"
          },
          {
            "$ref": "#/components/schemas/order_item_not_found"
          },
          {
            "$ref": "#/components/schemas/payment_refund_failed1"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_contract_status": "#/components/schemas/invalid_contract_status3",
            "order_item_not_found": "#/components/schemas/order_item_not_found",
            "payment_refund_failed": "#/components/schemas/payment_refund_failed1"
          }
        }
      },
      "cfar_confirm_contract_error": {
        "title": "cfar_confirm_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_contract_status"
          },
          {
            "$ref": "#/components/schemas/order_not_found"
          },
          {
            "$ref": "#/components/schemas/payment_capture_failed"
          },
          {
            "$ref": "#/components/schemas/pnr_required"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_contract_status": "#/components/schemas/invalid_contract_status",
            "order_not_found": "#/components/schemas/order_not_found",
            "payment_capture_failed": "#/components/schemas/payment_capture_failed",
            "pnr_required": "#/components/schemas/pnr_required"
          }
        }
      },
      "cfar_contract": {
        "title": "cfar_contract",
        "type": "object",
        "required": [
          "id",
          "status",
          "price",
          "payout",
          "currency",
          "expires_at",
          "booking_references",
          "exercises"
        ],
        "properties": {
          "id": {
            "description": "Unique ID for a contract.",
            "examples": [
              "1ec9eed3-4486-6460-9d6c-2fb8469d35db"
            ],
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/status"
          },
          "price": {
            "$ref": "#/components/schemas/contract_price"
          },
          "payout": {
            "$ref": "#/components/schemas/payout"
          },
          "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."
          },
          "exercises": {
            "description": "Exercises completed for this contract.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/cfar_contract_exercise"
            }
          }
        }
      },
      "cfar_contract_exercise": {
        "title": "cfar_contract_exercise",
        "description": "Details of an exercise completed for this contract.",
        "type": "object",
        "required": [
          "id",
          "exercised_at",
          "payouts"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this exercise.",
            "type": "string"
          },
          "exercised_at": {
            "description": "Date and time at which the exercise was completed, as a UTC RFC3339 formatted datetime.",
            "type": "string",
            "format": "date-time"
          },
          "payouts": {
            "description": "The payouts issued for this exercise.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/cfar_exercise_payout"
            }
          },
          "passenger_ids": {
            "description": "Identifier for each passenger exercised. Omitted only when identifiers are unavailable.",
            "type": "array",
            "minItems": 1,
            "items": {
              "description": "A unique identifier for a passenger within the booking.",
              "type": "string",
              "minLength": 1
            }
          }
        }
      },
      "cfar_create_draft_contract_error": {
        "title": "cfar_create_draft_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/billing_info_required_for_merchant_of_record_hts"
          },
          {
            "$ref": "#/components/schemas/idempotency_key_reused"
          },
          {
            "$ref": "#/components/schemas/invalid_email"
          },
          {
            "$ref": "#/components/schemas/invalid_itinerary_price"
          },
          {
            "$ref": "#/components/schemas/offer_expired1"
          },
          {
            "$ref": "#/components/schemas/offer_not_found2"
          },
          {
            "$ref": "#/components/schemas/offer_not_priced"
          },
          {
            "$ref": "#/components/schemas/order_already_exists"
          },
          {
            "$ref": "#/components/schemas/payment_authorization_failure"
          },
          {
            "$ref": "#/components/schemas/payment_card_required_for_merchant_of_record_hts"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "billing_info_required_for_merchant_of_record_hts": "#/components/schemas/billing_info_required_for_merchant_of_record_hts",
            "idempotency_key_reused": "#/components/schemas/idempotency_key_reused",
            "invalid_email": "#/components/schemas/invalid_email",
            "invalid_itinerary_price": "#/components/schemas/invalid_itinerary_price",
            "offer_expired": "#/components/schemas/offer_expired1",
            "offer_not_found": "#/components/schemas/offer_not_found2",
            "offer_not_priced": "#/components/schemas/offer_not_priced",
            "order_already_exists": "#/components/schemas/order_already_exists",
            "payment_authorization_failure": "#/components/schemas/payment_authorization_failure",
            "payment_card_required_for_merchant_of_record_hts": "#/components/schemas/payment_card_required_for_merchant_of_record_hts"
          }
        }
      },
      "cfar_create_flights_exercise_quote_error": {
        "title": "cfar_create_flights_exercise_quote_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/booking_already_canceled"
          },
          {
            "$ref": "#/components/schemas/booking_in_void_window"
          },
          {
            "$ref": "#/components/schemas/insufficient_funds"
          },
          {
            "$ref": "#/components/schemas/invalid_contract_status4"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "booking_already_canceled": "#/components/schemas/booking_already_canceled",
            "booking_in_void_window": "#/components/schemas/booking_in_void_window",
            "insufficient_funds": "#/components/schemas/insufficient_funds",
            "invalid_contract_status": "#/components/schemas/invalid_contract_status4"
          }
        }
      },
      "cfar_exercise": {
        "title": "cfar_exercise",
        "description": "Details of how the contract was exercised.",
        "type": "object",
        "required": [
          "id",
          "contract_id",
          "payouts"
        ],
        "properties": {
          "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/cfar_exercise_payout"
            }
          }
        }
      },
      "cfar_exercise_contract_error": {
        "title": "cfar_exercise_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/contract_expired"
          },
          {
            "$ref": "#/components/schemas/invalid_contract_status1"
          },
          {
            "$ref": "#/components/schemas/passenger_already_exercised"
          },
          {
            "$ref": "#/components/schemas/passenger_not_found"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "contract_expired": "#/components/schemas/contract_expired",
            "invalid_contract_status": "#/components/schemas/invalid_contract_status1",
            "passenger_already_exercised": "#/components/schemas/passenger_already_exercised",
            "passenger_not_found": "#/components/schemas/passenger_not_found"
          }
        }
      },
      "cfar_exercise_payout": {
        "title": "cfar_exercise_payout",
        "description": "The method by which the payout will be be delivered to the customer.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/future_travel_credit"
          },
          {
            "$ref": "#/components/schemas/original_form_of_payment"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "future_travel_credit": "#/components/schemas/future_travel_credit",
            "original_form_of_payment": "#/components/schemas/original_form_of_payment"
          }
        }
      },
      "cfar_exercise_quote": {
        "title": "cfar_exercise_quote",
        "type": "object",
        "required": [
          "id",
          "payout_options"
        ],
        "properties": {
          "id": {
            "description": "Unique ID for an exercise quote.",
            "type": "string"
          },
          "payout_options": {
            "description": "Options detailing the different ways a customer may select to be paid out.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/payout_option"
            }
          }
        }
      },
      "cfar_offer": {
        "title": "cfar_offer",
        "type": "object",
        "required": [
          "id",
          "price",
          "payout",
          "currency",
          "expires_at",
          "contract_expires_at",
          "priced"
        ],
        "properties": {
          "id": {
            "description": "Unique ID for an offer.",
            "type": "string"
          },
          "price": {
            "$ref": "#/components/schemas/offer_price"
          },
          "payout": {
            "$ref": "#/components/schemas/payout"
          },
          "currency": {
            "description": "Currency of all pricing fields for the offer.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "expires_at": {
            "description": "Date and time at which the 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"
          }
        }
      },
      "cfar_void_contract_error": {
        "title": "cfar_void_contract_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_contract_status2"
          },
          {
            "$ref": "#/components/schemas/order_not_found1"
          },
          {
            "$ref": "#/components/schemas/payment_refund_failed"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_contract_status": "#/components/schemas/invalid_contract_status2",
            "order_not_found": "#/components/schemas/order_not_found1",
            "payment_refund_failed": "#/components/schemas/payment_refund_failed"
          }
        }
      },
      "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."
          }
        }
      },
      "contact_info": {
        "title": "contact_info",
        "description": "Contact information of the user buying the product(s).",
        "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_canceled": {
        "title": "contract_canceled",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_canceled"
          }
        }
      },
      "contract_canceled_webhook": {
        "title": "contract_canceled_webhook",
        "description": "Webhook sent when a CFAR 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.cfar.contract.canceled`",
            "type": "string",
            "enum": [
              "fintech.flights.cfar.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/cfar_contract",
            "description": "The canceled contract."
          }
        }
      },
      "contract_confirmed_webhook": {
        "title": "contract_confirmed_webhook",
        "description": "Webhook sent when a CFAR 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.cfar.contract.confirmed`",
            "type": "string",
            "enum": [
              "fintech.flights.cfar.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/cfar_contract",
            "description": "The confirmed contract."
          }
        }
      },
      "contract_drafted_webhook": {
        "title": "contract_drafted_webhook",
        "description": "Webhook sent when a CFAR contract is drafted.",
        "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.cfar.contract.drafted`",
            "type": "string",
            "enum": [
              "fintech.flights.cfar.contract.drafted"
            ]
          },
          "occurred_at": {
            "description": "Timestamp when the event occurred (ISO 8601).",
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "$ref": "#/components/schemas/contract_drafted_webhook_data"
          }
        }
      },
      "contract_drafted_webhook_data": {
        "title": "contract_drafted_webhook_data",
        "description": "The webhook payload.",
        "type": "object",
        "required": [
          "contract"
        ],
        "properties": {
          "contract": {
            "$ref": "#/components/schemas/cfar_contract",
            "description": "The drafted contract."
          }
        }
      },
      "contract_exercised": {
        "title": "contract_exercised",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_exercised"
          }
        }
      },
      "contract_exercised_webhook": {
        "title": "contract_exercised_webhook",
        "description": "Webhook sent when a customer has successfully exercised their CFAR 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.cfar.contract.exercised`",
            "type": "string",
            "enum": [
              "fintech.flights.cfar.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/cfar_contract",
            "description": "The exercised contract."
          },
          "exercise": {
            "$ref": "#/components/schemas/cfar_exercise"
          }
        }
      },
      "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_not_purchased": {
        "title": "contract_not_purchased",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "contract_not_purchased"
          }
        }
      },
      "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 CFAR 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.cfar.contract.voided`",
            "type": "string",
            "enum": [
              "fintech.flights.cfar.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/cfar_contract",
            "description": "The voided contract."
          }
        }
      },
      "create_cfar_exercise_quote_request": {
        "title": "create_cfar_exercise_quote_request",
        "type": "object",
        "required": [
          "session_id"
        ],
        "properties": {
          "session_id": {
            "description": "Session identifier for tracking user interactions and analytics.",
            "examples": [
              "c17aff84-7581-461e-8505-002d15ac368a"
            ],
            "type": "string"
          }
        }
      },
      "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"
          },
          "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_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 ID 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_itinerary1"
          },
          {
            "$ref": "#/components/schemas/invalid_session1"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_input": "#/components/schemas/invalid_input",
            "invalid_itinerary": "#/components/schemas/invalid_itinerary1",
            "invalid_session": "#/components/schemas/invalid_session1"
          }
        }
      },
      "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}"
          },
          "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 information 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": "The ID of a user as defined by the partner",
            "examples": [
              "33bb4eb2-2937-4bd3-97b1-7796206712f0"
            ],
            "type": "string"
          },
          "entry_point": {
            "description": "Entry point from which the offer is being presented to the user.",
            "type": "string"
          },
          "merchandising_context": {
            "$ref": "#/components/schemas/merchandising_context"
          }
        }
      },
      "create_synthetic_fares_error": {
        "title": "create_synthetic_fares_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/invalid_itinerary"
          },
          {
            "$ref": "#/components/schemas/invalid_session"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "invalid_itinerary": "#/components/schemas/invalid_itinerary",
            "invalid_session": "#/components/schemas/invalid_session"
          }
        }
      },
      "create_synthetic_fares_request": {
        "title": "create_synthetic_fares_request",
        "type": "object",
        "required": [
          "session_id",
          "currency",
          "itineraries",
          "channel",
          "point_of_sale"
        ],
        "properties": {
          "session_id": {
            "description": "An ID associating the user's shopping session.",
            "examples": [
              "c17aff84-7581-461e-8505-002d15ac368a"
            ],
            "type": "string"
          },
          "currency": {
            "description": "Currency of all pricing fields within the request.",
            "examples": [
              "CAD"
            ],
            "type": "string"
          },
          "trip": {
            "$ref": "#/components/schemas/trip"
          },
          "itineraries": {
            "description": "Itineraries for which to create synthetic fare offers.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/synthetic_fare_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}"
          },
          "billing_jurisdiction": {
            "$ref": "#/components/schemas/billing_jurisdiction",
            "description": "Billing information of the user buying the product(s). Recommended for accurate tax calculations, especially if HTS is merchant of record. Optional - taxes are approximated based on point_of_sale if not provided."
          },
          "user_id": {
            "description": "The ID of a user as defined by the partner",
            "examples": [
              "33bb4eb2-2937-4bd3-97b1-7796206712f0"
            ],
            "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`"
          }
        }
      },
      "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"
          }
        }
      },
      "event": {
        "title": "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/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",
            "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"
          }
        }
      },
      "exercise_contract_request": {
        "title": "exercise_contract_request",
        "oneOf": [
          {
            "$ref": "#/components/schemas/full_itinerary_exercise_request"
          },
          {
            "$ref": "#/components/schemas/passengers_from_ids_exercise_request"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "full_itinerary_exercise_request": "#/components/schemas/full_itinerary_exercise_request",
            "passengers_from_ids_exercise_request": "#/components/schemas/passengers_from_ids_exercise_request"
          }
        }
      },
      "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"
        ],
        "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"
        ],
        "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"
        ],
        "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"
        ],
        "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"
        ],
        "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_type": {
        "title": "exercise_type",
        "type": "string",
        "enum": [
          "rebook",
          "payout"
        ]
      },
      "exercise_url": {
        "title": "exercise_url",
        "type": "object",
        "required": [
          "exercise_url"
        ],
        "properties": {
          "exercise_url": {
            "type": "string"
          }
        }
      },
      "expired": {
        "title": "expired",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "expired"
          }
        }
      },
      "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_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_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_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."
          }
        }
      },
      "fulfill_exercise_quote_request": {
        "title": "fulfill_exercise_quote_request",
        "type": "object",
        "required": [
          "payout_option_id",
          "session_id"
        ],
        "properties": {
          "payout_option_id": {
            "description": "The chosen payout option detailing the method of payout.",
            "type": "string"
          },
          "session_id": {
            "description": "Session identifier for tracking user interactions and analytics.",
            "examples": [
              "c17aff84-7581-461e-8505-002d15ac368a"
            ],
            "type": "string"
          }
        }
      },
      "full_itinerary_exercise_request": {
        "title": "full_itinerary_exercise_request",
        "description": "Exercise the contract for every passenger it still applies to on the itinerary.",
        "type": "object",
        "required": [
          "payout_information",
          "currency",
          "reason",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "full_itinerary_exercise_request",
            "description": "value: `full_itinerary_exercise_request`"
          },
          "payouts": {
            "description": "DEPRECATED: Use payout_information instead. The payouts issued to the customer.",
            "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
          }
        }
      },
      "future_travel_credit": {
        "title": "future_travel_credit",
        "description": "The details for this payout describe how the customer will receive their payout via Future Travel Credits (FTCs).",
        "type": "object",
        "required": [
          "amount",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "future_travel_credit",
            "description": "value: `future_travel_credit`"
          },
          "amount": {
            "description": "The amount of the payout.",
            "type": "string",
            "exclusiveMinimum": 0
          }
        }
      },
      "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
          }
        }
      },
      "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"
          }
        }
      },
      "insufficient_funds": {
        "title": "insufficient_funds",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "insufficient_funds"
          }
        }
      },
      "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_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_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_itinerary1": {
        "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_itinerary_price": {
        "title": "invalid_itinerary_price",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "invalid_itinerary_price"
          }
        }
      },
      "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"
          }
        }
      },
      "invalid_session1": {
        "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"
          }
        }
      },
      "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
          }
        }
      },
      "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 ID 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. Defaults to pre-booking if not specified.",
        "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"
          }
        }
      },
      "multi_city": {
        "title": "multi_city",
        "type": "object",
        "required": [
          "slices",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "multi_city",
            "description": "value: `multi_city`"
          },
          "slices": {
            "description": "The individual slices of the multi-city trip",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/slice"
            }
          },
          "previous_slice_offer_id": {
            "description": "Used when the partner's booking flow is merchandised one slice at a time. When generating synthetic fares for the first slice, this field should be empty. If the customer has chosen a synthetic fare for the prior slice, the CFAR offer id of the chosen synthetic fare should be stored and passed back into this field when generating synthetic fares for the next slice. The final output will be an offer for the entire itinerary, progressively built from each of the slice selections.",
            "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_expired1": {
        "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_not_priced": {
        "title": "offer_not_priced",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "offer_not_priced"
          }
        }
      },
      "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 CFAR offers generated for a given itinerary.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/cfar_offer"
            }
          },
          "merchandising_url": {
            "description": "A URL which links to the HTS offer merchandising micro-site.",
            "type": "string"
          }
        }
      },
      "one_way": {
        "title": "one_way",
        "type": "object",
        "required": [
          "origin",
          "destination",
          "departure_date",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "one_way",
            "description": "value: `one_way`"
          },
          "origin": {
            "description": "IATA airport code of origin.",
            "examples": [
              "BOS"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination": {
            "description": "IATA airport code of destination.",
            "examples": [
              "LGA"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date": {
            "description": "Local date of departure from origin.",
            "examples": [
              "2024-04-22"
            ],
            "type": "string",
            "format": "date"
          }
        }
      },
      "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": [
          "payment",
          "payout",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "original_form_of_payment",
            "description": "value: `original_form_of_payment`"
          },
          "payment": {
            "$ref": "#/components/schemas/refundable_payment",
            "description": "DEPRECATED: The payment details for this payout."
          },
          "payout": {
            "$ref": "#/components/schemas/refundable_payment",
            "description": "The payment details for this payout."
          }
        }
      },
      "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
          }
        }
      },
      "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_already_exercised": {
        "title": "passenger_already_exercised",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "passenger_already_exercised"
          }
        }
      },
      "passenger_not_found": {
        "title": "passenger_not_found",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "passenger_not_found"
          }
        }
      },
      "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"
        ]
      },
      "passengers_from_ids_exercise_request": {
        "title": "passengers_from_ids_exercise_request",
        "description": "Exercise only the selected passengers and record their full covered amount in the contract's currency. Other passengers remain covered. Use full-itinerary exercise to supply a different payout.",
        "type": "object",
        "required": [
          "reason",
          "passenger_ids",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "passengers_from_ids_exercise_request",
            "description": "value: `passengers_from_ids_exercise_request`"
          },
          "reason": {
            "description": "Human-readable explanation for why this exercise was performed.",
            "type": "string",
            "minLength": 1
          },
          "passenger_ids": {
            "description": "Partner-defined passenger IDs to exercise. Must contain at least one value.",
            "type": "array",
            "minItems": 1,
            "items": {
              "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.",
              "type": "string",
              "minLength": 1
            }
          }
        }
      },
      "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_capture_failed": {
        "title": "payment_capture_failed",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "payment_capture_failed"
          }
        }
      },
      "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_card_required_for_merchant_of_record_hts": {
        "title": "payment_card_required_for_merchant_of_record_hts",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "payment_card_required_for_merchant_of_record_hts"
          }
        }
      },
      "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_refund_failed": {
        "title": "payment_refund_failed",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "payment_refund_failed"
          }
        }
      },
      "payment_refund_failed1": {
        "title": "payment_refund_failed",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "payment_refund_failed"
          }
        }
      },
      "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": "The payout to be issued to the user upon exercise.",
        "type": "object",
        "required": [
          "amount",
          "percentage",
          "price_included"
        ],
        "properties": {
          "amount": {
            "description": "The total amount to be paid out upon exercise.",
            "examples": [
              "400.00"
            ],
            "type": "string",
            "exclusiveMinimum": 0
          },
          "percentage": {
            "description": "The percentage of the booking to be paid out upon exercise.",
            "examples": [
              80
            ],
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "maximum": 100
          },
          "price_included": {
            "description": "If the product price is included in the product payout amount.",
            "examples": [
              false
            ],
            "type": "boolean"
          }
        }
      },
      "payout_information": {
        "title": "payout_information",
        "description": "\n Payout information for the exercise. Either a detailed breakdown of payouts (Provided)\n or a signal that no payout details are available (NotProvided).\n If both payouts and payout_information are provided, payout_information takes precedence.\n ",
        "oneOf": [
          {
            "$ref": "#/components/schemas/not_provided3"
          },
          {
            "$ref": "#/components/schemas/provided1"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "not_provided": "#/components/schemas/not_provided3",
            "provided": "#/components/schemas/provided1"
          }
        }
      },
      "payout_option": {
        "title": "payout_option",
        "type": "object",
        "required": [
          "id",
          "payouts"
        ],
        "properties": {
          "id": {
            "description": "Unique ID for a payout option.",
            "type": "string"
          },
          "payouts": {
            "description": "The list of payouts which would be issued for this payout option.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/cfar_exercise_payout"
            }
          }
        }
      },
      "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"
          }
        }
      },
      "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
          }
        }
      },
      "pnr_required": {
        "title": "pnr_required",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "pnr_required"
          }
        }
      },
      "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 ID 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 information 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"
          }
        }
      },
      "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"
          }
        }
      },
      "purchase_payments_not_on_contract": {
        "title": "purchase_payments_not_on_contract",
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "description": "A human-readable message describing the error",
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "purchase_payments_not_on_contract"
          }
        }
      },
      "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"
          }
        }
      },
      "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",
        "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"
          }
        }
      },
      "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
          }
        }
      },
      "round_trip": {
        "title": "round_trip",
        "type": "object",
        "required": [
          "origin",
          "destination",
          "departure_date",
          "return_date",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "round_trip",
            "description": "value: `round_trip`"
          },
          "origin": {
            "description": "IATA airport code of origin.",
            "examples": [
              "BOS"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination": {
            "description": "IATA airport code of destination.",
            "examples": [
              "LGA"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date": {
            "description": "Local date of departure from origin.",
            "examples": [
              "2024-04-22"
            ],
            "type": "string",
            "format": "date"
          },
          "return_date": {
            "description": "Local date of return from destination.",
            "examples": [
              "2024-04-29"
            ],
            "type": "string",
            "format": "date"
          },
          "previous_slice_offer_id": {
            "description": "Used when the partner's booking flow is merchandised one slice at a time. When generating synthetic fares for the outgoing slice, this field should be empty. If the customer has chosen a synthetic fare for the outgoing slice, the CFAR offer id of the chosen synthetic fare should be stored and passed back into this field when generating synthetic fares for the return slice.  The final output will be an offer for the entire itinerary, progressively built from each of the slice selections.",
            "type": "string"
          }
        }
      },
      "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/cfar_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"
          }
        }
      },
      "slice": {
        "title": "slice",
        "type": "object",
        "required": [
          "origin",
          "destination",
          "departure_date"
        ],
        "properties": {
          "origin": {
            "description": "IATA airport code of origin.",
            "examples": [
              "BOS"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "destination": {
            "description": "IATA airport code of destination.",
            "examples": [
              "LGA"
            ],
            "type": "string",
            "pattern": "[A-Z]{3}"
          },
          "departure_date": {
            "description": "Local date of departure from origin.",
            "examples": [
              "2024-04-22"
            ],
            "type": "string",
            "format": "date"
          }
        }
      },
      "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_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",
        "description": "Current status of the contract.",
        "examples": [
          "Confirmed"
        ],
        "type": "string",
        "enum": [
          "canceled",
          "confirmed",
          "drafted",
          "exercised",
          "expired",
          "voided"
        ]
      },
      "synthetic_fare": {
        "title": "synthetic_fare",
        "type": "object",
        "required": [
          "itinerary_id",
          "offer"
        ],
        "properties": {
          "itinerary_id": {
            "description": "Itinerary ID.",
            "examples": [
              "1724b1b7-3a61-47a2-aa2f-69a607cf429a"
            ],
            "type": "string"
          },
          "offer": {
            "$ref": "#/components/schemas/cfar_offer",
            "description": "CFAR offer for that itinerary."
          }
        }
      },
      "synthetic_fare_itinerary": {
        "title": "synthetic_fare_itinerary",
        "type": "object",
        "required": [
          "id",
          "slices",
          "passengers"
        ],
        "properties": {
          "id": {
            "description": "A unique identifier for an itinerary.",
            "examples": [
              "1724b1b7-3a61-47a2-aa2f-69a607cf429a"
            ],
            "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/synthetic_fare_passengers"
            }
          }
        }
      },
      "synthetic_fare_passengers": {
        "title": "synthetic_fare_passengers",
        "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
          },
          "count": {
            "description": "The count of passengers for the given type. If not provided, the count will be defaulted to 1.",
            "default": 1,
            "type": "integer",
            "format": "int32",
            "exclusiveMinimum": 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"
            }
          }
        }
      },
      "synthetic_fares_eligible": {
        "title": "synthetic_fares_eligible",
        "type": "object",
        "required": [
          "synthetic_fares"
        ],
        "properties": {
          "synthetic_fares": {
            "description": "A list of synthetic fare offers for eligible itineraries.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/synthetic_fare"
            }
          }
        }
      },
      "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"
        ]
      },
      "trip": {
        "title": "trip",
        "description": "The type of trip the customer is shopping for. This field should only be sent when synthetic fares are being created for partial itineraries which are merchandised slice by slice in the partner's booking flow. Itineraries are assumed by default to be complete, so there is no need to pass the trip type when creating a synthetic fare for the full itinerary.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/multi_city"
          },
          {
            "$ref": "#/components/schemas/one_way"
          },
          {
            "$ref": "#/components/schemas/round_trip"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "one_way": "#/components/schemas/one_way",
            "multi_city": "#/components/schemas/multi_city",
            "round_trip": "#/components/schemas/round_trip"
          }
        }
      },
      "unprocessable_entity_cfar_cancel_contract_error": {
        "title": "unprocessable_entity_cfar_cancel_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/cfar_cancel_contract_error"
        }
      },
      "unprocessable_entity_cfar_confirm_contract_error": {
        "title": "unprocessable_entity_cfar_confirm_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/cfar_confirm_contract_error"
        }
      },
      "unprocessable_entity_cfar_create_draft_contract_error": {
        "title": "unprocessable_entity_cfar_create_draft_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/cfar_create_draft_contract_error"
        }
      },
      "unprocessable_entity_cfar_create_flights_exercise_quote_error": {
        "title": "unprocessable_entity_cfar_create_flights_exercise_quote_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/cfar_create_flights_exercise_quote_error"
        }
      },
      "unprocessable_entity_cfar_exercise_contract_error": {
        "title": "unprocessable_entity_cfar_exercise_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/cfar_exercise_contract_error"
        }
      },
      "unprocessable_entity_cfar_void_contract_error": {
        "title": "unprocessable_entity_cfar_void_contract_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/cfar_void_contract_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_create_synthetic_fares_error": {
        "title": "unprocessable_entity_create_synthetic_fares_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/create_synthetic_fares_error"
        }
      },
      "unprocessable_entity_price_offers_error": {
        "title": "unprocessable_entity_price_offers_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/price_offers_error"
        }
      },
      "unprocessable_entity_user_payouts_error": {
        "title": "unprocessable_entity_user_payouts_error",
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/components/schemas/user_payouts_error"
        }
      },
      "user_payout_option": {
        "title": "user_payout_option",
        "type": "object",
        "required": [
          "total_payout_amount",
          "payouts"
        ],
        "properties": {
          "total_payout_amount": {
            "description": "The total amount the user would be paid out under this option. Sum of all `payouts` amounts.",
            "examples": [
              "173.24"
            ],
            "type": "string",
            "minimum": 0
          },
          "payouts": {
            "description": "The list of payouts which would be issued for this payout option.",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/cfar_exercise_payout"
            }
          }
        }
      },
      "user_payouts_error": {
        "title": "user_payouts_error",
        "oneOf": [
          {
            "$ref": "#/components/schemas/contract_canceled"
          },
          {
            "$ref": "#/components/schemas/contract_exercised"
          },
          {
            "$ref": "#/components/schemas/contract_not_purchased"
          },
          {
            "$ref": "#/components/schemas/contract_voided"
          },
          {
            "$ref": "#/components/schemas/expired"
          },
          {
            "$ref": "#/components/schemas/purchase_payments_not_on_contract"
          }
        ],
        "discriminator": {
          "propertyName": "code",
          "mapping": {
            "contract_canceled": "#/components/schemas/contract_canceled",
            "contract_exercised": "#/components/schemas/contract_exercised",
            "contract_not_purchased": "#/components/schemas/contract_not_purchased",
            "contract_voided": "#/components/schemas/contract_voided",
            "expired": "#/components/schemas/expired",
            "purchase_payments_not_on_contract": "#/components/schemas/purchase_payments_not_on_contract"
          }
        }
      },
      "user_payouts_response": {
        "title": "user_payouts_response",
        "type": "object",
        "required": [
          "currency",
          "payout_options"
        ],
        "properties": {
          "currency": {
            "description": "The currency all payout amounts are in.",
            "examples": [
              "USD"
            ],
            "type": "string"
          },
          "payout_options": {
            "description": "\n Options detailing the different ways the user could be paid out if they exercised CFAR, mirroring the\n `payout_options` of an exercise quote.\n    ",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/user_payout_option"
            }
          }
        }
      },
      "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"
      }
    }
  }
}
