A B2C and B2B travel booking engine can serve individual travellers and accredited business customers without maintaining two unrelated booking systems. The practical design is one supplier transaction layer behind two deliberately different shopping, quoting, payment and servicing policies. A retail customer may browse publicly, accept a displayed total and pay through checkout. An agency user may need an approved account, a commercial quote, a permitted payment method, an identifiable booking owner and access to controlled servicing actions.
The inventory can originate from the same permitted supplier connection, yet the right to display, sell, book or service it can vary by channel, account and market. A shared backend should therefore reuse supplier integration logic while preserving the context that made each transaction lawful and operationally supportable. This page describes an implementation approach for a custom travel platform, not a claim that any particular inventory, supplier agreement, payment feature or automation is already available.
One transaction foundation, two commercial journeys
The common foundation handles supplier authentication, availability requests, offer normalization, price verification, reservation submission, fulfilment records, cancellations and status retrieval where the connected provider supports them. The experience above that foundation is channel-specific. B2C rules prioritize customer-facing clarity, consumer checkout, transparent conditions and self-service boundaries. B2B rules add organization membership, agency permissions, negotiated commercial treatment, approval paths and settlement controls.
What should be shared
Reuse the adapter that understands supplier requests and responses, the canonical record for an offer, the booking state machine, integration monitoring and reconciliation events. Maintain one method for recording supplier references and the original commercial conditions. This avoids separate retail and agency implementations disagreeing about what the provider actually confirmed.
What must remain separate
Separate account eligibility, search exposure, price presentation, quote classification, approved payment instruments, cancellation authority and customer communications. A B2B user should not gain retail refund privileges merely because the booking engine uses a shared endpoint; a retail user should never inherit a private agency fare or credit limit through a cached search response.
Architecture: route context before supplier calls
A useful architecture has five logical responsibilities: channel experience, identity and policy decision, supplier connectivity, transaction orchestration, and financial or servicing records. These are boundaries of responsibility rather than a requirement to deploy five separate services. For a smaller launch they can be modules in one application, provided authorization and audit boundaries remain testable.
Preserve the request context
Every search, quote and subsequent operation should carry a stable context: channel, tenant or agency, acting user, customer, market, point of sale, product, currency, proposed payment route and relevant policy version. The server derives trusted identity and entitlements from authenticated records. It should not accept a browser-supplied “agency” flag as proof of agency eligibility.
Normalize data without erasing supplier meaning
Supplier adapters translate provider-specific data into usable fields such as itinerary, room, occupancy, inclusions, tax treatment, cancellation terms, deadlines and supplier offer references. The normalized model should also retain raw or referenceable supplier conditions, their retrieval time and version, subject to retention and contract rules. A comparison screen needs consistent labels; a confirmed reservation still needs the source's exact identifiers and conditions.
Airline content illustrates why this distinction matters. IATA describes NDC as an offer-and-order communication standard, not a universal promise that every airline or connection supports identical functions. A source adapter may expose a change operation while another requires manual supplier servicing. The common API should express that capability difference rather than simulate a feature that cannot be completed.
One booking state machine, provider-specific transitions
A booking workflow could use internal states such as selected, revalidation-required, payment-pending, supplier-submitted, confirmed, failed, cancellation-requested and cancelled. Define precise entry criteria and permitted transitions for each state. “Payment captured” is not the same as “travel confirmed”; a success screen should depend on the actual fulfilment record and the applicable business rule.
Store correlation IDs for the customer order, quote, payment attempt, supplier request and provider confirmation. When an API call times out, reconciliation should first determine whether the provider created a booking. Blindly repeating a reservation request can produce duplicate travel arrangements. HTTP itself does not make an arbitrary booking POST safe to retry; the IETF definition of idempotency is a useful engineering reference for retry policy.
Source entitlement is a transaction attribute, not a menu setting
Entitlement answers a narrow but essential question: may this seller use this source for this specific purpose? Model it separately from credentials. Possessing valid API credentials proves technical access, not necessarily permission to display particular content to every audience or settle every order under the same conditions.
Record why each result was eligible
For each considered source, retain a source identifier, contract or configuration reference, entitled selling entity, permitted channel, geographic scope if applicable, allowed products, operation permissions and the policy decision version. An entitlement decision can be allowed, denied or pending clarification. Pending should not silently become allowed because the platform wants more search results.
At offer selection, bind the decision to the resulting quote. At booking, reassess conditions that can change, such as account status or supplier restrictions, and record the final decision. Keep credential rotation and operational health in their own controls; an expired token is a connectivity problem, while a channel restriction is an entitlement problem.
Handle restricted distribution explicitly
Consider an agency that can shop a contracted source for its authorized users but cannot redistribute that source through an anonymous retail website. The shared layer may still communicate with the same adapter for both channels, but its policy engine excludes the restricted source from the retail request. If a permitted public source returns the same flight, that is a separate eligible offer with its own source reference and conditions.
Shopping policy: same search intent, different presentation
Begin with a canonical search intent: travellers, route or destination, dates, occupancy and requested product. Then apply channel policy to determine eligible suppliers, displayable attributes, sorting rules, currency presentation, customer eligibility and any required disclosures. A retail traveller may see public choices ordered by total payable amount. An agency may see net or selling amounts, commission-related fields and internal remarks only when its account is authorized for those fields.
Compare like with like before ranking
Two flight results are not interchangeable merely because the route and time match. Baggage, change conditions, fulfilment method and payment constraints can differ. Two hotel results can refer to one property while using different occupancy, meal, room or cancellation terms. Preserve these attributes and indicate when values are unknown. A missing baggage field should not become “baggage included”; a missing cancellation deadline should not become “free cancellation.”
Prevent search-cache policy leakage
Search caching can reduce repeated work, but a result cached for an eligible agency must not be served to an anonymous shopper. Cache keys or post-cache authorization should account for source, entitled entity, channel, market, policy version and pricing context. Revalidate offers before commitment because search responses may become stale; never treat a cached result as an inventory guarantee.
Two quote classes on one offer record
A quote is the platform's controlled presentation of an eligible supplier offer under a defined selling policy. Treat the quote class as immutable after issuance. For example, retail quote and agency quote are internal classification labels proposed for this architecture, not universal travel-industry standards. Each quote references its original source offer, policy version, price components, terms snapshot and expiry or revalidation requirement.
Retail quote: customer-visible commitment
The retail quote should present the payable total in the selected currency, mandatory charges known at quotation time, included services, material restrictions and the next action. If the customer edits a traveller name, date or itinerary, invalidate or recalculate affected offers before allowing payment. Do not promise a fixed price after expiry unless the supplier and commercial arrangement actually support that promise.
Agency quote: accountable business transaction
The agency quote identifies the buying organization, agent or authorized user, traveller, eligible source, applicable markup or commission policy, quote creator and approval state. Where the business offers negotiated selling controls, capture the authorized adjustments and who approved them. Show internal cost details only to roles permitted to view them. A quote passed to an end traveller should use an explicitly generated customer-facing version, not a screenshot that leaks agency terms.
Version every consequential policy decision
Policies change: an agency's credit privileges may be suspended, a payment route may be disabled, or a distribution rule may be revised. Historical quotes and booked orders need enough immutable context to explain why a transaction was accepted when it was. Record the applied policy version, not just today's account settings. For rebooking, modification or additional services, run the current applicable policy again and keep the old decision for audit.
Illustrative workflow: trace one flight through both channels
The following scenario is invented solely to demonstrate system behavior. It uses no supplier names, fares, available seats, dates or contractual assertions. Assume a flight itinerary is returned by source S, which is entitled for both a direct-consumer selling entity and an agency account. Both channels can examine the same underlying product, but their commercial and payment decisions remain independent.
- Search intent enters the system. A retail visitor searches a route and travel date. Separately, an authenticated agency employee searches the same route and date for a client. Each request receives its own trace ID, channel and trusted actor context. Neither request inherits the other's identity or policy.
- Entitlement is resolved before shopping. The rule evaluator checks whether source S may be queried and displayed for the retail seller and the particular agency. It records two entitlement decisions with relevant policy versions. If one side is not eligible, the system does not manufacture a matching result for that side.
- The shared adapter receives permitted requests. Both authorized contexts use the same integration code, which preserves source offer references and provider conditions. A normalizer creates comparable itinerary attributes, but keeps distinct source response records so search timing or contractual context is not lost.
- Two quotes are issued. The retail quote has a consumer-facing amount and payment instructions. The agency quote has its own selling-policy calculation, account reference and any required approval fields. Their totals need not match. Neither quote overwrites the supplier's original commercial data.
- Selection triggers revalidation. Each buyer chooses the itinerary. The platform checks the selected offer against supplier-supported repricing or verification steps. If the provider responds with changed conditions, it presents the change for acceptance rather than silently proceeding under an obsolete quote.
- Payment follows the channel policy. The retail checkout attempts only its permitted payment method. The agency route may use a separately approved method or account arrangement if one has been contractually configured. The payment record captures what happened; it does not claim that the supplier reservation is confirmed.
- Booking follows one orchestration contract. A booking service creates a customer order and submits each permitted transaction to source S with a unique operation reference. Source response IDs and fulfilment outcomes are recorded separately for retail and agency orders. A timeout leads to status investigation, not an uncontrolled second booking attempt.
- Servicing preserves ownership. Later, the retail traveller requests cancellation through their booking page. The agency client contacts the agency, whose authorized employee requests a change or refund. The platform checks each order's source rules and actor permissions before sending an eligible supplier request or assigning a manual case.
Read the trace without confusing the two orders
The two paths may share itinerary characteristics and integration code, yet they must retain different quote IDs, order IDs, actors, payment references and approval histories. An investigator should be able to start from either customer record, find the exact source response and entitlement decision, then follow every transition to payment and fulfilment. The ability to reconstruct this chain is more useful than an admin dashboard that merely says “booked.”
Trace the same inventory without merging distinct obligations
Use a trace ledger to relate shared product characteristics to channel-specific transactions. This is not an assertion that two live offers are identical or simultaneously available; it is a way to demonstrate provenance when a provider returns potentially comparable content through eligible paths. In particular, do not combine separate supplier offer references solely because the flight number or hotel name matches.
Minimum relationships to preserve
| Record | Shared foundation | Retail path | Agency path |
|---|---|---|---|
| Search | Source adapter S, product comparison fields | Retail trace and eligibility result | Agency trace and eligibility result |
| Offer | Provider offer reference and conditions | Retail offer snapshot | Agency offer snapshot |
| Quote | Common quote schema | Retail class and policy version | Agency class and policy version |
| Order | Booking orchestrator and supplier reference | Retail buyer and payment transaction | Agency, employee and approved settlement route |
| After-sales | Provider capability and response history | Customer-authorized service case | Agency-authorized service case |

Reconciliation should test the chain, not merely join records by traveller name. For example, one source response could support two separately evaluated quotes, but each confirmed booking must have its own customer order and attributable supplier confirmation. When the provider returns a revised reference during a change, keep both the previous and current references with a reasoned event history.
Payment policy, settlement and exceptional outcomes
Payment choice is an authorization decision, not just a checkout component. Retail cards, an agency's approved account settlement, offline approval and supplier-direct payment are different possibilities requiring explicit commercial and technical configuration. Do not advertise any as supported until the relevant parties, payment service, supplier workflow and operating responsibilities have been verified.
Separate what was quoted, charged and owed
Maintain distinct records for the customer selling amount, supplier purchase or payable amount where applicable, fees, tax treatment as actually provided, payment authorization, capture, refund and supplier settlement. Currency conversions should preserve the rate source, timestamp, rounding rule and transaction currency when a conversion is used. Financial reporting must distinguish receivables, cash collected, supplier obligations and unresolved exceptions instead of treating every paid checkout as earned margin.
For card transactions, design around a suitable payment provider and assess the applicable PCI DSS responsibilities. Outsourcing payment processing does not automatically remove all merchant obligations, as the PCI Security Standards Council explains. Keep payment tokens, status references and permissioned operational metadata rather than unnecessary card data.
Plan for partial success, not only a happy path
Suppose checkout is authorized but the supplier returns an uncertain response. The system should place the order into an investigation state, query supported supplier status endpoints or escalate to an operator, and avoid implying confirmation. Conversely, if a supplier confirms and payment later fails, the platform needs a documented treatment aligned with supplier rules and the business's financial responsibilities.
Refunds and servicing are policy-bound transactions
The party requesting a refund is not necessarily the party authorized to instruct the supplier. A retail customer may initiate a request, but a provider or merchant may need to approve it. An agency employee may be allowed to manage its organization's reservations but not those of another agency. The platform must check both the actor's authority and the source's supported servicing route.
Separate eligibility, approval and actual refund
A refund workflow can begin by retrieving the original booking and its applicable terms, identifying the source of payment, determining what provider actions are possible, and presenting any verified penalties or unresolved conditions. The decision may require a human approval. Only an actual provider or payment response should move the related transaction to a completed status. A customer-facing “refund requested” message must not be mistaken for “refund issued.”
Keep the requested amount, approved amount, provider adjustment, gateway transaction and final settlement separately. Where service fees, taxes or exchange differences affect the outcome, disclose the basis according to the actual transaction conditions. Never infer a universal refund deadline or automatic eligibility from the category of travel product alone.
Service changes against the original source
Name corrections, date changes, cancellations and ancillary requests differ by supplier and product. A servicing capability registry should describe supported actions and prerequisites per source and booked product. Actions missing from the provider API should produce a supported manual workflow, not a button that falsely implies automation. IATA's ONE Order initiative describes a direction for order-centric airline fulfilment; it should not be read as proof that every current source exposes a unified servicing interface.
Security, privacy and operating visibility
Authorize every record and operation
Tenant separation needs enforcement at the API and data layers, not merely hidden interface menus. Check object ownership for booking retrieval, document downloads, quote sharing, cancellations and refund decisions. The OWASP API Security guidance on object-level authorization is directly relevant to agencies that share infrastructure but must not share customer records.
Collect only information needed for the journey
Define which traveller and contact details each stage requires, how long records remain necessary, who may access them and how corrections are handled. Relevant privacy regimes depend on geography and processing context; for EU-related personal data, the European Commission's GDPR principles explain purpose limitation, data minimization and storage limitation. Apply legal review to the actual business model rather than assuming a generic policy covers every market.
Implementation checklist for a B2C and B2B travel engine
- Define selling entities: identify retail merchant responsibilities, agency organizations, administrators, branch roles and who owns each traveller relationship.
- Confirm source permission: record contracted products, permitted markets, channels, points of sale, redistribution rights and allowed API operations for each source.
- Specify quote classes: make retail versus agency price visibility, fees, approvals, expiry behavior and policy versions testable.
- Map product differences: choose which itinerary, hotel, ancillary and cancellation attributes must survive normalization and comparison.
- Design payment boundaries: identify accepted instruments, payer of record, capture timing, credit or settlement approvals and exception owners.
- Preserve traceability: relate search, entitlement decision, supplier offer, quote, customer order, payment, supplier booking and service events.
- Verify after-sales coverage: document supported change, cancellation, refund and retrieval actions by provider; define manual fallbacks.
- Test negative cases: blocked agency, expired quote, stale offer, payment success with unknown booking outcome, duplicate submission and unauthorized record access.
- Prepare operations: establish queues, reconciliation rules, monitoring, audit retention, support ownership and escalation paths.
- Release by journey: prove one complete eligible product flow for each channel before adding more suppliers or travel categories.
Frequently asked questions
Does one supplier transaction layer mean one supplier account?
No. It means common integration and orchestration responsibilities can be reused. Each supplier may require separate commercial agreements, credentials, selling entities or environments. The platform should select an authorized connection according to the transaction context, not reuse credentials merely because both channels share software.
Will B2B and B2C customers see the same price?
Not necessarily. The supplier offer, permitted charges, applicable business rules and display policy determine each quote. Even when an itinerary appears in both channels, quote class and source entitlement must be recorded separately. The system should never assume a special agency amount is publishable to retail visitors.
Can the same flight or hotel appear in both channels?
Yes, when each channel is entitled to that content and the source returns an eligible offer. Similar-looking travel products should be traced to their specific supplier references and terms. Shared product identity is not proof of shared price, availability, baggage, cancellation rights or booking authority.
Can an agency book without immediate card payment?
Only if the relevant business arrangement, account permissions, supplier requirements and payment configuration support that route. Credit limits, invoicing and deferred settlement must be designed as explicit policies with audit controls. They are not inherent features of every B2B travel booking engine.
Who can approve a cancellation or refund?
The answer depends on the booking owner, selling entity, supplier conditions, payment route and delegated authority. A portal may let a customer request an action while restricting approval or supplier submission to authorized personnel. The UI should distinguish a request, an approval and a completed provider or payment transaction.
What happens when the supplier does not respond after payment?
Mark the supplier outcome as uncertain and begin controlled investigation. Inspect existing provider references and supported status checks before deciding whether any retry is safe. Keep the buyer informed without claiming confirmation. Define the eventual remedy through the applicable payment, supplier and merchant processes.
Can the portal support additional agency rules later?
Yes, if those rules are modeled as versioned policy decisions rather than scattered interface exceptions. Additional roles, market restrictions, approval stages or quote types can then be evaluated against existing authorization, traceability and servicing contracts. Each extension still requires tests for data leakage and cross-channel effects.
Plan the platform around complete, supportable transactions
For adjacent planning topics, see B2B and B2C travel portal development and B2B travel booking engine development. These are complementary routes for evaluating channel design and agency-specific workflows.
TravelTech365 approaches this as custom development and integration discovery: identify eligible supplier access, document both selling policies, trace a real test transaction from shopping to servicing, and agree on acceptance criteria before widening scope. To discuss a practical architecture for your business, share your booking-engine requirements, including intended markets, supplier access, customer types and payment responsibilities.
