TUI Group Inventory API

The inventory API from TUI Group — 7 operation(s) for inventory.

Operations 11

GET /api/dcs/v2/inventory/legs/{legKey} Gets the stateless inventory leg. #
PATCH /api/dcs/v2/inventory/legs/{legKey} Patches an inventory leg's data, its nests' data, and its classes' data based on information in the request. #
GET /api/dcs/v1/inventory/legs/{legKey}/nests/{legNestKey} Gets an inventory leg nest by key. #
PATCH /api/dcs/v1/inventory/legs/{legKey}/nests/{legNestKey} Patches an inventory leg nest's data based on information in the request. #
GET /api/dcs/v1/inventory/legs/{legKey}/nests/{legNestKey}/classes/{legClassKey} Gets an inventory leg nest class by key. #
PATCH /api/dcs/v1/inventory/legs/{legKey}/nests/{legNestKey}/classes/{legClassKey} Patches an inventory leg nest class's data based on information in the request. #
POST /api/dcs/v1/inventory/legs/ssrs/lids Returns a list of leg keys and their ssr nest codes and lids. Structured as a POST but behaves as a GET. #
PATCH /api/dcs/v1/inventory/legs/ssrs/lids Patches the ssr lids for multiple specified legs. #
GET /api/dcs/v1/inventory/routes/{tripKey}/classes Gets the classes for a route, stateless. #
PATCH /api/dcs/v1/inventory/routes/{tripKey}/classes/{classOfService} Patches an inventory route class's data based on information in the request. #
DELETE /api/dcs/v1/inventory/routes/{tripKey}/classes/{classOfService}/authorizedUnit Deletes an inventory route class's authorized unit. #

Documentation

📖
Documentation
https://developer.tui/api-catalog/newskies-digital-api/api-description
📖
Documentation
https://developer.tui/api-catalog/newskies-digital-api/get-started
📖
Documentation
https://developer.tui/api-catalog/newskies-digital-api/simple-workflow
📖
Documentation
https://developer.tui/api-catalog/newskies-digital-api/advanced-workflow
📖
Documentation
https://developer.tui/api-catalog/newskies-digital-api/creditcard-payments
📖
Documentation
https://developer.tui/api-catalog/newskies-digital-api/backwards-compatibility
📖
Documentation
https://developer.tui/api-catalog/newskies-gonow-api/api-description
📖
Documentation
https://developer.tui/api-catalog/newskies-gonow-api/get-started
📖
Documentation
https://developer.tui/api-catalog/newskies-gonow-api/check-workflow
📖
Documentation
https://developer.tui/api-catalog/newskies-gonow-api/backwards-compatibility
📖
Documentation
https://developer.tui/api-catalog/newskies-payment-api/api-description
📖
Documentation
https://developer.tui/api-catalog/newskies-payment-api/booking-flow
📖
Documentation
https://developer.tui/api-catalog/nskcc-availability-search-api/description
📖
Documentation
https://developer.tui/api-catalog/nskcc-availability-search-api/api-details
📖
Documentation
https://developer.tui/api-catalog/nskcc-availability-search-api/technical-integration
📖
Documentation
https://developer.tui/api-catalog/nskcc-availability-search-api/code-examples
📖
Documentation
https://developer.tui/api-catalog/nskcc-availability-search-api/api-onepager
📖
Documentation
https://developer.tui/api-catalog/tui-newskies-pricefile-api/description
📖
Documentation
https://developer.tui/api-catalog/tui-newskies-pricefile-api/technical-integration
📖
Documentation
https://developer.tui/api-catalog/tui-newskies-pricefile-api/data-format
📖
Documentation
https://developer.tui/api-catalog/checkinhandler-service-api/api-description
📖
Documentation
https://developer.tui/api-catalog/checkinhandler-service-api/api-details
📖
Documentation
https://developer.tui/api-catalog/checkinhandler-service-api/technical-integration
📖
Documentation
https://developer.tui/api-catalog/tui-flight-ota-api/api-description
📖
Documentation
https://developer.tui/api-catalog/ota-content-api/api-description
📖
Documentation
https://developer.tui/api-catalog/ota-content-api/technical-details
📖
Documentation
https://developer.tui/api-catalog/ota-content-api/release-notes
📖
Documentation
https://developer.tui/api-catalog/walldy-api/api-description
📖
Documentation
https://developer.tui/api-catalog/walldy-api/api-details
📖
Documentation
https://developer.tui/api-catalog/walldy-api/technical-integration
📖
Documentation
https://developer.tui/api-catalog/walldy-api/api-onepager
📖
Documentation
https://developer.tui/api-catalog/walldy-api/release-notes
📖
Documentation
https://developer.tui/api-catalog/holidayofferscontroller-api/api-description
📖
Documentation
https://developer.tui/api-catalog/holidayofferscontroller-api/technical-integration
📖
Documentation
https://developer.tui/api-catalog/holidayofferscontroller-api/release-notes
📖
Documentation
https://developer.tui/api-catalog/meta-search-generic-api/api-description
📖
Documentation
https://developer.tui/api-catalog/partner-content-api/api-description
📖
Documentation
https://developer.tui/api-catalog/ship-content-api/api-description

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tui-group-inventory-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tui-group-inventory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NewSkies-Digital-Api Inventory API
  version: 4.8.6.23
  description: Navitaire Digital Api
servers:
- url: https://prod.api.tui/flight/newskies/rest
  description: TUI Prod
- url: https://playground.api.tui/flight/newskies/rest
  description: TUI Playground
security:
- JWT: []
tags:
- name: inventory
paths:
  /api/dcs/v2/inventory/legs/{legKey}:
    get:
      tags:
      - inventory
      summary: Gets the stateless inventory leg.
      description: 'GraphQL endpoint: inventoryLegv2'
      operationId: dcs_v2_inventory_legs_legKey_get
      parameters:
      - name: legKey
        in: path
        required: true
        description: The leg key.
        schema:
          type: string
        x-position: 1
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponseOfInventoryLegv2'
        '404':
          description: The item was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
    patch:
      tags:
      - inventory
      summary: Patches an inventory leg's data, its nests' data, and its classes' data based on information in the request.
      description: 'GraphQL endpoint: inventoryLegModifyv2'
      operationId: dcs_v2_inventory_legs_legKey_patch
      parameters:
      - name: legKey
        in: path
        required: true
        description: The leg key.
        schema:
          type: string
        x-position: 1
      requestBody:
        x-name: request
        description: The inventory leg edit request.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InventoryLegEditv2Request'
            examples:
              Patching leg, nest, and class:
                description: Example request for patching inventory leg, nest, and class data
                value:
                  lid: 50
                  adjustedCapacity: 48
                  sendAvsMessages: true
                  status: 0
                  nests:
                    mtEzNTk2MTAxNSE0IU4-:
                      lid: 24
                      adjustedCapacity: 23
                      classes: null
                    mtEzNTk2MTAxNSExIU4-:
                      lid: null
                      adjustedCapacity: null
                      classes:
                        mtEzNTk2MTAxNSExIU0-:
                          type: 0
                          rank: 1
                          authorizedUnits: 10
                          allotted: 9
                          latestAdvancedReservation: 0
                    mtEzNTk2MTAxNSEyIU4-:
                      lid: 50
                      adjustedCapacity: 48
                      classes:
                        mtEzNTk2MTAxNSEyIU4-:
                          type: null
                          rank: null
                          authorizedUnits: 10
                          allotted: null
                          latestAdvancedReservation: null
                        mtEzNTk2MTAxNSEyIU8-:
                          type: null
                          rank: null
                          authorizedUnits: null
                          allotted: 36
                          latestAdvancedReservation: 5
              Patching just leg lid:
                description: Example request for patching just inventory leg lid
                value:
                  lid: 50
                  adjustedCapacity: null
                  sendAvsMessages: false
                  status: null
                  nests: null
              Patching leg class:
                description: Example request for patching just an inventory class
                value:
                  lid: null
                  adjustedCapacity: null
                  sendAvsMessages: false
                  status: null
                  nests:
                    mtEzNTk2MTAxNSExIU4-:
                      lid: null
                      adjustedCapacity: null
                      classes:
                        mtEzNTk2MTAxNSExIU0-:
                          type: null
                          rank: null
                          authorizedUnits: null
                          allotted: 9
                          latestAdvancedReservation: null
        required: true
        x-position: 2
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
        '500':
          description: A server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
  /api/dcs/v1/inventory/legs/{legKey}/nests/{legNestKey}:
    get:
      tags:
      - inventory
      summary: Gets an inventory leg nest by key.
      description: 'GraphQL endpoint: inventoryNest'
      operationId: dcs_v1_inventory_legs_legKey_nests_legNestKey_get
      parameters:
      - name: legKey
        in: path
        required: true
        description: The leg key.
        schema:
          type: string
        x-position: 1
      - name: legNestKey
        in: path
        required: true
        description: The leg nest key.
        schema:
          type: string
        x-position: 2
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponseOfInventoryLegNest'
        '404':
          description: The item was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
    patch:
      tags:
      - inventory
      summary: Patches an inventory leg nest's data based on information in the request.
      description: 'GraphQL endpoint: inventoryNestModify'
      operationId: dcs_v1_inventory_legs_legKey_nests_legNestKey_patch
      parameters:
      - name: legKey
        in: path
        required: true
        description: The leg key.
        schema:
          type: string
        x-position: 1
      - name: legNestKey
        in: path
        required: true
        description: The leg nest key.
        schema:
          type: string
        x-position: 2
      requestBody:
        x-name: request
        description: The inventory nest edit request.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeltaMapperOfInventoryNestEditRequest'
        required: true
        x-position: 3
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
        '500':
          description: A server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
  /api/dcs/v1/inventory/legs/{legKey}/nests/{legNestKey}/classes/{legClassKey}:
    get:
      tags:
      - inventory
      summary: Gets an inventory leg nest class by key.
      description: 'GraphQL endpoint: inventoryClass'
      operationId: dcs_v1_inventory_legs_legKey_nests_legNestKey_classes_legClassKey_get
      parameters:
      - name: legKey
        in: path
        required: true
        description: The leg key.
        schema:
          type: string
        x-position: 1
      - name: legNestKey
        in: path
        required: true
        description: The leg nest key.
        schema:
          type: string
        x-position: 2
      - name: legClassKey
        in: path
        required: true
        description: The leg class key.
        schema:
          type: string
        x-position: 3
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponseOfInventoryLegClass'
        '404':
          description: The item was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
    patch:
      tags:
      - inventory
      summary: Patches an inventory leg nest class's data based on information in the request.
      description: 'GraphQL endpoint: inventoryClassModify'
      operationId: dcs_v1_inventory_legs_legKey_nests_legNestKey_classes_legClassKey_patch
      parameters:
      - name: legKey
        in: path
        required: true
        description: The leg key.
        schema:
          type: string
        x-position: 1
      - name: legNestKey
        in: path
        required: true
        description: The leg nest key.
        schema:
          type: string
        x-position: 2
      - name: legClassKey
        in: path
        required: true
        description: The leg class key.
        schema:
          type: string
        x-position: 3
      requestBody:
        x-name: request
        description: The inventory class edit request.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeltaMapperOfInventoryClassEditRequest'
        required: true
        x-position: 4
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
        '500':
          description: A server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
  /api/dcs/v1/inventory/legs/ssrs/lids:
    post:
      tags:
      - inventory
      summary: 'Returns a list of leg keys and their ssr nest codes and lids.

        Structured as a POST but behaves as a GET.'
      description: 'This is a batch endpoint. To get ssr lid information for a single leg, please use GET

        `api/dcs/v2/inventory/legs/{legKey}`.'
      operationId: dcs_v1_inventory_legs_ssrs_lids_post
      requestBody:
        x-name: legKeyList
        description: The list of leg keys.
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
            examples:
              Retrieving ssr lid counts:
                description: Example for requesting ssr lid counts for multiple legs.
                value:
                - NjM4ODQ2MjgwMDAwMDAwMDAwIU5WITk5ISAhU0xDIUJPUyEyNDk2MTY5
                - NjM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxNzQ-
                - NjM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxQk9-
        required: true
        x-position: 1
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponseOfDictionaryOfStringAndListOfInventoryLegSSRLid'
              examples:
                Successful batch ssr lid retrieval.:
                  description: Example response of a successful batch ssr lid retrieval for multiple legs.
                  value:
                    data:
                      njM4ODQ2MjgwMDAwMDAwMDAwIU5WITk5ISAhU0xDIUJPUyEyNDk2MTY5:
                      - ssrNestCode: BLND
                        lid: 20
                      - ssrNestCode: CHLD
                        lid: 100
                      - ssrNestCode: MEAL
                        lid: 810
                      njM4ODQ2NDYwMDAwMDAwMDAwIU5WITU2NjEhICFTTEMhQk9TITI0OTYxNDc-:
                      - ssrNestCode: WIFI
                        lid: 800
                      - ssrNestCode: PETC
                        lid: 10
                      njM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxNzQ-:
                      - ssrNestCode: BG15
                        lid: 80
                      - ssrNestCode: BG20
                        lid: 10
                      - ssrNestCode: LEGX
                        lid: 6
                      - ssrNestCode: PETC
                        lid: 15
        '207':
          description: "\n                Multi Status. Some leg keys were invalid or could not be retrieved. See the response messages for\n                details.\n            "
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponseOfDictionaryOfStringAndListOfInventoryLegSSRLid'
              examples:
                Partially-successful batch ssr lid retrieval.:
                  description: Example response of a partially-successful batch ssr lid retrieval for multiple legs.
                  value:
                    messages:
                    - rawValue: The leg key 'ABCDE' is invalid.
                      code: dcs:Inventory:InvalidLegKey
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: dcs:Inventory:InvalidLegKey
                      status: 1
                      details:
                        legKey: ABCDE
                    data:
                      njM4ODQ2MjgwMDAwMDAwMDAwIU5WITk5ISAhU0xDIUJPUyEyNDk2MTY5:
                      - ssrNestCode: BLND
                        lid: 20
                      - ssrNestCode: CHLD
                        lid: 100
                      - ssrNestCode: MEAL
                        lid: 810
                      njM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxNzQ-:
                      - ssrNestCode: BG15
                        lid: 80
                      - ssrNestCode: BG20
                        lid: 10
                      - ssrNestCode: LEGX
                        lid: 6
                      - ssrNestCode: PETC
                        lid: 15
        '400':
          description: None of the provided leg keys are valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
              examples:
                All leg keys invalid:
                  description: Example error when none of the provided leg keys are valid.
                  value:
                    errors:
                    - id: null
                      code: dcs:Inventory:InvalidLegKey
                      message: The leg key(s) are invalid.
                      type: Validation
                      details: null
                      rawMessage: The leg key(s) are invalid.
                      exception: null
                      debugMode: The API is currently running in debug mode. In production the 'rawMessage' and 'exception' nodes will not be returned. These are for troubleshooting development issues only.
                    data: null
        '401':
          description: Authorization Not Allowed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
        '404':
          description: None of the requested legs were found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
              examples:
                None of leg keys were found:
                  description: Example error when none of the provided leg keys were found.
                  value:
                    data: null
    patch:
      tags:
      - inventory
      summary: Patches the ssr lids for multiple specified legs.
      description: 'This is a batch endpoint. It accepts a list of leg keys in the body along with their SSR nest codes and requested

        lids. If a leg has an SSR that is not specified in the parameter list, that SSR will not be updated.

        Related Endpoints:

        GET `api/dcs/v2/inventory/legs/{legKey}`: Retrieves the current configuration for a leg and retrieve the SSR nest

        codes used for this endpoint.

        GET `api/nsk/v1/bookings/{recordLocator}`: Retrieves the current configuration related to a booking.Requires a

        login with person type: Agent.'
      operationId: dcs_v1_inventory_legs_ssrs_lids_patch
      requestBody:
        x-name: request
        description: The list of leg keys and their respective ssr lid lists to patch.
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/InventoryLegSSRLidsPatchRequest'
            examples:
              Patching ssr lid counts:
                description: Example for patching ssr lid counts for multiple legs. SSRs not included in the request list will be unaffected.
                value:
                - legKey: NjM4ODQ2MjgwMDAwMDAwMDAwIU5WITk5ISAhU0xDIUJPUyEyNDk2MTY5
                  ssrLids:
                  - ssrNestCode: BLND
                    lid: 20
                  - ssrNestCode: CHLD
                    lid: 100
                  - ssrNestCode: MEAL
                    lid: 810
                - legKey: NjM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxNzQ-
                  ssrLids:
                  - ssrNestCode: WIFI
                    lid: 800
                  - ssrNestCode: PETC
                    lid: 10
                - legKey: NjM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxQk9-
                  ssrLids:
                  - ssrNestCode: BG15
                    lid: 80
        required: true
        x-position: 1
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
        '207':
          description: Multi Status. Some SSR lids were updated and some failed. See the response messages for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
              examples:
                Partially-successful ssr lid patch.:
                  description: Example response of a partially-successful ssr lid patch, where some lids were updated and some were not.
                  value:
                    messages:
                    - rawValue: SSR lid update failed for leg key 'NjM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxNzQ-' and ssr nest code 'INVALIDCODE1'.
                      code: dcs:Inventory:FailedSSRLidUpdate
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: dcs:Inventory:FailedSSRLidUpdate
                      status: 1
                      details:
                        ssrNestCode: INVALIDCODE1
                    - rawValue: SSR lid update failed for leg key 'NjM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxNzQ-' and ssr nest code 'INVALIDCODE2'.
                      code: dcs:Inventory:FailedSSRLidUpdate
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: dcs:Inventory:FailedSSRLidUpdate
                      status: 1
                      details:
                        ssrNestCode: INVALIDCODE2
                    data: null
        '400':
          description: There was a problem with the request and it could not be completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
              examples:
                Leg key(s) are invalid:
                  description: Example error when the provided leg key(s) are all invalid.
                  value:
                    errors:
                    - id: null
                      code: dcs:Inventory:InvalidLegKey
                      message: The leg key(s) are invalid.
                      type: Validation
                      details: null
                      rawMessage: The leg key(s) are invalid.
                      exception: null
                      debugMode: The API is currently running in debug mode. In production the 'rawMessage' and 'exception' nodes will not be returned. These are for troubleshooting development issues only.
                    messages:
                    - rawValue: The leg key 'ABC' is invalid.
                      code: dcs:Inventory:InvalidLegKey
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: The leg key 'ABC' is invalid.
                      status: 1
                      details:
                        legKey: ABC
                    - rawValue: The leg key 'DEF' is invalid.
                      code: dcs:Inventory:InvalidLegKey
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: The leg key 'DEF' is invalid.
                      status: 1
                      details:
                        legKey: DEF
                    data: null
                Leg key(s) are not found:
                  description: Example error when the provided leg key(s) are valid but not found.
                  value:
                    errors:
                    - id: null
                      code: dcs:Inventory:LegKeyNotFound
                      message: The leg key(s) were not found.
                      type: Validation
                      details: null
                      rawMessage: The leg key(s) were not found.
                      exception: null
                      debugMode: The API is currently running in debug mode. In production the 'rawMessage' and 'exception' nodes will not be returned. These are for troubleshooting development issues only.
                    messages:
                    - rawValue: The leg key 'LTg1ODQ1MTgxMzI3OTkwMzAxOTQhbnd4ITc3NiHvv78hb1NXIUhBayEy' was not found.
                      code: dcs:Inventory:LegKeyNotFound
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: The leg key 'LTg1ODQ1MTgxMzI3OTkwMzAxOTQhbnd4ITc3NiHvv78hb1NXIUhBayEy' was not found.
                      status: 1
                      details:
                        legKey: LTg1ODQ1MTgxMzI3OTkwMzAxOTQhbnd4ITc3NiHvv78hb1NXIUhBayEy
                    - rawValue: The leg key 'LTg1ODQ1MTgxMzQzNzg1NDE1NzchTHJvITQ0NyHvv78hZ3pVIVFGWSEy' was not found.
                      code: dcs:Inventory:LegKeyNotFound
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: The leg key 'LTg1ODQ1MTgxMzQzNzg1NDE1NzchTHJvITQ0NyHvv78hZ3pVIVFGWSEy' was not found.
                      status: 1
                      details:
                        legKey: LTg1ODQ1MTgxMzQzNzg1NDE1NzchTHJvITQ0NyHvv78hZ3pVIVFGWSEy
                    data: null
                SSR lids not updated:
                  description: Example error when none of the provided ssr nest lids were updated.
                  value:
                    errors:
                    - id: null
                      code: dcs:Inventory:FailedSSRLidUpdate
                      message: SSR lid updates failed.
                      type: Validation
                      details: null
                      rawMessage: SSR lid updates failed.
                      exception: null
                      debugMode: The API is currently running in debug mode. In production the 'rawMessage' and 'exception' nodes will not be returned. These are for troubleshooting development issues only.
                    messages:
                    - rawValue: SSR lid update failed for leg key 'NjM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxNzQ-' and ssr nest code 'INVALIDCODE1'.
                      code: dcs:Inventory:FailedSSRLidUpdate
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: dcs:Inventory:FailedSSRLidUpdate
                      status: 1
                      details:
                        ssrNestCode: INVALIDCODE1
                    - rawValue: SSR lid update failed for leg key 'NjM4ODQ2MjQ0MDAwMDAwMDAwIU5WITU2ODIhICFTTEMhQk9TITI0OTYxNzQ-' and ssr nest code 'INVALIDCODE2'.
                      code: dcs:Inventory:FailedSSRLidUpdate
                      debugMode: The API is currently running in debug mode. In production the 'rawValue' node will not be returned. These are for troubleshooting development issues only.
                      type: Warning
                      value: dcs:Inventory:FailedSSRLidUpdate
                      status: 1
                      details:
                        ssrNestCode: INVALIDCODE2
                    data: null
        '401':
          description: Authorization Not Allowed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
  /api/dcs/v1/inventory/routes/{tripKey}/classes:
    get:
      tags:
      - inventory
      summary: Gets the classes for a route, stateless.
      description: 'GraphQL endpoint: inventoryRouteClasses'
      operationId: dcs_v1_inventory_routes_tripKey_classes_get
      parameters:
      - name: tripKey
        in: path
        required: true
        description: The trip key from a manifest or flight info.
        schema:
          type: string
        x-position: 1
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponseOfIListOfInventoryRouteClass'
        '404':
          description: The item was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
  /api/dcs/v1/inventory/routes/{tripKey}/classes/{classOfService}:
    patch:
      tags:
      - inventory
      summary: Patches an inventory route class's data based on information in the request.
      description: 'GraphQL endpoint: inventoryRouteClassModify'
      operationId: dcs_v1_inventory_routes_tripKey_classes_classOfService_patch
      parameters:
      - name: tripKey
        in: path
        required: true
        description: The trip key.
        schema:
          type: string
        x-position: 1
      - name: classOfService
        in: path
        required: true
        description: The class of service.
        schema:
          type: string
        x-position: 2
      requestBody:
        x-name: request
        description: The inventory class edit request.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InventoryRouteClassEditRequest'
        required: true
        x-position: 3
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
        '500':
          description: A server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
  /api/dcs/v1/inventory/routes/{tripKey}/classes/{classOfService}/authorizedUnit:
    delete:
      tags:
      - inventory
      summary: Deletes an inventory route class's authorized unit.
      description: 'GraphQL endpoint: inventoryRouteClassAuthorizedUnitDelete'
      operationId: dcs_v1_inventory_routes_tripKey_classes_classOfService_authorizedUnit_delete
      parameters:
      - name: tripKey
        in: path
        required: true
        description: The trip key.
        schema:
          type: string
        x-position: 1
      - name: classOfService
        in: path
        required: true
        description: The class of service.
        schema:
          type: string
        x-position: 2
      responses:
        '200':
          description: OK. Request completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IJsonResponse'
components:
  schemas:
    IJsonResponseOfInventoryLegNest:
      type: object
      description: "Defines the JSON response contract.\n            "
      additionalProperties: false
      properties:
        data:
          description: "The payload data.\n            "
          $ref: '#/components/schemas/InventoryLegNest'
        errors:
          type:
          - array
          - 'null'
          description: "The collection of errors being thrown.\n            "
          items:
            $ref: '#/components/schemas/ErrorResponse'
        messages:
          type:
          - array
          - 'null'
          description: "The collection of informational messages.\n            "
          items:
            $ref: '#/components/schemas/Message'
    TransportationIdentifier:
      type: object
      description: "Represents the transportation identifier model data.\n            "
      additionalProperties: false
      required:
      - identifier
      - carrierCode
      properties:
        identifier:
          type: string
          description: "The unique transportation identifier.\n            "
          maxLength: 4
          minLength: 0
        carrierCode:
          type: string
          description: "The carrier code.\n            "
          maxLength: 3
          minLength: 2
        opSuffix:
          type:
          - string
          - 'null'
          description: "The op suffix.\nPlease note that this should be a char and not a string.\n            "
          maxLength: 1
    FlyAheadControls:
      type: object
      description: "The leg fly-ahead control model information.\n            "
      additionalProperties: false
      properties:
        offerStatus:
          description: "The fly-ahead offer status for the leg.\n            "
          $ref: '#/components/schemas/FlyAheadOfferStatus'
        isCandidate:
          type: boolean
          description: "True if the leg is available for use in fly-ahead candidates; false otherwise.\n            "
        departBeforeMinutes:
          type: integer
          description: "The number of minutes before departure of the current journey that a\ncandidate journey is allowed to depart if that candidate journey\ncontains this leg.\n            "
          maximum: 30240.0
          minimum: 0.0
        departAfterMinutes:
          type: integer
          description: "The number of minutes after departure of the current journey that a\ncandidate journey is allowed to depart if that candidate journey\ncontains this leg.\n            "
          maximum: 30240.0
          minimum: 0.0
        arrivalAfterMinutes:
          type: integer
          description: "The number of minutes after arrival of the current journey that a\ncandidate journey is allowed to depart if that candidate journey\ncontains this leg.\n            "
          maximum: 30240.0
          minimum: 0.0
        soldThresholdPercent:
          type: integer
          description: "The maximum resulting sold threshold percentage for the candidate\njourney if this

# --- truncated at 32 KB (62 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/tui-group/refs/heads/main/openapi/tui-group-inventory-api-openapi.yml