● Travel Never Stops. Neither Do We. 365 Days a Year.
Connected thinking. Practical technology.

Stuba integration

Integrate Stuba hotel inventory into an approved travel booking platform with reliable property mapping, accurate room comparisons, booking revalidation, confirmation tracking and controlled cancellation workflows.

Contemporary resort hotel with landscaped pool
Illustrative hotel scene

Stuba Integration: Connecting Hotel Distribution With Reliable Booking Operations

Stuba integration enables eligible travel businesses to connect accommodation search, pricing, reservation and post-booking functions with their own technology platforms, subject to Stuba's commercial agreements, technical approval and account permissions. Stuba is an established accommodation distribution business serving the travel trade. Its technology supports hotel discovery, room availability, booking confirmation and reservation servicing through its own booking environment and documented integration interfaces. For a travel agency, tour operator or accommodation distributor, the value of an integration depends on more than receiving hotel prices. A successful implementation must preserve the relationship between the property selected, its actual room configuration, the applicable rate, the traveller's eligibility and the conditions accepted before confirmation.

Hotel distribution introduces decisions that are easy to overlook. A room advertised with breakfast is not necessarily comparable with another room advertised without meals. Two rates at the same property may carry different cancellation penalties. A booking may be confirmed by the supplier even when the travel website experiences a timeout. These details determine whether customers receive accurate information and whether the operations team can resolve problems without creating additional reservations or financial exposure.

TravelTech365 approaches Stuba integration as a defined supplier connection within a broader travel technology architecture. The work involves establishing the approved access model, selecting the correct interface, interpreting supplier responses, integrating booking operations and testing the exceptions that occur between search and completed travel. The objective is not simply to display Stuba inventory. It is to ensure that each displayed offer can be traced through revalidation, customer acceptance, supplier confirmation and subsequent servicing.

Understanding Stuba and Its Hotel Distribution Product

Stuba as an accommodation supplier

Stuba provides accommodation distribution services for travel professionals. Its offering includes hotel inventory, commercial account arrangements, online booking services and technical connectivity. The company's official technology information describes its hotel distribution API as an option for connecting accommodation inventory with travel websites, applications and other eligible technology systems. Stuba should therefore be assessed as a hotel distribution provider rather than confused with a hotel property management system, a public accommodation marketplace or a universal channel manager.

A Stuba integration generally concerns the purchasing and distribution of available accommodation through an authorized account. It does not automatically grant control over hotel inventory, direct contracting rights, unrestricted access to property systems or the ability to alter supplier conditions. The range of properties, available markets, commercial rates and booking permissions depends on the agreement attached to the travel business.

What the official developer portal provides

The Stuba Developer Portal publishes documentation for its hotel booking interfaces, content services, integration registration and technical workflows. The portal identifies three relevant integration choices: HAPI using JSON, the Content API and XML API version 1.28. These interfaces serve related but different purposes. Content services support property and location information. Booking interfaces support live availability, quote preparation, reservation confirmation and documented reservation operations. An implementation must distinguish these responsibilities. Downloading a hotel catalogue does not establish that the same property has rooms available for a specific date. Receiving an available rate does not mean that the reservation has already been accepted.

The official documentation also explains the provider's certification process and account-specific access arrangements. These materials establish the technical possibilities documented by Stuba, but they do not independently confirm that any particular travel company has been approved for production bookings.

Public documentation is not production authorization

Stuba's integration registration page states that an existing Stuba account is required before proceeding with API registration. A business should first establish its commercial relationship with Stuba and confirm the permitted distribution model. Access to documentation, successful registration, test credentials and production authorization are different milestones. A provider may offer documentation publicly while requiring additional approval for live connectivity. Likewise, access to a booking website does not necessarily provide permission to automate transactions through an API. Before development begins, the account owner should obtain written confirmation of the approved interfaces, intended distribution channels, account currency, commercial arrangements and production activation requirements.

This distinction protects both the platform owner and its implementation team from building a workflow around capabilities that have not been enabled.

Choosing the Correct Stuba Integration Interface

Stuba publishes both JSON and XML booking documentation, alongside separate content services. Selecting between them should be a deliberate technical decision based on the interface authorized for the account. The official HAPI documentation describes JSON requests authenticated using an API key and an approved IP address. The XML version 1.28 documentation describes an XML or SOAP interface using agency credentials, a configured currency and an interface version. The Content API supports the retrieval of hotel reference information for local storage and display. These interfaces should not be treated as interchangeable merely because they address similar booking functions.

Interface selection and integration responsibilities

Interface selection and integration responsibilities
Stuba interfaceDocumented purposeImplementation consideration
HAPI (JSON)Hotel and region search, booking preparation, confirmation, booking retrieval, hotel confirmation number retrieval and cancellationConfirm approved credentials, IP restrictions, production URL and supported operations
XML API v1.28Availability search, booking preparation and confirmation, booking retrieval and cancellation through the documented XML interfaceMaintain correct agency credentials, currency, request format and supported version
Content APICountries, nationalities, search regions, hotel lists and detailed property contentBuild controlled content synchronization and maintain stable property identifiers
Stuba web booking environmentBooking management, voucher access and documented servicing assistanceEstablish which activities remain manual or require support-team involvement

The table summarizes documented interface roles, not a guarantee that every operation is available to every account.

Why the interface choice matters

An existing travel platform may already use XML-based hotel supplier adapters. Another platform may prefer JSON services because its integration gateway, data validation and monitoring systems are designed around that format. Neither circumstance establishes that one interface is commercially available to the customer. The implementation should be based on the actual credentials and specification supplied or approved by Stuba. A platform should avoid combining request structures from different interface generations. The name of a business operation may remain similar while its request fields, authentication rules, response structures or error handling differ.

For example, HAPI documents separate BookingPrepare and BookingConfirm operations. XML version 1.28 documents booking preparation and confirmation through its BookingCreate workflow. The application can expose a consistent internal booking model while maintaining interface-specific adapters underneath. This design makes a future migration easier without pretending that supplier versions can be changed without retesting.

Establishing Stuba Account Access and Integration Readiness

Commercial account requirements

The first integration dependency is a valid Stuba commercial account with a clear distribution purpose. The travel business should determine whether it intends to sell accommodation to retail travellers, distribute rooms through registered agents, support corporate travel or use the supplier within a larger itinerary. These business models may involve different commercial and distribution permissions. An implementation team should not infer authorization for one channel from access granted for another. Before accepting development scope, review the contracting entity, billing arrangements, account currency, operating markets and expected booking volumes.

It is equally important to identify who is responsible for supplier communication. Technical developers can investigate request failures, but commercial matters such as settlement, supplier permissions and disputed charges normally require an authorized account contact.

Test access and production credentials

The official HAPI getting-started guide identifies a test environment and explains that production access details are supplied following the applicable certification process. Its authentication model includes an API key and IP-address authorization. The XML documentation describes its own credential structure and advises integrators to use the live URL supplied with their approved account details. The practical requirement is to separate test and production configurations completely. Test bookings should never be presented as actual customer reservations. Production credentials should never be embedded in browser-side code, mobile application packages or publicly accessible configuration files. Where different server environments make outbound requests, the project must establish which IP addresses Stuba expects to authorize.

Cloud deployments also need a plan for outbound IP changes during infrastructure migration, disaster recovery or scaling.

Affiliate access versus transactional connectivity

An affiliate-style journey, a supplier-hosted booking experience and a transactional API integration are different commercial and technical arrangements. A referral or redirect model may send the traveller to another website to finish a booking. A transactional connection allows the approved platform to perform documented booking operations using supplier credentials. Stuba's published booking API supports transactional workflows, but that does not establish a universal affiliate programme or imply that every Stuba account includes API booking rights. If a business proposes a redirect, white-label or affiliate arrangement, the access method must be confirmed directly with Stuba.

Any implementation should preserve the distinction between reservations created inside the customer's platform and reservations completed elsewhere.

Building the Property Content Foundation

Property content is not live availability

A hotel integration begins with reference data. The Stuba Content API documentation identifies countries, search regions, hotel details and guest nationalities as essential content categories. The platform uses this information to help travellers discover destinations, recognize properties and understand basic accommodation characteristics. Hotel information may include property names, addresses, location identifiers, descriptions, images, ratings and other descriptive fields where provided. These attributes are useful for constructing search results, property detail pages and internal mapping records. However, they should not be mistaken for a live rate catalogue.

A property can appear in the available hotel content while having no bookable rooms for the dates requested. It may also be temporarily excluded from a particular market or unavailable for the supplied traveller nationality.

Creating a local property catalogue

Stuba's hotel details documentation describes the retrieval of detailed hotel records by their provider identifiers. It also advises that detailed content should be stored locally rather than requested repeatedly during the traveller's booking journey. This supports a straightforward architecture: retrieve approved static content, validate its structure, store the provider identifiers and use the local catalogue when presenting live search results. Every imported property should retain its original Stuba hotel identifier. That identifier is more reliable for supplier communication than a display name, which may change following rebranding or content updates. The local system should also record when the content was last synchronized and whether the latest import completed successfully.

An interrupted import must not erase the previously valid catalogue or leave a partially updated set of properties visible without warning.

Keeping property content current

Content synchronization requires a schedule appropriate to the provider's access rules and the operating needs of the platform. A system may need to detect new hotels, changed addresses, updated descriptions and withdrawn properties. Changes should be applied without disrupting existing booking records. For example, if a hotel changes its commercial name after a reservation was made, the historical booking must continue to identify the originally confirmed property and retain the supplier identifier used during booking. Images and descriptions should be handled according to the permissions attached to the supplied content. An approved hotel description does not automatically grant permission to reuse every associated image in unrelated marketing material.

Content maintenance should therefore combine technical synchronization with the licensing and display terms supplied by Stuba.

Property Mapping Across Stuba and Other Hotel Suppliers

Many online travel agencies connect more than one hotel distributor. The same physical hotel may appear under separate provider identifiers, slightly different names and different address formats. Property mapping allows the platform to recognize these records as potentially describing the same accommodation. For Stuba, the supplier's property identifier must remain intact even when the platform creates its own canonical hotel record.

Matching the correct property

A mapping service should compare property names, addresses, geographical coordinates and other available identifying attributes. It should also account for commercial name changes, hotels with similarly named buildings and different properties operating within one complex. A high-confidence property match can support a shared display page. A doubtful match should enter a review process rather than be merged automatically. Consider two hotels with similar names situated on opposite sides of an airport. A text-only matching rule could combine them, even though their shuttle arrangements, locations and booking inventories are different. The resulting error would be much more serious than a duplicated search result.

The platform should preserve evidence supporting each mapping decision and allow authorized staff to correct it.

Mapping without changing supplier ownership

Canonical mapping must not replace Stuba's own hotel identifier when sending availability or booking requests. Each rate must retain its supplier origin, property identifier and applicable quote reference. If an offer is retrieved from Stuba, the booking flow must continue through the authorized Stuba interface using the correct supplier references. A room offered by another distributor cannot be substituted simply because it appears under the same canonical property. Mapping supports discovery and comparison; it does not make separate supplier contracts interchangeable.

Hotel guest room with seating and a work desk
Illustrative hotel room — compare the actual accommodation and its booking conditions.

Designing Property Search and Availability Retrieval

Region-based and hotel-based discovery

The official HAPI search documentation supports search requests based on regions and selected hotel identifiers. The application must translate the traveller's chosen destination into a valid Stuba search target. This is important where a familiar place name has multiple commercial or geographical interpretations. An airport, city centre, coastal area and wider metropolitan region may require different search boundaries. The platform should use Stuba's available search-region reference data rather than assume its own location identifiers can be sent directly. For property-specific searches, previously mapped Stuba hotel identifiers can help restrict availability requests to the intended hotels.

Search criteria that affect the returned offers

A search is not adequately defined by destination and dates alone. The request must preserve the arrival date, length of stay, number of rooms, adults, children and relevant child ages. Traveller nationality is also significant. Stuba's developer FAQ explains that nationality can influence pricing, eligibility and availability. The application should therefore obtain the required information accurately rather than silently substitute a market-wide default. A search for one room containing two adults is not equivalent to a search for two rooms containing one adult each. Similarly, an offer returned for adults only cannot safely be reused after a child is added to the reservation.

The application should invalidate or refresh results when a material search condition changes.

Search results and quote identity

The Stuba availability response associates bookable alternatives with quote references. A quote represents a specific supplier offer within the search conditions, not a permanent inventory identifier. The platform should keep each quote connected to its exact property, room arrangement, board basis, search criteria and supplier. A displayed price is useful only while the associated quote remains relevant and eligible for booking. Stuba documents a limited quote validity period and requires a preparation step before confirmation. Consequently, an old search result should not be treated as a standing promise of availability. The customer interface should support refreshing the offer and clearly communicate when the selected option is no longer available.

Occupancy Validation and Guest Eligibility

Preserve occupancy room by room

Occupancy accuracy is one of the most important requirements in a Stuba implementation. A single reservation can involve several rooms, and each room may have a different allocation of adults and children. The internal booking structure should preserve these allocations separately. For instance, a family may request one room for two adults and a child, alongside another room for one adult. The system must not combine all occupants into a single room or redistribute them automatically during confirmation. This rule is especially important when a customer edits the booking after selecting a rate.

The preparation and confirmation requests must remain consistent with the offer originally obtained, subject to the supplier's documented validation requirements.

Child ages and booking restrictions

Child ages can affect whether a room is available, whether an extra bed is required and how a property calculates its price. The interface should collect the ages required by the approved Stuba specification rather than rely on a generic child-count field. Age validation must use the limits documented for the selected API version. Any discrepancy between the search occupancy and the guest information submitted for booking should stop confirmation until corrected. The platform should also distinguish occupancy restrictions imposed by the interface from individual hotel conditions. A supplier's maximum request size does not prove that every hotel will accept that room configuration.

Nationality and residency considerations

Stuba documentation specifically identifies nationality as a booking-relevant search input. Residency, local-market eligibility and other restrictions may appear in individual rate conditions or hotel messages where applicable. The platform should display relevant restrictions supplied with the offer and avoid making unsupported assumptions. Where a required eligibility attribute is missing, the correct response is to request the information before proceeding, not to default silently to an unrelated value.

Room and Rate Normalization for Accurate Comparisons

Why room names cannot be trusted alone

Hotels and their distributors describe rooms using inconsistent terminology. A room presented as a deluxe double may differ from another deluxe double in bed arrangement, view, included meals, occupancy or permitted guest category. Even when two descriptions appear identical, their cancellation conditions may differ. Stuba documentation explains that room and meal descriptions are supplied dynamically rather than through a universal static room catalogue. This makes room normalization a careful interpretation exercise. The platform should retain the original Stuba room and meal descriptions while generating consistent display attributes wherever the source information permits.

Separate room identity from commercial rate identity

A room category describes the accommodation being offered. A rate describes the commercial conditions attached to that accommodation. The same room category may be sold with breakfast, without breakfast, under different cancellation schedules or at different total prices. These combinations should remain distinct unless the comparison system has sufficient evidence that they represent equivalent offers. A normalized offer record should capture the supplier property identifier, room description, meal basis, room occupancy, stay dates, total price, supplier quote and relevant conditions. The booking engine may add customer-facing labels, but it must not discard the original supplier values.

If the source does not confirm a particular bed arrangement, the website should avoid advertising it as guaranteed.

When an offer should not be merged

Two offers should remain separate when their occupancy differs, a meal is included in one but not another, cancellation penalties are materially different or local charges cannot be compared confidently. A cheaper non-refundable offer should not replace a refundable option simply because both refer to the same room type. The same principle applies to additional benefits such as flexible check-in, parking or upgrades. A benefit mentioned in descriptive property content should not automatically be attached to every live rate. Comparison is useful when it makes differences understandable. It becomes misleading when normalization removes conditions that affect the traveller's purchase.

Pricing, Taxes and Locally Payable Amounts

Understanding the price returned by Stuba

Stuba's official integration FAQ explains that the account's commercial setup determines whether returned prices follow net or gross arrangements. It also identifies a configured account currency rather than unrestricted multi-currency searching. The integration must establish exactly what the supplier amount represents before applying any customer markup, commission or conversion. A B2B agency may need to calculate its selling price using internal commercial rules. A B2C platform may present a retail amount with its own service charges. Neither approach changes the underlying supplier price or the settlement obligations agreed with Stuba. The booking record must preserve the original supplier amount separately from the amount collected from the customer.

Taxes and charges outside the prepaid amount

Hotel offers may contain additional notices about charges payable at the property. Examples include local tourism levies, resort fees, deposits or other hotel-specific costs. The integration should capture these amounts and their conditions when supplied. A charge should not be described as included if the hotel expects the traveller to pay it separately on arrival. Similarly, locally payable amounts should not be represented as final guaranteed figures when the supplier identifies them as estimates or subject to hotel collection. An appropriate display distinguishes the amount payable through the booking platform from charges that may be payable directly to the property.

Reconciliation of customer and supplier amounts

Financial records should distinguish supplier booking cost, platform markup, service charges, taxes collected by the platform, locally payable charges and refunds. Currency conversion should also be recorded separately when the customer pays in a currency different from the Stuba account currency. The source conversion rate, calculation time and rounding method should be retained. This is particularly important when a booking is cancelled or adjusted later. A refund cannot be calculated reliably by looking only at the current selling price. The system needs the original financial components and the actual supplier cancellation outcome.

Cancellation Policies as Structured Booking Conditions

Indicative status versus complete policy

Stuba availability responses may identify a rate as refundable, non-refundable or unknown. Those labels are useful for initial comparison, but they are not a substitute for the complete cancellation rules. The official BookingPrepare documentation describes the retrieval of detailed cancellation charges and relevant booking messages during preparation. The integration should therefore obtain the full conditions before the traveller makes a binding decision. An unknown policy must not be interpreted as free cancellation. A refundable classification also does not necessarily mean cancellation is free until check-in. The full fee schedule must determine what is communicated.

Handling cancellation deadlines

Stuba's documentation uses Central European time conventions for cancellation fee dates, including CET or CEST as applicable. The platform should preserve the supplier's original deadline and calculate customer-facing display times carefully. A deadline should not be treated as midnight in the property's local time unless that interpretation is explicitly supported by the returned conditions. Time-zone handling becomes particularly important when customers book from another region. The system should identify the relevant fee schedule, applicable time zone and current position relative to the deadline. Where a fee entry has no start date, Stuba's FAQ explains that the charge applies from booking confirmation.

The same guidance addresses overlapping fee entries. These rules should be implemented using the documented interface-specific interpretation, rather than generic cancellation assumptions.

Presenting policies clearly

Cancellation wording should be understandable without weakening the supplier's conditions. The customer should see whether the reservation is non-refundable, when charges start and how much may be charged for cancellation at different points. Important hotel notes should accompany the policy rather than remain hidden in an administrative response. Where policy information is inconsistent or cannot be interpreted safely, the booking journey should stop or require authorized review. The accepted terms should be stored with the booking so that later changes to a hotel's current policy do not overwrite the historical record.

Booking Preparation and Final Revalidation

Why search availability is not final confirmation

Hotel inventory changes between the moment a customer searches and the moment the reservation is finalized. Another customer may book the last available room. A rate may change, or a property may update the conditions associated with an offer. Stuba's documented booking workflow includes preparation before confirmation to address these changes. The HAPI BookingPrepare operation checks the selected quote and provides updated availability, pricing and booking conditions. The response can indicate that the original quote remains acceptable, that its price has changed or that the selected accommodation is no longer available.

Revalidate before accepting the final purchase

The platform should perform preparation before presenting the final booking decision. For workflows involving payment collection, an additional revalidation near the confirmation stage is important. Stuba's official FAQ recommends preparation at an earlier customer decision point and again before payment and booking confirmation. This approach helps avoid charging customers for offers that can no longer be booked. The application should also manage the period between a successful preparation and the actual confirmation request. Preparation is a necessary validation step, not an unlimited hold on hotel inventory.

Handling changed prices

When the supplier price changes, the platform should calculate the revised customer total and compare it with the amount previously accepted. A material increase requires a new customer decision. An application should not silently submit a higher-value booking merely because its internal commercial rules can calculate the difference. A price decrease also deserves controlled handling, particularly if payment has already been authorized or collected. The customer-facing price, accepted terms and supplier quote must stay aligned. If the selected accommodation becomes unavailable, the original confirmation journey should end. Alternative rates may be presented, but each alternative requires its own relevant validation and acceptance.

Booking Confirmation and Supplier Reservation Status

Creating a reservation

The authorized Stuba booking operation receives the selected quote and the guest details required by its specification. In HAPI, BookingConfirm is the documented final confirmation operation. Its response can include the Stuba booking identifier, hotel booking information, room details, guest data, prices and reservation status. These references should be captured in a durable booking record. The system should distinguish between a prepared quote, a submitted confirmation request and a successfully confirmed reservation. Only a supplier-confirmed outcome should be communicated as a completed Stuba booking.

Preserve booking and room-level references

A platform may use its own order number for customer communication. That reference is useful, but it should not replace the Stuba booking identifier. The application must retain the provider's booking reference and relevant hotel booking or room-level identifiers returned by the interface. These identifiers are essential when retrieving the reservation, investigating support cases and reconciling cancellations. Guest details should be stored using appropriate access restrictions. A confirmation record should also preserve the accepted room descriptions, board basis, stay dates, supplier price, cancellation conditions and material hotel notes.

Avoid premature success messages

A successful payment authorization is not proof that Stuba confirmed the accommodation. Equally, sending a booking request is not evidence that it was accepted. The customer interface should reflect the actual supplier booking status. If a transaction cannot be conclusively verified, the website should display an appropriate pending state and refer the case to a controlled recovery process. This is preferable to issuing an incorrect voucher or encouraging a second booking while the first request may still be processing.

Recovering From Booking Timeouts and Uncertain Outcomes

A timeout does not establish failure

Stuba's HAPI error documentation identifies situations where an operation may have completed even though the response could not be delivered correctly. The documented CompletedButFailedToRespond condition is particularly important because resubmitting the request may create a duplicate booking. The official error-code documentation also distinguishes validation failures, permission problems, price changes, unavailable quotes and other operational conditions. The platform must not treat every unsuccessful HTTP response as proof that the booking failed.

A controlled failure-recovery model

A controlled failure-recovery model
Failure or exceptionCustomer-facing responseRequired operational action
Selected quote becomes unavailableExplain that the original rate cannot be bookedStop the existing confirmation journey and obtain a fresh offer
Price changes during preparationPresent the revised price for approvalRecalculate the customer total and retain the new acceptance
Confirmation request times outShow a pending verification stateRetrieve the booking status or escalate before considering another confirmation
Supplier reports completion without a usable responseAvoid both success and failure assumptionsReconcile supplier records and investigate possible duplicate booking risk
Cancellation response is uncertainState that cancellation is being verifiedQuery the supplier record and prevent uncontrolled repeated cancellation
Cancellation requires partial-room servicingExplain that the request needs reviewRoute the request through the approved Stuba servicing channel
Authentication or permission is rejectedDo not display inventory as bookableCheck credentials, authorized IP addresses and account entitlements

Recovery ownership and escalation

Every uncertain booking should be assigned an internal case reference. The operations team should be able to see the customer order, supplier account, attempted operation, request time, technical response, booking identifiers and current recovery status. Sensitive credentials and personal data must be excluded from unnecessary diagnostic exposure. Retries should be operation-specific. A failed availability search may sometimes be repeated safely under controlled conditions. A booking confirmation request requires much stricter handling because it may already have created a financial commitment. Where Stuba provides a retrieval operation and the booking identifier is known, the application should use that facility to establish the current status.

When no reliable identifier was received, escalation may require the authorized account's booking panel or Stuba support team.

Reception colleague assisting hotel guests
Illustrative reception scene — connect reservations with authorized property operations.

Hotel Confirmation Numbers and Supplier Traceability

Stuba booking reference versus hotel confirmation number

A Stuba booking identifier and a hotel confirmation number serve different purposes. The Stuba reference identifies the reservation within the supplier's booking system. The hotel confirmation number, often called the HCN, is associated with the property's own reservation records. These identifiers should not be treated as interchangeable. Stuba publishes a BookingHCNQuery operation for retrieving hotel confirmation numbers. Its HAPI documentation explains that HCN availability is associated with bookings approaching arrival, rather than being universally immediate after reservation creation. The published query rules focus on bookings arriving within the next seven days.

Operational use of the HCN

The platform should preserve the HCN when it becomes available and associate it with the existing Stuba booking. A scheduled operational check may be appropriate, subject to approved API usage limits and the documented query rules. An HCN should not replace the original supplier reference in cancellation or accounting records. For travellers, the property confirmation number can support check-in enquiries and hotel verification. For support teams, it provides an additional reference when contacting the property or supplier. The absence of an immediately available HCN should not automatically reclassify an otherwise supplier-confirmed booking as failed. Instead, the booking interface should distinguish the confirmed Stuba reservation from any later property-reference retrieval milestone.

Voucher Generation and Customer Documentation

Obtaining the booking information

Stuba's developer FAQ confirms that vouchers for API bookings can be accessed through its booking management environment. It also describes the option for integrators to generate their own customer vouchers using confirmed booking information retrieved from the API and the relevant static hotel content. This gives a platform a choice between supplier-provided documents and its own appropriately constructed confirmation documents. The choice should be made according to the permitted operational arrangement.

Designing a reliable hotel voucher

A customer voucher should identify the booked property, its address, arrival and departure dates, confirmed room arrangement, lead guest, relevant meal basis and supplier booking reference. It should also contain the instructions and contact details appropriate to the booking. If the hotel confirmation number is available, it may be included according to the agreed documentation design. The voucher must accurately reflect the confirmed reservation. It should not introduce unverified inclusions, describe an estimated local charge as prepaid or promise a room feature absent from the supplier confirmation. Additional hotel notes that materially affect the stay should be accessible to the traveller.

Issuing and updating vouchers

Voucher generation should occur only after the booking has reached a verified confirmed state. If a confirmation is uncertain, the platform should avoid producing a document that could be mistaken for a guaranteed reservation. A voucher may be delivered through the website, customer account or configured notification channel. The platform should retain a record of its issuance and the booking information used to create it. If the reservation changes through an approved servicing process, the old document should be clearly superseded. A cancelled reservation must not continue to present an active voucher without an appropriate cancellation notice.

Cancellation Execution and Booking-Level Limitations

Understanding the documented cancellation operation

Stuba's BookingCancel documentation describes cancellation by the supplier booking identifier and the return of cancellation-related information, including applicable charges. An important limitation is that the API cancellation operation applies to the complete booking. For a booking containing several rooms, submitting a cancellation through the documented operation can cancel all rooms under that Stuba booking reference. This behavior must be reflected in the platform's customer interface and support procedures.

Partial cancellation requests

A customer may want to cancel only one room from a multiple-room reservation. That does not mean the platform can safely issue the standard BookingCancel operation. Stuba's official FAQ directs partial-room cancellation requests to its booking management support workflow rather than presenting them as supported room-level API cancellations. The application should therefore distinguish full booking cancellation from partial servicing requests. For a partial cancellation, collect the affected room details, identify the reservation and create a support case. Do not mark the requested room as cancelled until the authorized servicing outcome is confirmed.

Cancellation charges and refund calculations

The supplier's cancellation response should be used to establish the actual cancellation outcome and applicable charges. The original displayed policy provides context, but the final financial calculation must also consider the returned supplier result. A customer refund may involve the original payment amount, supplier cancellation charges, platform service charges and the merchant's own approved refund rules. The system should not assume that a supplier cancellation automatically reverses a customer payment. Payment processing and supplier reservation servicing are distinct transactions. When a cancellation fails or its outcome cannot be verified, the case should remain open rather than being silently treated as completed.

Amendments, Special Requests and Manual Servicing

Do not assume a general amendment API

A hotel booking platform may need to handle date changes, guest-name corrections, additional room requests or revised occupancy. Those needs do not prove that the selected Stuba interface provides a transactional API operation for every amendment. The published booking documentation identifies core search, confirmation, retrieval and cancellation functions. Stuba's FAQ also explains that special requests are handled through its booking management environment rather than through the ordinary API booking journey. The implementation should therefore avoid advertising fully automated amendments unless the specific operation has been documented and approved for the account.

A practical servicing arrangement

When an amendment cannot be executed through the approved interface, the platform should create a controlled request for the operations team. The request should contain the existing Stuba booking reference, the proposed change, the affected travellers and any relevant timing constraints. The original reservation should remain identifiable while the request is being investigated. Customer-facing status should distinguish a requested amendment from an accepted amendment. No revised voucher should be issued solely because the traveller submitted a change request. The operations team should capture the supplier's response, revised conditions and any additional charges before confirming the outcome to the customer.

This distinction is particularly important for non-refundable bookings and date changes close to arrival.

Financial Settlement and Booking Reconciliation

Separate booking confirmation from supplier payment

Stuba's developer FAQ explains that credit-card details are not passed to the hotel booking API as part of the booking request. The travel business may collect payment through its own payment gateway, while supplier billing follows the commercial arrangements agreed with Stuba. This separation has important architectural consequences. A successful customer payment does not settle the supplier account automatically. Likewise, an accepted supplier booking does not establish that the platform successfully collected payment from the traveller. The application must record both sides of the transaction.

Building a reconciliation record

For each reservation, retain the internal order reference, Stuba booking identifier, supplier hotel details, booking date, stay dates, original supplier price, selling price, currency and financial status. Cancellation charges and refund transactions should be linked to the same record. Supplier invoices or statements can then be compared against confirmed booking data. Differences may result from a cancelled booking, a late adjustment, an exchange-rate calculation, a duplicated internal transaction or an unresolved supplier status. The application should provide a way to investigate each variance without modifying historical values to force a match.

Handling disputed and uncertain transactions

A customer may report being charged without receiving a voucher. The immediate response should be to investigate both the payment gateway result and the Stuba reservation state. If the supplier booking is confirmed but the customer payment failed, the business needs a defined recovery decision. If payment succeeded but the supplier booking did not, the platform needs a controlled refund or alternative-offer workflow. If the supplier outcome is uncertain, neither an automatic rebooking nor an automatic refund should be triggered without sufficient evidence. Reconciliation should reflect documented outcomes, not assumptions based on whichever system responded first.

Integration Architecture, Security and Data Integrity

Isolating the supplier adapter

A maintainable implementation separates the Stuba-specific interface from the wider booking application. The supplier adapter handles authentication, request construction, response interpretation, interface versions and technical errors. The booking service manages the internal reservation state, customer acceptance and interaction with payment or notification systems. Property content and mapping can be managed separately from live availability. This separation reduces the risk that an interface change affects unrelated booking components. It also makes it easier to distinguish supplier errors from internal business-rule failures.

Protecting credentials and customer information

Stuba credentials should be held in controlled server-side configuration, with access restricted to the services that need them. API keys and passwords must not appear in public JavaScript, customer-facing responses or ordinary application logs. Hotel reservations contain customer information that should be accessible only to authorized personnel. Diagnostic records should preserve enough technical detail for troubleshooting without exposing unnecessary personal information. Infrastructure security should cover encrypted connections, secrets management, environment separation and controlled access to booking operations.

Preserving transaction consistency

The platform should use durable transaction records to track booking attempts. If a process crashes after sending a supplier confirmation request, the state must survive the restart. An operator should be able to determine whether the booking was never submitted, submitted with an unknown outcome or successfully confirmed. The system should avoid uncontrolled repeated booking requests and provide recovery rules for incomplete internal processing. This is particularly important when payment systems, reservation services and customer notifications operate independently.

Availability Performance and Operational Monitoring

Search response behavior

Stuba's HAPI documentation describes availability response times that can vary with the search criteria. The published guidance identifies an indicative range of several seconds, with some searches taking longer. The platform should therefore design the search interface around realistic supplier response behavior. A short client-side timeout can make a functioning supplier connection appear unreliable. However, excessively long requests can also damage the user experience. The implementation should establish practical timeout values, appropriate search limits and a clear user interface for requests that take longer than expected.

Compression and rate controls

The HAPI getting-started documentation requires supported HTTP response compression headers. Integrators should follow the selected interface's documented encoding requirements rather than assume every environment accepts the same header values. Search traffic should also be monitored for excessive repeated requests. The error documentation identifies request-rate restrictions, authentication failures and unavailable-service conditions. The platform should recognize these responses and stop inappropriate retries.

Monitoring business outcomes

Operational monitoring should measure more than server uptime. Useful measures include successful content synchronization, availability response behavior, preparation failures, price changes, confirmed bookings, unresolved confirmation outcomes and cancellation errors. A rise in quote-expiry failures may indicate a slow checkout journey rather than a supplier outage. Repeated invalid property identifiers may reveal stale mappings. An increase in pending confirmations may indicate an incorrect timeout configuration. These signals help the operations team investigate the actual booking problem instead of treating every failure as a generic API issue.

API Versioning, Certification and Production Change Control

Version-specific implementation

Stuba publishes both HAPI and XML version 1.28 documentation. The correct implementation must follow the interface and version supplied or approved for the account. Public documentation does not establish that every historical interface will remain supported indefinitely. The platform should identify the selected version within its integration configuration and retain version-specific test cases. Request and response handling should not be silently changed when a new interface becomes available. Version migration should be treated as a controlled change involving updated field mappings, error interpretation, regression testing and supplier approval where required.

Certification readiness

Stuba's published onboarding process refers to technical review and certification before live activation. The project should prepare evidence that its search, preparation, confirmation, retrieval and cancellation behavior follows the relevant specification. Testing should cover valid transactions and failure conditions. A successful test-environment booking is not itself proof that production permission has been issued. The account owner must obtain the actual production details and authorization through Stuba's process.

Managing changes after go-live

Supplier integrations are not static. Content formats may evolve, error codes may be introduced and operational requirements may change. The platform should maintain a change register for supplier specifications, credentials, production URLs and booking behavior. Updates should be tested in the appropriate environment before deployment. A rollback plan should exist for changes affecting confirmation, cancellation or accounting. The purpose of change control is to protect active reservations and prevent a technical release from creating inconsistent financial or booking states.

Illustrative Example: A Stuba Booking With a Changed Rate and Uncertain Confirmation

Illustrative example only — this is a hypothetical scenario designed to explain implementation decisions. It is not a completed TravelTech365 customer project, a Stuba case study or a claim about an actual supplier transaction.

The search and initial selection

A traveller searches for one hotel room for two adults and one child. The platform retrieves an eligible Stuba offer with a defined meal basis and indicative cancellation classification. The traveller chooses that room and proceeds to the booking summary. During BookingPrepare, the system receives the complete applicable terms, including a cancellation penalty that starts before the stay. The platform presents these conditions and records the customer's acceptance.

The price changes before confirmation

The traveller enters guest details and proceeds to payment. Before final confirmation, the application performs another preparation request. The supplier now reports a higher price. Instead of carrying forward the earlier total, the platform returns the revised amount to the customer. The traveller can accept the revised price or abandon the booking. If the customer accepts, the platform stores the new accepted amount and proceeds using the current valid supplier offer. This avoids confirming an accommodation purchase at conditions the customer did not authorize.

The confirmation response becomes uncertain

The platform sends the booking confirmation request. The supplier processes the operation, but the application connection ends before a usable response reaches the booking service. At this point, the system cannot safely conclude that the hotel booking failed. Automatically repeating the confirmation could create an additional reservation. The platform marks the order as pending verification and prevents another uncontrolled confirmation attempt. The operations service examines the available request identifiers and attempts the documented status-recovery route. If a reliable supplier booking identifier is available, it can be used with the appropriate retrieval operation.

If the supplier status cannot be established through the authorized interface, the case is escalated through Stuba's support process.

Final outcome and reconciliation

In this hypothetical scenario, the investigation establishes that the supplier reservation was successfully confirmed. The platform saves the returned booking identifier, updates the order to confirmed and issues the voucher. The financial record is then reconciled against the amount accepted by the customer. If the reservation had not been confirmed, the platform would instead follow its documented payment recovery or customer-refund process. The important outcome is not a guaranteed recovery time. It is a booking record that distinguishes uncertainty from failure, prevents accidental duplication and provides the support team with a traceable path to resolution.

TravelTech365's Approach to Stuba Integration Delivery

Discovery and supplier-access assessment

The project begins by identifying the business model and reviewing the Stuba account's approved technical access. TravelTech365 would assess whether the intended platform requires property discovery, live hotel booking, agent distribution, customer-facing reservations or a combination of these functions. The supplier's actual agreement and approved interface determine the integration boundary. A project should not include undocumented booking operations merely because they are common in other hotel APIs.

Technical design and implementation

The integration design covers property content synchronization, mapping, availability, occupancy, room-and-rate comparison, booking preparation and confirmation. It also defines how the application handles cancellation, vouchers, booking retrieval and supplier references. Special attention is given to exceptions that affect customers or create financial exposure. These include changed prices, unavailable quotes, uncertain confirmations, incomplete responses and cancellation requests involving only part of a booking. The development process should produce clear responsibilities for each system and a practical operating model for manual cases. TravelTech365's broader software development and API integration process explains how discovery, specification, implementation, testing and deployment can be organized.

Adapting the integration to the platform

For a B2B travel agency platform, additional business requirements may include agent-specific pricing, credit arrangements, reservation approvals and booking reconciliation. For a B2C online travel agency platform, the emphasis may be on property presentation, understandable rate conditions, payment coordination and customer confirmation. Some travel companies also operate hotel reservations alongside flight reservation systems. In such cases, flight and hotel services should retain their separate supplier references, payment states and servicing rules even when the customer sees one itinerary. A combined travel order must not imply that a flight confirmation guarantees the associated hotel reservation.

Testing the Stuba Integration Before Live Release

Property and search testing

Testing should begin with valid and invalid property identifiers, supported regions, unavailable destinations and incomplete content. The application should demonstrate that a valid property match does not accidentally route availability requests to another property. Search scenarios should include single-room and multiple-room arrangements, different adult allocations, children with eligible ages and nationality-dependent requests. Tests should verify that material changes to occupancy cause appropriate quote refresh or invalidation.

Rate and policy testing

Room comparisons should be tested using offers with different meal arrangements, cancellation classifications and price levels. The platform should preserve the correct rate identity even when several offers share a similar room description. Revalidation tests should cover unchanged quotes, price increases, price decreases and unavailable rooms. Cancellation policy tests should include multiple fee dates, immediate penalties, time-zone interpretation and policies that cannot be confidently summarized. Customer acceptance must be captured after the final applicable conditions are presented.

Reservation and recovery testing

Confirmation testing must include valid bookings, rejected guest details, supplier errors, timeouts and uncertain completion. Where the test environment permits, the recovery process should demonstrate that a potentially completed confirmation is not submitted again without verification. Booking retrieval should return information associated with the correct internal order. Voucher generation should be blocked for unconfirmed reservations. Cancellation testing should cover full-booking cancellation, applicable charges, unsuccessful responses and the manual route for partial-room requests. Finally, financial reconciliation should confirm that the supplier booking amount and customer payment remain separate, traceable records.

Questions to Confirm Directly With Stuba Before Production

Some integration capabilities cannot be established from general public documentation alone. They should be treated as account-specific questions to assess, not promises made by TravelTech365.

Distribution and commercial permissions

Confirm which selling channels are permitted, which markets the account can serve and whether the intended use of property content is authorized. Clarify the commercial pricing model, configured currency, supplier billing arrangements and any operational restrictions attached to the account. Where the business involves sub-agents or onward distribution, the permitted model should be explicitly established.

Operational service boundaries

Confirm which of the published APIs are approved for the account, which environment details should be used and whether any additional technical restrictions apply. Ask how Stuba expects uncertain bookings to be investigated and which support channels should receive urgent cases. Establish the approved process for partial cancellations, date changes, guest corrections and special requests. If a business needs an operation not clearly documented in the selected interface, request confirmation before including it in the committed development scope.

Production acceptance criteria

Agree what constitutes successful certification, which test evidence must be submitted and when production credentials will be provided. Document any account-specific limits, support arrangements and operational procedures communicated during onboarding. These decisions should become part of the integration specification. This prevents the implementation from relying on generic assumptions that may not apply to the customer's actual supplier account.

Frequently asked questions

1. What is Stuba integration, and what does it allow a travel platform to do?

Stuba integration is the connection of an approved travel platform with Stuba's documented accommodation content and hotel booking services. Depending on the interface and account permissions, the platform can retrieve hotel information, search availability, prepare selected offers, submit bookings, retrieve reservation details and carry out supported cancellation operations. The integration allows a travel business to manage the relevant customer journey within its own application while preserving Stuba's booking and commercial conditions. It does not automatically provide unrestricted hotel inventory, direct property contracting, universal modification functions or permission to resell through every distribution channel. Those matters depend on the approved commercial relationship.

2. Can any travel company obtain access to the Stuba hotel API?

API access is not automatic. Stuba's official registration process requires an existing account and includes a review of the proposed integration. The applicant must identify the company, technical contacts, connection arrangement and intended platform. After registration, the business may receive technical access appropriate to its onboarding stage. However, test access and published documentation are not equivalent to live booking authorization. The account owner should obtain confirmation of the permitted interface, markets, distribution model and production activation requirements. Development scope should be based on those confirmed permissions rather than on assumptions about general API availability.

3. What is the difference between Stuba HAPI, XML API v1.28 and the Content API?

HAPI is Stuba's documented JSON-based hotel booking interface. It includes search, preparation, confirmation, retrieval and cancellation operations. XML API version 1.28 provides a related booking workflow using XML or SOAP-style requests and its own credential structure. The Content API supplies reference information such as countries, nationalities, search regions and property details. The Content API does not replace live availability requests, and a successful booking interface connection does not remove the need for accurate property information. The approved integration should use the specific interface version and authentication method supplied for the account.

4. How does the Stuba property search process work?

The booking platform first identifies the destination or property using relevant Stuba reference data. It then submits an availability request containing the intended stay dates, occupancy details and required traveller information. Stuba returns available options associated with property identifiers and quote references. The application uses its property catalogue to enrich those results with relevant descriptive information. A property appearing in the content database does not necessarily have an available room. The platform should also avoid treating an old search result as permanently bookable. The selected quote must pass the documented preparation process before confirmation.

5. Can Stuba hotel inventory be combined with other accommodation suppliers?

A multi-supplier platform can be designed to present accommodation offers from several approved hotel distributors. However, combining supplier data requires accurate property mapping and preservation of each supplier's original rate identity. A Stuba offer must retain its hotel identifier, room conditions, quote reference and booking route. Offers from different distributors should not be merged merely because they have similar names or prices. The platform must also respect the content-use and distribution permissions associated with each provider. Stuba's integration agreement should be reviewed before its inventory is included in an aggregation or onward-distribution model.

6. How should the platform compare room types and meal plans?

The platform should preserve Stuba's original room and meal information while translating available attributes into understandable customer-facing descriptions. Room category, occupancy, meal basis, cancellation terms and price should remain separately identifiable. Two rooms with similar descriptions should not automatically be considered equivalent. A breakfast-inclusive rate may not be comparable with a room-only rate, even if the underlying room category is the same. Stuba documents dynamic room and meal descriptions, so the implementation should not depend on a universal permanent list. Where important information is missing or ambiguous, it should remain unverified rather than being invented through normalization.

7. Why does traveller nationality matter in Stuba availability searches?

Stuba's documentation identifies traveller nationality as a required search attribute. Hotel suppliers may apply different rates, restrictions or availability conditions depending on the guest's nationality. Providing an incorrect value can therefore produce offers that are not valid for the intended traveller. The booking platform should collect the required nationality accurately and maintain consistency throughout the booking journey. It should also preserve relevant eligibility messages returned with the selected rate. A platform-wide default should not silently replace information that the customer or booking process is required to provide.

8. Does Stuba guarantee that a rate shown during search can be booked later?

A search result should not be treated as a permanent guarantee of price or availability. Stuba uses quote references and a preparation process to validate selected accommodation before confirmation. Availability can change as other reservations are made, while prices or booking conditions may also be updated. The platform must revalidate the selected offer and respond appropriately when the supplier reports a changed price or unavailable room. If the price changes materially, the revised amount should be presented for customer approval. A reservation should be reported as confirmed only after the supplier's confirmation operation has successfully established that outcome.

9. How are cancellation policies retrieved and presented?

Availability results may provide an indicative cancellation classification. The complete policy is obtained through the appropriate booking preparation response, which can include fee amounts and effective dates. The platform should interpret these details using the selected Stuba interface specification. It should explain the applicable penalties and relevant deadlines before the customer confirms the reservation. An unknown classification is not equivalent to free cancellation. Where the source contains complex or overlapping fee entries, the implementation must apply Stuba's documented interpretation rules. The accepted policy should be retained with the booking for later support and reconciliation.

10. What happens if a Stuba booking confirmation request times out?

A timeout creates uncertainty about whether the booking operation finished. The application must not automatically assume that no reservation exists. Stuba documents completion-related errors where repeating a booking request can create a duplicate reservation. The safe approach is to preserve the pending transaction, identify any available supplier reference and investigate the booking state. Where appropriate, the platform can use the documented booking retrieval operation. If the outcome remains unclear, the case should be escalated through an authorized Stuba support channel. The customer should receive a pending-verification message rather than an unsupported confirmation or definitive failure notice.

11. Does Stuba provide hotel vouchers and property confirmation numbers?

Stuba's official FAQ describes voucher availability through its booking management environment. It also explains how an approved integrator may generate its own voucher using confirmed booking information. The platform must ensure that its voucher reflects the actual supplier-confirmed reservation. Stuba separately documents a hotel confirmation number retrieval operation. The hotel confirmation number may become available closer to arrival, according to the interface's published conditions. The booking reference and hotel confirmation number should therefore be stored as distinct identifiers. A voucher should not claim that an unavailable property confirmation number has already been obtained.

12. Can a customer cancel one room from a multi-room Stuba booking through the API?

The documented Stuba API cancellation operation applies to the complete booking associated with the supplied booking identifier. If the booking contains multiple rooms, the operation can cancel all of them. A customer requesting cancellation of only one room should not trigger that standard API operation. Stuba's official guidance directs partial-room cancellation requests to its booking management and servicing process. The travel platform should therefore create a support request and preserve the current reservation status until the requested change is verified. Any cancellation charge or refund must be based on the actual supplier outcome.

13. Can dates, guest names and special requests be changed automatically?

Automatic post-booking modification should not be assumed. Stuba's published interfaces document specific booking and cancellation functions, while its FAQ directs special requests through the booking management environment. A platform may support customer submission of amendment requests without having a corresponding transactional API operation for every change. The application should distinguish a requested amendment from an accepted one. Staff may need to coordinate with Stuba before confirming revised dates, guest details or room arrangements. Any additional charges, updated conditions or revised confirmation references should be recorded before a new customer document is issued.

14. How are payments, supplier invoices and refunds managed?

The travel platform may collect customer payments through its own approved payment gateway. Stuba's booking API does not require passing the customer's card details as part of the hotel booking request. Supplier settlement follows the commercial terms agreed with Stuba. The application should maintain separate records for the customer payment, the supplier booking amount and any platform charges. When a reservation is cancelled, the supplier's confirmed cancellation result and charges must be considered before calculating the customer refund. A successful supplier cancellation does not automatically mean the payment gateway has returned funds to the customer. Both processes require independent status tracking and reconciliation.

15. What should a travel business prepare before requesting Stuba integration from TravelTech365?

The business should identify its intended distribution model, target markets, customer channels and expected booking workflow. It should also confirm whether it already has a Stuba commercial account and which API interfaces have been approved. Useful technical information includes existing platform architecture, intended hosting arrangements, property mapping requirements, payment workflow and preferred operational support model. The project should identify whether it requires B2B agency distribution, B2C customer bookings or integration with additional travel services. TravelTech365 can use this information to define the integration scope, assess dependencies and establish the testing and certification responsibilities. A project enquiry can be submitted through the TravelTech365 request form.

Planning a Stuba Integration With TravelTech365

A successful Stuba integration depends on matching the platform's actual business requirements with the access and operations authorized by the supplier. The technical specification should explain which interface will be used, how property content will be maintained, how offers will be compared and when prices and cancellation conditions must be revalidated. It should also establish how the booking application handles confirmed reservations, uncertain transactions, voucher delivery, cancellation requests and financial reconciliation. For travel businesses operating multiple supplier connections, this includes preserving supplier-specific records without exposing customers to unnecessary technical complexity.

For platforms that serve both agents and travellers, the integration must also respect the different pricing, access and operational responsibilities attached to each distribution channel. The final scope should reflect the available Stuba account permissions, agreed implementation requirements and documented servicing limitations. TravelTech365 can assess these requirements, define the integration architecture and prepare an implementation plan covering the applicable supplier workflows. To discuss your Stuba connection, share your platform type, current supplier-access status, required booking functions and any existing technical documentation through Request a Quote. The resulting assessment can identify the approved integration path, required development work, testing responsibilities and supplier dependencies before production commitments are made.