Normalizing two very different travel-supplier APIs into one booking flow, and where the real edge cases hide.
Separate an offer from a booking
A hotel room and a bus seat can both appear in search results, but the purchase decisions are different. A room needs occupancy and cancellation terms. A seat needs a departure, boarding point and seat identifier. Keep these distinctions in supplier adapters, and expose only the fields the checkout can genuinely interpret.
Recheck at the point of commitment
Treat a search price as a quote. Immediately before confirmation, check availability, currency and supplier terms again. If the total changes, show both amounts and ask the traveller to accept the new one. Save the accepted quote with the booking so support can reconstruct what the traveller saw.
Handle an uncertain outcome
If a supplier times out after a reservation request, the booking might already exist. Keep a local pending reference, reconcile it with the supplier and show a pending message. A retry button should resume that reconciliation before attempting another reservation.
