Design a unified travel API around what the seller can confirm
A unified travel API gives a booking platform one contract for working with several products. Its most valuable feature can be what happens after a person selects an offer: when a payment is authorised, when a room or seat is confirmed, which outcome remains uncertain, and who acts next. An API can present flights, stays and transfers through consistent request and response patterns while preserving the meanings of their confirmations. A common application reference does not replace the evidence each supplier returns for a specific booking.
Begin by deciding who makes the promise to the customer for each product. A reseller might accept the hotel reservation in its own checkout, refer a traveller to an airline, and sell a transfer as a request handled by a local operator. The application can group the three in one trip. Purchases and requests still belong to the appropriate seller, service team and financial record. Attach the same trip reference to the authorised supplier transactions so permitted staff can recover the evidence without confusing a referral with a sale.
Draw a boundary between one endpoint that accepts a request and the separate work that the business needs to complete after receiving it. A browser might need an immediate acknowledgement that the request was received. It may then watch the state under a stable reference instead of waiting with a blank screen for all suppliers. Write a visible outcome at each stage. Confirmed hotels, pending flight issuance and an optional transfer quote should remain independent until the product rules say they can be treated as a package commitment.
Keep the shared contract narrow
Use common fields for the bits the consumer actually needs to interpret in the same way. Candidate examples include the intended seller, trip reference, operation reference, update time and a customer-safe stage. Keep product fields such as ticket or voucher information in typed sections. A newly accepted hotel reservation may have a supplier confirmation number without a voucher yet. A flight can have an airline order record while ticket issuance still has a distinct status. Explain the supplier evidence behind a common state in the contract.
Every attempt should record the selected offer version, approved party and relevant currency. When a partner's offer has an expiry, preserve the original deadline instead of inventing an identical hold window for every product. Decide when the application is required to request a refreshed price. Verify how to repeat a selection, relink an existing order or abandon an aged quote against authorised documentation and staged fixtures. Some cases need people to investigate before the customer receives a fresh choice.
Safety comes from identifying the change boundaries in the partner contract. A customer requesting a corrected arrival date may need a hotel amendment, flight itinerary change and new transport times. Record their initial request separately and give each affected product a plan owned by someone who can fulfil it. A new confirmation condition may need the customer's approval. Keep the original reference and treatment of the accepted terms clear until the approved workflow decides what replaces them.
Rehearse one multi-product order that fails halfway through
Use a fictitious Hart Harbour trip for two travellers. They select a two-night hotel, a return flight and a local shuttle. The hotel comes from an approved booking connection. The flight and shuttle are different documented commitments held by different operators. The customer is shown what the seller will do if a required component cannot be confirmed. Each transaction below is a test fixture, with an independent evidence record and price basis. Let reservations, payments and support each explain their stage using the same trip number.
| Stage | Fixture outcome | Evidence required |
|---|---|---|
| Selection | Three selected offers | Offer versions, product owners, accepted conditions and check times |
| Hotel | Supplier confirms reservation at check | Reservation reference and expected service confirmation |
| Flight | Connection closes before a final result | Originating request and correct provider retrieval path |
| Shuttle | Optional desk request waiting to be accepted | Request reference, agreed response window and next contact |
| Payment | Authorisation is recorded separately | Payment reference and confirmed permitted amount, with unresolved actions |
| Trip outcome | At least one mandatory decision pending | Accurate trip summary and follow-up for the uncertain part |
Run the outline with an independent operator replaying the provider result. Confirm the hotel and check that the browser can show that item as confirmed without announcing that the full trip is ready. Then simulate a timeout during a flight booking call; the traveller sees an action under review, with the expected contact route. Verify that a receipt and ticket notice do not appear until the evidence required by that sale is available. The operator should know which supplier to contact without guessing from the high-level label.
The integration distinguishes a pre-book check from a write. Expedia Group documents a lodging workflow that includes shopping and a check of the selected rate before booking. That structure is one practical illustration of how evidence from a price check differs from evidence after a booking request. Review the exact partner contract for your own selected rate, expected transaction IDs, retrieval and conditions. Use one supported fixture for the approved environment before you enable sales. Expedia Group Rapid Lodging API overview
Recover one uncertain result using the original evidence
The first employee receives the unresolved action and compares the provider reference with the approved route for checking that transaction. The supplier may return order evidence or a definite rejection. Follow the implemented conditions to decide whether staff can continue or need support. A transport timeout, empty search and sold-out offer are all separate observations and should generate distinct results. Do not use a generic response to infer a charge or an unsuccessful sale from incomplete information.
Run a second fixture in which an agent tries the same browser action after returning from lunch. The application should present the original operation and its current status once the actor is verified. If a true new request is needed, give it its own identity and authorise it against the current selected scope. Store the distinction between recovering the earlier attempt and making a fresh purchase. Use reference identifiers and timestamps that a support owner can compare without viewing unnecessary traveller information.

Match payment evidence to product-level obligations
Choose a safe financial workflow for the actual commercial model, with the intended processor and finance staff. Decide what evidence allows an authorisation, collection, release or refund for each product. Attach payment references to the accepted transaction version. Payment success alone cannot establish that the airline issued a ticket or the hotel accepted a room. Similarly a supplier confirmation can require a later financial reconciliation. Put those outcomes beside each other in an authorised view rather than overwriting one status with another.
Try a test with two payment records. Suppose a test traveller has agreed to a hotel priced at 240 units and a flight priced at 190 units. The supplier's existing hotel evidence remains recognisable when the flight reply is lost. Finance explains whether the approved process retains or releases any authorisation and how that result will be reported. A difference between 240 and 430 can be legitimate when the workflow preserves exact scope. Avoid treating these numbers as sample prices for travel.
Plan what happens if a traveller asks to close the unresolved flight and retain the hotel. Confirm the speaker's authority and show the booking and charges currently known. Quote the applicable terms before accepting a new decision. Ask whether the transfer operation is affected by a flight date or no-show rule and route that question to the team that owns it. Update the trip view once the authorised outcomes are recorded. Preserve prior accepted evidence when writing the revised display.
Give errors an operational meaning
A consistent error document can describe a request issue and give a machine-readable type for use by consumers. RFC 9457 defines a format for problem details in HTTP APIs; use an appropriate problem type for issues that are actually HTTP problems on the service. An unresolved partner booking is often better represented as retrievable order state for an accepted request. Store internal observations separately and return only customer-safe information under the role's permissions. RFC 9457 on problem details
Validate the difference with an example. A missing property or date can be an invalid request and return actionable field guidance. An offer that changes requires presenting revised business conditions, potentially with a choice for the traveller. A paid operation whose partner has an unclear result needs its original record and appropriate follow-up. Build the three fixtures into a consumer test set. Compare how the storefront, desk and integration consumer understand those actions when they each read the shared information.
Define a customer-facing boundary for internal status text. Some providers return operational statements that are meaningful only to the integrator or can include data inappropriate for the traveller. Build a clear translation from authorised outcomes to what the customer can see and do. Verify which role can open the last observed provider message. Keep sensitive fields protected and ensure support logs and reports contain only the appropriate level of summary for their audience.
Represent a trip change as a set of actions with separate results
Assume the confirmed Hart Harbour flight changes to a different departure date in the fixture. The application stores the revised schedule observed from the authorised source and finds the related shuttle. Support determines whether the hotel stay is also affected by the new arrival time. Assign the approved changes to the correct product owners and capture decisions about the original accepted terms. The customer should know which new details are confirmed and when an employee will contact them about an unresolved change.
Update a trip after an operator legitimately changes only one item. Have the hotel team correct a reservation name under test rules without changing the transfer party or the flight order. Check the integration can publish an update with the intended component and version only. During the review confirm that the traveller receives the appropriate status and any updated evidence permitted for the change. The supplier record, customer display and timeline should agree about which item was changed.
Another common case is a changed product with several related requests. A traveller might request dropping the shuttle and correcting an email for all services during one contact. Create case activities for the authorised actors and record who can update each attached reference. The change to contact information can be complete while a refund request still awaits action. Give a human support owner a reliable view of both, with the current scope and handoff date where it applies.
Test recovery when products send updates out of order
Inject a changed hotel message after a later cancellation is already confirmed. The accepted cancellation remains visible while support sees a history item and decides whether the late message needs review under the contract. Repeat with a shuttle message whose reference maps to a different existing product. The adapter should not find it by party count and date alone. Confirm how foreign references and local IDs are mapped and where staff look for the unmapped event. Use supplier contract guarantees in the test rather than imposing made-up sequencing rules.
Test a duplicate provider status legitimately reported through two approved channels. Attach each source observation to its existing component as appropriate and avoid reissuing a customer confirmation unnecessarily. Reconcile what time each observation reflects and how older notices are marked. If a provider tag cannot establish which version is authoritative, have the owning role obtain its documented record. Include one fixture in which a staff-reported note needs review rather than automatic application.
Choose a launch stage that your operators can actually support
Decide which products can commit independently and which require groups of commitments. Early delivery may allow flight, hotel and transfer orders to live in one trip while they are purchased under distinct commercial terms with distinct evidence. A later coordinated package adds policy about substitutions, failures and accepted totals. Estimate implementation and staff operations for that later promise separately. Before every release show the user the actual selling relationship, what committing will do and how to see the result.
Assign a supported customer and operator lookup path to each partner state. When the browser closes, someone should still recover the approved outcome with the right verification. In a staged exercise the permitted desk employee starts from a shared trip number and recovers three component references. They identify the flight result, message the correct support path and do not expose payment details to an unrelated supplier. Keep one written policy for reports that arrive from a different channel.
Plan a maintenance window with transactions already underway. Stop new approved purchases according to the operating plan and ensure ongoing records remain accessible and serviceable. Verify that queued updates after the window still associate with the original operations rather than reopening a closed decision. Test a snapshot restore in a permitted environment with known fixture values and compare the outcome with each provider record. Record who can reopen the booking path after recovery.
Measure what matters in the handoff
Capture how long uncertain outcomes remain open per product and how many need a person to resolve them. Report how often financial adjustments disagree with fulfilment evidence and explain which role investigates each mismatch. Share counts and business times under approved access so a commercial team can decide which partner flow is ready to scale. Keep individual traveller details and unresolved support notes outside routine executive reporting.
Run the Hart Harbour exercise again with an operator who did not build the software. Have them follow a card, compare an event and communicate the current status. Open an earlier customer message and locate the latest accepted result. If they cannot find the required record or contact, strengthen that part of the contract or training before adding another product. Conventional interface consistency matters when it also preserves enough distinctions for people to operate the actual sale.
Review what each team would present if a provider stops responding
Pick one short period where search is still available for the affected flight path but the booking action cannot return a usable result. Ask the seller to determine whether the planned terms allow browsing, requests only or a complete stop for this connection. The traveller should see an accurate expectation while rooms and transfers continue through their own permitted paths. A different region might use another authorised agreement for the same airline; use a targeted control keyed to the actual affected booking relationship rather than disabling unrelated branches.
Ask reservations to identify unresolved operations from before the disruption. An employee should be able to submit an approved evidence lookup and record which person now needs to act. The incident owner should see separate counts for reported transport failures, records with unknown results and confirmed sales. Choose an operations metric for business follow-up and ask finance what it needs to reconcile after the provider resumes. Support can then set a useful review rhythm without promising a precise resolution time it does not control.
Review the release fixture with both technical and commercial owners
Have an implementer and a commercial owner sign off the expected outcome for each test and record which cases still require supervised approval in the first version. Include phrases the customer uses to enquire about each status so support knows the right explanation. Test recovery within the date window agreed for the trip. The acceptance test is stronger if a reviewer begins with the customer reference and can trace all permissions, ownership and current evidence in a reasonable sequence.
Test what appears when a traveller opens a trip under an eligible alternate currency display. The product's financial and supplier records retain the agreed amount and currency; any indicative display has a clearly defined basis. Ask support to explain a difference between an illustrative total and the actual charged amounts from those records. When a correction requires new acceptance, preserve the original decision and make the updated version explicit. That exercise verifies a shared contract without pretending the business relationships themselves are interchangeable.
Keep the application reliable when the selected scope changes
Simulate an application that needs to accept one night less before a later service can be booked. The traveller's current selection and original purchase attempt should remain distinguishable. Verify that a delayed browser submits an old offer reference and sees a prompt to review the acknowledged scope rather than a new charge. The current proposal can omit a component that is no longer desired, while the original committed component still belongs to the specific confirmation and payment history. Support should be able to describe exactly what was accepted and what changed.
Give product and operations a deliberate exception involving a booking that exists outside the website's visible trip. A caller arranged a replacement shuttle with an authorised supplier desk, and the integration receives a link for it later. Decide whether the operator can associate that evidence with the existing trip and record what information proves the relationship. Another customer on the same dates should not see it. The shared API needs to protect an operator-owned association while allowing support to recover records whose routes crossed outside the website.
Test a partial customer reply arriving after the trip summary has changed. The traveller approves a new pickup time but leaves the offered flight change undecided. Record proof of the selected service and exact proposal rather than interpreting a broad reply as acceptance of every remaining option. Give their agent an accurate view of unresolved decisions and contact timing while keeping other bookings serviceable. A stable trip reference reduces repeated questions; component evidence determines which updates staff can actually perform under the approved policy.
Finally document the path for an old client API version. Provide fixtures for which shared fields it still understands and what happens when a component receives a new state. Define when a consumer must update before it can present a product promise. Verify that an unrecognised property does not make a confirmed service look cancelled or final. Include a clear owner for communication about versions and test support lookup with a reference returned by the older client before closing the rollout exercise.
