Architecture Hub V2

Sabre Normalized & Multi-Source Architecture

Unified distribution pipeline for ATPCO (EDIFACT), LCC, and New Distribution Capability (NDC) with zero-breaking impact on legacy V1 clients.

1. Official Sabre Option 2 Architecture Flow (Normalized Shopping & Booking)

This diagram represents the exact flow recommended by Sabre in slide 49 (Image 2). Notice that both ATPCO/LCC and NDC originate from the Multi-Source Shopping API, diverge only for fare pricing/revalidation, and then converge into the unified Booking Management API:

flowchart LR
    %% Styles
    classDef shop fill:#dc2626,stroke:#ef4444,stroke-width:2px,color:#fff
    classDef reval fill:#1e3a8a,stroke:#3b82f6,stroke-width:2px,color:#fff
    classDef price fill:#1e293b,stroke:#64748b,stroke-width:2px,color:#fff
    classDef create fill:#0284c7,stroke:#38bdf8,stroke-width:2px,color:#fff
    classDef fulfill fill:#059669,stroke:#10b981,stroke-width:2px,color:#fff
    classDef get fill:#064e3b,stroke:#047857,stroke-width:2px,color:#fff
    classDef modify fill:#1e3a8a,stroke:#3b82f6,stroke-width:2px,color:#fff
    classDef cancel fill:#1e3a8a,stroke:#3b82f6,stroke-width:2px,color:#fff

    SHOP["SHOP FOR OFFERS
v5/offers/shop
(Multi Source Shopping)"]:::shop REVAL["REVALIDATE ITIN
(ATPCO / LCC)
RevalidateItineraryRQ"]:::reval PRICE["PRICE OFFERS
(NDC)
/v1/offers/price"]:::price CREATE["CREATE BOOKING
(ATPCO / LCC / NDC)
/v1/trip/orders/createBooking"]:::create FULFILL["FULFILL RESERVATION
(ATPCO / LCC / NDC)
/v1/orders/fulfilFlightTickets"]:::fulfill GET["GET BOOKING
(ATPCO / LCC / NDC)
/v1/trip/orders/getBooking"]:::get MODIFY["MODIFY BOOKING
/v1/trip/orders/modifyBooking"]:::modify CANCEL["CANCEL BOOKING
/v1/trip/orders/cancelBooking"]:::cancel SHOP -->|ATPCO / LCC| REVAL SHOP -->|NDC| PRICE REVAL --> CREATE PRICE --> CREATE CREATE -->|ATPCO / LCC / NDC| FULFILL FULFILL -->|ATPCO / LCC / NDC| GET CREATE -.-> MODIFY CREATE -.-> CANCEL
💡 Why existing APIs are still used for ATPCO: As shown in Sabre's diagram, RevalidateItineraryRQ is the official existing service for traditional ATPCO/LCC fare checks. Option 2 does not throw away existing services—instead, it uses Multi-Source Shopping at the start and normalizes everything into /v1/trip/orders/createBooking!
2. Backend Implementation: V1 Legacy Pipeline vs V2 Normalized Engine

Comparing how your Tripanda backend handles requests in V1 vs V2:

flowchart TB
    subgraph V1["V1 Legacy Pipeline (/api/product_sabre/*)"]
        direction TB
        V1_Shop["bargain_max
(GDS Only)"] --> V1_Reval["revalidate_itinerary
(RevalidateItineraryRQ)"] V1_Reval --> V1_PNR["create_pnr
(CreatePassengerNameRecordRQ)"] V1_PNR --> V1_Ticket["ticket_issue
(AirTicketRQ via LNIATA)"] end subgraph V2["V2 Normalized Pipeline (/api/v2/sabre/*)"] direction TB V2_Shop["flights/search
(Multi-Source MSS: ATPCO + NDC)"] --> V2_Branch{Is NDC?} V2_Branch -->|No: ATPCO| V2_Reval["flights/price
(RevalidateItineraryRQ)"] V2_Branch -->|Yes: NDC| V2_Price["flights/price
(/v1/offers/price)"] V2_Reval --> V2_Book["bookings/create
(/v1/trip/orders/createBooking)"] V2_Price --> V2_Book V2_Book --> V2_Fulfill["bookings/fulfill
(/v1/orders/fulfilFlightTickets)"] V2_Fulfill --> V2_Get["bookings/{id}
(/v1/trip/orders/getBooking)"] end
3. Complete Endpoint Reference: V1 (Legacy) vs V2 (Normalized)

V1 remains 100% backward compatible for existing production clients, while V2 powers the modern NDC distribution:

Operation V1 Legacy Endpoint V2 Normalized Endpoint Sabre Under-the-Hood API
Flight Search POST /api/product_sabre/bargain_max POST /api/v2/sabre/flights/search Sabre MSS v5/offers/shop
Price / Revalidate POST /api/product_sabre/revalidate_itinerary POST /api/v2/sabre/flights/price Auto-route: /v1/offers/price (NDC) or Revalidate (ATPCO)
Create Booking POST /api/product_sabre/create_pnr POST /api/v2/sabre/bookings/create Normalized /v1/trip/orders/createBooking
Fulfill Ticket / Order POST /api/product_sabre/ticket_issue POST /api/v2/sabre/bookings/fulfill Normalized /v1/orders/fulfilFlightTickets
Get Booking GET /api/product_sabre/get_pnr GET /api/v2/sabre/bookings/{id} /v1/trip/orders/getBooking
Cancel Booking POST /api/product_sabre/cancel_pnr POST /api/v2/sabre/bookings/{id}/cancel /v1/trip/orders/cancelBooking
4. Data Normalization Pipeline: How Sabre Raw Data Becomes Clean JSON

Sabre's raw multi-source shopping response separates flight data across relational tables (scheduleDescs, legDescs, fareComponentDescs, baggageAllowanceDescs). The SabreFlightResponseNormalizer stitches them together into a unified model:

flowchart LR
    subgraph RawSabre["Raw Sabre Response (Relational Tables)"]
        S["scheduleDescs (Flight times, aircraft)"]
        L["legDescs (Elapsed time, stops)"]
        F["fareComponentDescs (Base fare, taxes)"]
        B["baggageAllowanceDescs (Weight, pieces)"]
        O["NDC Offer IDs (Order anchors)"]
    end

    subgraph Engine["SabreFlightResponseNormalizer"]
        M1["Stitch Leg & Schedules"]
        M2["Resolve Fares & Taxes"]
        M3["Map Baggage Weights"]
        M4["Tag Source (ATPCO vs NDC)"]
        M5["Apply Tenant Pricing Markups"]
    end

    subgraph Output["Frontend Universal Model"]
        JSON["Unified Flight Object\n(One UI Card component for all airlines)"]
    end

    RawSabre --> Engine
    Engine --> Output
                
5. Payload Evolution: V1 Booking vs Normalized V2

Comparison between the V1 Booking Gateway (which maps client JSON to Sabre SOAP/REST) and the V2 Normalized Order Management API:

✈️ V1 Gateway: POST /api/v1/product_sabre/create_pnr
{
  "contact": {
    "phone": "+60123456789",
    "email": "[email protected]"
  },
  "passengers": [
    {
      "type": "ADT",
      "givenName": "MUHAMMAD MRS",
      "surname": "SHAM",
      "dob": "1990-05-15",
      "gender": "M",
      "passport": {
        "number": "A12345678",
        "expirationDate": "2030-05-15",
        "issueCountry": "MYS",
        "nationalityCountry": "MYS"
      }
    }
  ],
  "originDestinationInformation": [
    {
      "Flights": [
        {
          "departureDateFlight": "2026-11-27T08:15:00",
          "flightNo": "1326",
          "marketing": "MH",
          "origin": "KUL",
          "destination": "TGG",
          "typeForFirstLeg": "O"
        }
      ]
    },
    {
      "Flights": [
        {
          "departureDateFlight": "2026-11-30T17:10:00",
          "flightNo": "1335",
          "marketing": "MH",
          "origin": "TGG",
          "destination": "KUL",
          "typeForFirstLeg": "O"
        }
      ]
    }
  ]
}
✅ V2 Normalized: POST /api/v2/sabre/bookings/create (NDC & ATPCO Unified)
{
  "offerId": "NDCOFFER-MH-98124",  // If NDC (or flightDetails if ATPCO)
  "confirmationHold": true,
  "travelers": [
    {
      "givenName": "AHMAD",
      "surname": "BIN ALI",
      "passengerCode": "ADT",
      "birthDate": "1990-05-15",
      "identityDocuments": [
        {
          "documentType": "PASSPORT",
          "documentNumber": "A12345678",
          "issuingCountry": "MYS",
          "expiryDate": "2030-05-15"
        }
      ]
    }
  ]
}
💡 Important: Search Output ('flightDetails') vs Booking Input ('create_pnr')

When receiving flight search or revalidation responses (containing flightDetails with departureList, Itineraries, and passangerFareInfo), client applications should not send the raw search envelope directly to create_pnr. Instead, extract the selected flight segments into originDestinationInformation[].Flights, format travelers into passengers, and supply the buyer's contact details as demonstrated in the V1 Gateway specification above.

6. Technical FAQ & Operational Guidelines

Q: Do we need separate background queue workers for NDC and ATPCO?

No. Sabre's Multi-Source Shopping engine (v5/offers/shop) executes parallel searches across all airline channels in Sabre's global infrastructure. Your backend only makes one single HTTP request to Sabre and receives all results unified.

Q: Will existing mobile apps or frontend clients break?

No. The legacy V1 endpoints at /api/product_sabre/* remain 100% active and untouched. The new architecture is deployed exclusively under /api/v2/sabre/*, allowing safe, phased client migration.

Q: Do we need a separate server for Sabre V2 Normalized & NDC?

No, absolutely not. Both V1 (legacy) and V2 (normalized) run seamlessly on the exact same server instance (webservices.tripanda.com). They share the same Laravel framework, PHP runtime, database, and Sabre OAuth credentials. A separate server is unnecessary and would only increase hosting costs and DevOps complexity.

Q: How are tenant markups and agency profits calculated?

Tripanda's MarkupService hooks directly into the SabreFlightResponseNormalizer. Markups are applied equally across ATPCO fares and NDC offers before the JSON is returned to the user, ensuring consistent profit margins regardless of airline distribution method.