● Travel Never Stops. Neither Do We. 365 Days a Year.

Flight, Hotel, Cars and Activities API Integration for Partial Checkout

Build a checkout for flights, hotels, cars and activities. Manage supplier holds, expiring quotes and partially confirmed trips.

A model airplane, a miniature suitcase, a navy booklet and car keys sit in separate groups on a stone desk

A traveler can select a flight, hotel, rental car, and sightseeing activity in one shopping session, but the suppliers behind those products rarely share a booking transaction. A flight may ticket immediately, a hotel may support a temporary hold, a car may confirm without prepayment, and an activity may sell its last available place while another request is processing. Good flight hotel cars activities api integration therefore begins with an uncomfortable but useful principle: one checkout screen does not create one indivisible reservation. Every commitment needs its own evidence, deadline, and recovery rule.

1. Define partial checkout before connecting suppliers

Partial checkout means the platform can finish with a mixture of confirmed, pending, failed, or deliberately skipped items. Those outcomes are not automatically defects. For example, a customer might knowingly retain a confirmed flight after a hotel becomes unavailable, or require every essential component to succeed before accepting the trip. The product policy must determine whether that distinction is permitted, not leave it to whichever API responds fastest.

Separate the cart, which expresses shopping intent, from the booking plan, which describes the commitments the system is authorized to attempt. The cart may contain several alternatives; the plan contains one selected offer per intended component, travelers, dates, monetary amounts, deadlines, prerequisites, cancellation conditions, and a recorded customer decision. A plan should not quietly add an activity or switch a room type after approval.

Make each product an independent commitment

A flight order, room reservation, car booking, and activity ticket require their own supplier identifiers and lifecycle. An HTTP success response is not necessarily proof of fulfillment: one supplier might return a request receipt, another an itinerary, and another a ticket that becomes usable only after a later action. Normalize internal states, but retain the original supplier status and payload reference so operators can establish exactly what was issued.

Do not represent these reservations as a distributed database transaction. Suppliers usually cannot participate in a common prepare-and-commit protocol, nor do they necessarily support reversing an accepted order. A practical design uses a long-running workflow, sometimes called a saga, with a durable journal and product-specific recovery steps. A compensating action may reduce the impact of a commitment; it does not guarantee restoration of the previous commercial position.

Choose the customer's acceptable outcome

Offer explicit booking policies. All essential items required means a failure triggers the feasible recovery process for previously committed essentials. Keep confirmed items means the traveler accepts specified components even when others fail. Ask before proceeding stops new commitments at a decision point. Classify each product as essential, optional, or conditional, and record when the customer consented to these rules.

Make the policy concrete. A traveler may require a flight and hotel together, treat the rental car as replaceable, and permit an activity to be omitted. Another traveler may consider an accessible car essential. “Optional” should come from the trip requirements, not from a hard-coded assumption that attractions matter less than flights. A policy change after one booking is confirmed needs renewed consent where financial exposure changes.

2. Build a booking plan the orchestrator can execute

The orchestrator should receive a versioned plan rather than raw UI fields. Give the checkout an internal ID and every product a stable line ID. Store the selected offer reference, supplier connector, passenger or guest mapping, date and time zone, payable amount and currency, taxes, fees, supplier rules, quoted-at time, and known expiry. Attach any required traveler data, but keep sensitive values within appropriately protected systems.

Represent prerequisites as a graph

Each plan line should declare dependencies such as “hotel check-in must follow arrival” or “activity attendance depends on the flight reaching the destination.” Some dependencies are constraints for validation, while others control booking order. That distinction matters: a car pickup may depend on an arrival time for correctness without requiring the flight to be ticketed before the car can be quoted.

Save both intention and evidence

For every step, persist what was requested, the idempotency or correlation key where supported, the moment the request was sent, and the response classification. Record the difference between an offer that was merely displayed, an inventory hold, a pending supplier commitment, and a final confirmation. A useful audit record allows support staff to answer “What did the customer approve?” and “What did the supplier actually confirm?” independently.

3. Treat temporary holds and quote expiry as different clocks

A displayed price is not a reservation. A supplier quote may become invalid because of a deadline, refreshed inventory, fare rules, inventory allocation, or a change in the chosen passenger details. A hold, if offered, is a separate supplier-recognized state that may temporarily protect particular inventory. Neither a checkout countdown nor a payment authorization creates an inventory hold by itself.

Use supplier-specific holds, not imaginary universal locks

For a concrete hotel example, Expedia Group's Rapid documentation describes a two-step Hold and Resume booking workflow. The guide states that not every rate is holdable; eligible rates can be identified through the documented shopping flag, and a held booking can later be resumed to confirm and pay within its permitted window. It also describes rolling back the hold when abandoned. This is a lodging-specific capability with its own request and response rules, not evidence that flight, car, and activity suppliers can be held together.

Implement a hold adapter only for products and rates whose supplier contracts and current documentation support it. Store the hold identifier, tokenized follow-up link or other required reference, hold expiry if known, and the permitted operations. Treat tokenized URLs as secrets. A hotel hold must not be presented as a confirmed stay; likewise, a supplier's “reserved” label should be mapped only after its contractual meaning is verified.

Calculate a workable checkout window

Track at least three clocks: the supplier offer expiry, the inventory hold deadline, and the customer's payment or authorization deadline. These may differ by product. Use server-side timestamps, the supplier's stated time zone where applicable, and a safety margin for network delays. For each operation, verify that sufficient time remains for its request, possible authentication step, and required verification call.

When the earliest relevant deadline is too close, stop adding commitments and reprice or re-shop affected lines. Revalidation should compare more than the headline amount: check refundability, baggage, room configuration, mileage limits, cancellation rules, meeting point, and other material terms. If the new terms differ, request renewed customer approval rather than silently substituting an offer. Never promise that repricing will reproduce the previous selection.

4. Decide dependency order by risk, not by menu position

There is no universally correct sequence such as flights first, hotels second, cars third, and activities last. Commit order depends on inventory scarcity, reversibility, penalty exposure, supplier latency, and whether one item is a prerequisite for another. A non-refundable flight booked before an uncertain hotel can create an expensive partial trip. A scarce hotel held for a short period may instead need attention before a flexible flight is issued.

Separate validation, reservation, and payment

Start with a preflight validation phase: recheck the products, confirm availability where supported, evaluate dependencies, and calculate the amount the customer may owe. Then obtain appropriate customer authorization for the disclosed payment structure. Only then run the planned supplier commitments. In regulated payment environments, payment capture, strong customer authentication, token handling, and merchant-of-record obligations must follow the actual payment arrangement.

Do not call everything “booking” in the workflow. Distinguish quote, hold, commit request, supplier acceptance, issuance, and payment capture. A supplier booking may have its own payment step; your platform's card authorization may be separate. The orchestrator must know which event creates contractual or financial exposure. If a payment operation fails after an inventory commitment, recovery cannot be modeled as if nothing happened.

Apply sequencing rules visibly

Prioritize reversible prerequisites when possible: obtain eligible holds, validate scarce components, and then commit items whose cancellation costs make them dangerous to acquire early. Some independent lines can be processed concurrently once shared prerequisites are met, but parallelism must not bypass the customer's all-essential rule. If two confirmations race with a failure, the recovery plan must handle both even if one response arrives later.

The following matrix is illustrative; each connector must validate what its particular supplier and rate can actually do before production use.

Illustrative checkout planning matrix for four independent product lines; actions are conditional on supplier capability and selected terms.
Product Pre-commit check Possible commitment Failure response
Flight Revalidate offer, traveler details and fare rules Create order or complete required payment and issuance steps Inspect actual status; assess permitted void, change or cancellation
Hotel Verify rate, occupancy, policies and any eligible hold Resume valid hold or create booking Release uncommitted hold; evaluate confirmed-room policy
Car Check pickup, driver terms, deposit and price Create supplier-specific reservation Cancel where allowed or present replacement vehicle
Activity Check session, participant rules and capacity Reserve or issue voucher under supplier rules Offer another session or refund if eligible
Two travel colleagues sort four colored itinerary sleeves across a table

5. Design partial fulfillment as a first-class state

A checkout should not collapse into a single success or failure boolean. Each line needs its own state, such as selected, validating, held, committing, confirmed, failed, cancellation pending, cancelled, or outcome unknown. The checkout aggregate can then report confirmed in full, partially confirmed, pending resolution, fully unsuccessful, or cancelled. Show the customer the aggregate alongside line-level facts rather than hiding a successful flight inside a generic error banner.

Handle unknown outcomes before attempting retries

Timeouts are particularly dangerous. If the connection drops after submitting a booking request, the supplier may already have accepted it. Before retrying, query the supplier by its request reference, itinerary ID, client reference, or other documented retrieval path. Use supplier-supported idempotency keys where available, with stable keys for the same intended operation. Never assume every API accepts an idempotency header or deduplicates requests identically.

Compensating actions are new operations

When one component fails after another has committed, recovery is a sequence of authorized supplier operations, not a database rollback. First stop further optional commits. Next release uncommitted holds, identify confirmed items exposed to a cancellation charge, calculate recoverable amounts, and apply the customer-approved policy. Record every attempt, result, penalty, and resulting payment obligation. If cancellation cannot be completed safely, retain the item and escalate.

Flight cancellation illustrates why a generic “undo” button is misleading. Duffel's Order Cancellations API schema describes creating a pending cancellation to inspect prospective refund information, then confirming that cancellation. Refund amount may be zero or unknown, and the refund destination and subsequent customer refund handling require attention. This documents one flight workflow, not an assurance that every flight is refundable or that another supplier offers an equivalent operation.

A hotel hold release, cancellation of an already confirmed room, car reservation cancellation, and activity refund should be separate connector actions with different business rules. Where a confirmed booking is non-refundable, the truthful recovery result may be “retained with cost exposure.” A platform can offer alternatives or support intervention, but it must not show “rolled back successfully” until the relevant supplier and payment outcomes are verified.

6. Worked example: a four-product city break

Consider a hypothetical three-night trip to Lisbon for one adult. The customer chooses a round-trip flight for €280, a hotel for €420, a rental car for €150, and a guided activity for €70. The illustrated cart total is €920 before any new fees or repricing. These numbers are invented for architecture testing, not live offers, real inventory, or supplier quotes. No specific vendor is assumed to support all four workflows.

Scope the approval and the deadlines

At 10:00 UTC, the checkout creates plan CP-1048. The traveler marks the flight and hotel essential, the car replaceable, and the activity optional. They approve retaining confirmed essentials if an optional product fails, but require a fresh decision if either essential cannot be secured. For the illustration, the flight quote expires at 10:12, an eligible hotel hold expires at 10:10, the car quote at 10:15, and the activity availability check must be repeated at commitment.

Those deadlines are intentionally different. The system obtains an eligible hotel hold and stores its expiry, then revalidates the flight and initiates the permitted booking flow while the hotel hold remains usable. It does not claim that the hotel room is paid or confirmed yet. A payment authorization covers the platform-collected amount, if that matches the hypothetical merchant setup; the plan separately records any amounts payable directly to suppliers.

Execute the plan and record a partial result

At 10:03, the flight becomes confirmed after the required supplier steps. At 10:04, the hotel hold is resumed and the full hotel reservation is verified. At 10:05, the car booking confirms. At 10:06, the activity request returns unavailable because the chosen session has sold out. Since the activity was approved as optional, the orchestrator stops that line without trying to reverse the flight, hotel, or car.

The final summary lists three confirmed components totaling €850 and one unbooked €70 activity. It shows each actual supplier confirmation reference, distinguishes paid amounts from amounts due later, and offers a different activity session through a new quote. The difference between €920 and €850 is not automatically a €70 refund: whether the customer was charged for the activity depends on the payment flow. If €70 was already captured for that failed line, a separate refund obligation must be tracked to completion.

Now change one assumption: suppose the hotel hold expires before it can be resumed, and the hotel cannot be confirmed. Because the hotel is essential, the system stops the car and activity commitments, verifies the flight status, and asks for an approved alternative or initiates the flight's allowed cancellation assessment. It must not claim the flight can be reversed without cost. The unresolved plan remains visible until the traveler or an authorized operator selects the next permitted action.

7. Make money movement consistent with booking state

Keep three ledgers conceptually distinct: what the customer approved, what suppliers committed, and what money moved. The checkout amount is not necessarily equal to settled customer charges at every moment. For example, a flight may be paid through a supplier, a hotel may be held without charge, and a rental car may require payment at pickup. Build a component-level payment view rather than one opaque “paid” property.

Choose an explicit authorization and capture policy

Where the business controls card collection, an authorization before external commitments may reduce collection risk, but its validity, supported adjustments, and timing depend on the payment service and card rules. Capture only according to the disclosed model and applicable obligations. If customers pay individual suppliers directly, a central platform should not represent those supplier payments as its own completed captures.

When commitments fail, decide whether to release unused authorization, refund captured funds, or leave valid charges attached to retained bookings. These are distinct actions with different customer-visible timing. Show the cancellation fee and refund eligibility derived from the selected product's actual terms; do not calculate a refund solely by subtracting the failed item's display price from the original cart total.

Reconcile asynchronously, with human ownership

Payment callbacks, supplier notifications, refund processing, and issuance confirmations may arrive out of order. Correlate them by checkout ID, line ID, supplier reference, and payment transaction reference. Reconciliation should detect charged-without-confirmation, confirmed-without-expected-payment, duplicate-looking supplier orders, and promised refunds with no completed payment record. Each exception needs an owner, escalation age, and customer communication status.

8. Implement resilient connectors and observable state transitions

Use a connector interface that exposes only verified supplier capabilities: search, quote or reprice, hold, retrieve, commit, cancel, and refund information where supported. Capability flags should be conditional on product, rate, market, account access, and integration version. A connector must be able to report “not supported” without being treated as a system failure. This makes independent workflows composable without implying universal API interoperability.

Persist operations before sending requests

A reliable pattern is to create an operation record in the same transaction that moves the line into a pending state, then dispatch work from an outbox. After receiving the supplier result, write the original reference, normalized outcome, and next eligible action. If the worker crashes, the recovery process checks the operation history and supplier state before deciding whether sending another request is safe.

Model transitions with explicit guards: a held hotel can be resumed only while its hold remains eligible; a confirmed flight cannot be marked cancelled simply because a cancellation quote was requested. Avoid mutable “last response wins” logic. If two workers report contradictory outcomes, put the line in a reconciliation state, retain both pieces of evidence, and require a deterministic resolution rule.

Design for timeouts, limits, and operator visibility

Set connector-specific deadlines, rate-limit handling, bounded retries with jitter for transient reads, and circuit breakers for sustained supplier failure. Retry writes only when the supplier's idempotency guarantees or verified status make that safe. Monitor confirmation latency, quote expiry before commit, unknown outcomes, duplicate prevention, partial-checkout frequency, compensation success, and unresolved financial differences.

9. Present an understandable checkout to the traveler

The user interface should explain that multiple providers may confirm separately before the customer makes an irreversible choice. Present a per-item price, supplier-specific cancellation conditions, whether immediate payment is required, and the consequences of failure. Ask for meaningful consent to the partial-booking rule; a vague checkbox saying “terms apply” does not explain why a confirmed flight might remain charged after a hotel failure.

Use precise labels at every step

“Checking availability,” “temporarily held,” “awaiting confirmation,” “confirmed,” and “could not book” convey materially different situations. Display a confirmation number only after the appropriate supplier record exists. If the system is verifying a timed-out request, avoid telling customers to book again immediately. Give them a stable trip reference and explain which items are safe to use, which are unresolved, and what happens next.

For an intentional partial success, show retained bookings and missing products in separate groups, then provide an action such as selecting a replacement car or leaving an optional tour unbooked. If an essential item fails, do not bury the problem behind a green success message. Present alternatives and any known costs of keeping or cancelling earlier commitments before requesting a decision.

Keep support aligned with the same evidence

Customer service should read from the booking journal instead of a reconstructed cart. A support agent needs the latest supplier-confirmed state, issue history, payment exposure, consent record, and safe recovery options. Prevent agents from manually overriding a line to “cancelled” without an external confirmation or a clearly labeled administrative exception. Follow-up emails and vouchers should mirror the current state, not just the first checkout response.

10. Test failure paths before production launch

Acceptance testing should cover hold expiry before resume, price change before commit, sold-out activity, failed payment authentication, late supplier success after client timeout, duplicated webhook delivery, partial refund, non-refundable fare, and a cancellation request that produces only a quote. Include scenarios where a user refreshes the page, clicks pay twice, or returns after a long absence. Assert both supplier-side outcomes and customer-facing messages.

Use controlled sandbox responses where available, but do not assume a supplier sandbox reproduces every production failure or commercial rule. For each scenario, inspect the durable plan, line states, journal ordering, supplier retrieval evidence, payments, notifications, and staff queue. Rehearse manual intervention for truly indeterminate results and document who may approve a cancellation with a fee.

Before release, require evidence that no confirmed booking is silently discarded, no failed line is falsely marked refunded, and no unknown write is blindly retried. Confirm every supplier connector has documented capability boundaries and that quote expiry is enforced server-side. Measure how often the service reaches a partial state and how quickly unresolved outcomes are reconciled, then use those findings to improve supplier selection and workflow order.

Successful multi-product travel checkout is not defined by making every reservation look atomic. It is defined by trustworthy commitments, understandable choices, and a traceable recovery path when the trip cannot be completed exactly as requested. Designing independent supplier workflows around one carefully governed booking plan makes partial fulfillment manageable without promising capabilities the underlying APIs do not provide.