Sabre Leg Detection Virtual Sandbox
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 sandbox 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.
Leg-Detect
POST
{
"dateTimeStamp": "2026-08-23T00:00:00.0Z",
"isDiagnosticEnabled": true,
"pseudoCityCode": "SNY",
"segments": [
{
"arrivalAirportCode": "HKG",
"arrivalDate": "2026-06-14",
"arrivalStopoverHoursOverride": 4,
"arrivalTime": "16:20",
"carrierCode": "UA",
"classOfService": "F",
"departureAirportCode": "SIN",
"departureDate": "2026-06-20",
"departureTime": "22:00",
"flightNumber": 101,
"id": 103,
"status": "NN"
},
{
"arrivalAirportCode": "BER",
"arrivalDate": "2026-06-20",
"arrivalStopoverHoursOverride": 2,
"arrivalTime": "05:30",
"carrierCode": "SQ",
"classOfService": "H",
"departureAirportCode": "JFK",
"departureDate": "2026-06-14",
"departureTime": "11:20",
"flightNumber": 789,
"id": 109,
"status": "HK"
}
],
"senderName": "NDC"
}{
"diagnostics": [
[
"Rules applied",
"Fare recalculated"
],
[
"Validation success",
"Inventory updated",
"Leg segment mapped"
],
[
"Availability confirmed",
"Price verified",
"Rules applied"
],
[
"Connection found",
"Availability confirmed",
"Fare recalculated",
"Inventory updated"
]
],
"legs": [
{
"cabin": "B",
"id": 8,
"segmentsIds": [
106,
110,
103
]
}
]
}{
"errors": [
{
"category": "BAD_REQUEST",
"description": "Malformed request syntax.",
"type": "INVALID_FIELD"
},
{
"category": "FORBIDDEN",
"description": "Required field missing in request.",
"type": "REQUEST_PARSE_ERROR"
},
{
"category": "UNAUTHORIZED",
"description": "Invalid segment ID provided.",
"type": "DUPLICATE_REQUEST"
}
],
"status": 505
}{
"errors": [
{
"category": "NOT_FOUND",
"description": "Required field missing in request.",
"type": "TIMEOUT"
},
{
"category": "FORBIDDEN",
"description": "Required field missing in request.",
"type": "TIMEOUT"
},
{
"category": "UNAUTHORIZED",
"description": "Invalid segment ID provided.",
"type": "INVALID_FIELD"
}
],
"status": 515
}Service Homepage: developer.sabre.com/rest-api/leg-detection/v1
sabretravelflightaviationleg-detection