Sabre Leg Detection Mock Server

Determine flight legs and retrieve corresponding cabin information.

Leg Detection is used to determine flight legs and retrieves the corresponding cabins for each leg. This service helps developers map complex flight segments to specific cabin classes, ensuring accurate inventory and product representation in travel applications.

Use this hosted mock server to simulate Sabre Leg Detection APIs without authentication, API keys, or extra dependencies. Point your code or SDK to the Beeceptor base URL, preferably through an environment variable or feature flag, and switch back to the production API when ready. This keeps your integration code consistent across local development, QA, demos, and production.

Use cases:

Use this sandbox to validate flight leg identification logic, cabin availability mapping, and segment-level data parsing to ensure your application correctly interprets complex multi-leg itineraries and cabin-class structures.

Sabre Leg Detection mock server is up and running!

Use this mock URL as the API base in your code to simulate Sabre Leg Detection responses instantly.

https://sabre-leg-detection.mock.beeceptor.com



Leg-Detect

{
  "dateTimeStamp": "2026-06-16T00:00:00.0Z",
  "isDiagnosticEnabled": true,
  "pseudoCityCode": "6D4",
  "segments": [
    {
      "arrivalAirportCode": "ICN",
      "arrivalDate": "2026-06-15",
      "arrivalStopoverHoursOverride": 5,
      "arrivalTime": "23:55",
      "carrierCode": "LH",
      "classOfService": "J",
      "departureAirportCode": "CDG",
      "departureDate": "2026-06-16",
      "departureTime": "14:30",
      "flightNumber": 101,
      "id": 107,
      "status": "QF"
    },
    {
      "arrivalAirportCode": "ICN",
      "arrivalDate": "2026-06-11",
      "arrivalStopoverHoursOverride": 5,
      "arrivalTime": "10:15",
      "carrierCode": "BA",
      "classOfService": "B",
      "departureAirportCode": "LHR",
      "departureDate": "2026-06-14",
      "departureTime": "19:40",
      "flightNumber": 505,
      "id": 105,
      "status": "TK"
    },
    {
      "arrivalAirportCode": "BKK",
      "arrivalDate": "2026-06-11",
      "arrivalStopoverHoursOverride": 24,
      "arrivalTime": "15:50",
      "carrierCode": "NH",
      "classOfService": "K",
      "departureAirportCode": "CDG",
      "departureDate": "2026-06-15",
      "departureTime": "14:30",
      "flightNumber": 101,
      "id": 105,
      "status": "UN"
    },
    {
      "arrivalAirportCode": "LAX",
      "arrivalDate": "2026-06-16",
      "arrivalStopoverHoursOverride": 8,
      "arrivalTime": "05:30",
      "carrierCode": "BA",
      "classOfService": "W",
      "departureAirportCode": "SIN",
      "departureDate": "2026-06-19",
      "departureTime": "11:20",
      "flightNumber": 789,
      "id": 103,
      "status": "TL"
    }
  ],
  "senderName": "OTA"
}
{
  "diagnostics": [
    [
      "Validation success",
      "Connection found",
      "Rules applied",
      "Tax calculated"
    ]
  ],
  "legs": [
    {
      "cabin": "M",
      "id": 2,
      "segmentsIds": [
        102,
        103,
        106,
        101,
        104
      ]
    },
    {
      "cabin": "W",
      "id": 1,
      "segmentsIds": [
        104,
        108,
        102,
        110
      ]
    },
    {
      "cabin": "J",
      "id": 8,
      "segmentsIds": [
        108,
        101,
        104
      ]
    }
  ]
}
{
  "errors": [
    {
      "category": "INTERNAL_SERVER_ERROR",
      "description": "Required field missing in request.",
      "type": "DUPLICATE_REQUEST"
    },
    {
      "category": "UNAUTHORIZED",
      "description": "Service currently unavailable.",
      "type": "INVALID_FIELD"
    },
    {
      "category": "UNAUTHORIZED",
      "description": "Invalid segment ID provided.",
      "type": "INCOMPLETE_DATA"
    }
  ],
  "status": 483
}
{
  "errors": [
    {
      "category": "BAD_REQUEST",
      "description": "Malformed request syntax.",
      "type": "TIMEOUT"
    },
    {
      "category": "INTERNAL_SERVER_ERROR",
      "description": "Service currently unavailable.",
      "type": "DUPLICATE_REQUEST"
    },
    {
      "category": "FORBIDDEN",
      "description": "Invalid segment ID provided.",
      "type": "INVALID_FIELD"
    },
    {
      "category": "INTERNAL_SERVER_ERROR",
      "description": "Service currently unavailable.",
      "type": "TIMEOUT"
    },
    {
      "category": "INTERNAL_SERVER_ERROR",
      "description": "Malformed request syntax.",
      "type": "DUPLICATE_REQUEST"
    }
  ],
  "status": 535
}
sabretravelflightaviationleg-detection