{
  "opencollection": "1.0.0",
  "info": {
    "name": "United Airlines NDC Booking API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Booking",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Bookings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.united.com/v1/bookings",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter bookings by status"
              },
              {
                "name": "departureDate",
                "value": "",
                "type": "query",
                "description": "Filter by departure date (YYYY-MM-DD)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.united.com/v1/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve a list of bookings for the agency or traveler account."
        },
        {
          "info": {
            "name": "Create Booking",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.united.com/v1/bookings",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.united.com/v1/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new flight booking using a selected offer. Supports hold bookings (fare-dependent), credit card payment with two-factor authentication, and unused ticket application as payment."
        },
        {
          "info": {
            "name": "Get Booking",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.united.com/v1/bookings/:bookingId",
            "params": [
              {
                "name": "bookingId",
                "value": "",
                "type": "path",
                "description": "Unique booking identifier (PNR/record locator)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.united.com/v1/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve details of a specific booking by its ID."
        }
      ]
    }
  ],
  "bundled": true
}