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-07-21T00:00:00.0Z",
"isDiagnosticEnabled": false,
"pseudoCityCode": "0CK",
"segments": [
{
"arrivalAirportCode": "HKG",
"arrivalDate": "2026-06-14",
"arrivalStopoverHoursOverride": 4,
"arrivalTime": "10:15",
"carrierCode": "SQ",
"classOfService": "F",
"departureAirportCode": "SIN",
"departureDate": "2026-06-14",
"departureTime": "18:10",
"flightNumber": 505,
"id": 106,
"status": "UN"
}
],
"senderName": "OTA"
}{
"diagnostics": [
[
"Cabin matched",
"Rules applied",
"Connection found",
"Tax calculated",
"Leg segment mapped"
],
[
"Fare recalculated",
"Availability confirmed",
"Tax calculated",
"Rules applied"
],
[
"Inventory updated",
"Tax calculated"
],
[
"Connection found",
"Tax calculated",
"Price verified"
],
[
"Price verified",
"Inventory updated",
"Rules applied",
"Tax calculated",
"Cabin matched"
]
],
"legs": [
{
"cabin": "K",
"id": 8,
"segmentsIds": [
103,
101,
104,
106
]
},
{
"cabin": "S",
"id": 2,
"segmentsIds": [
103,
101,
104,
107,
109
]
}
]
}{
"errors": [
{
"category": "BAD_REQUEST",
"description": "Client did not provide required data.",
"type": "INCOMPLETE_DATA"
}
],
"status": 592
}{
"errors": [
{
"category": "BAD_REQUEST",
"description": "Client did not provide required data.",
"type": "INCOMPLETE_DATA"
},
{
"category": "INTERNAL_SERVER_ERROR",
"description": "Required field missing in request.",
"type": "TIMEOUT"
},
{
"category": "UNAUTHORIZED",
"description": "Required field missing in request.",
"type": "TIMEOUT"
},
{
"category": "UNAUTHORIZED",
"description": "Malformed request syntax.",
"type": "DUPLICATE_REQUEST"
}
],
"status": 410
}Service Homepage: developer.sabre.com/rest-api/leg-detection/v1
sabretravelflightaviationleg-detection