Publishing hotel availability is not only a question of how many rooms remain or what a guest should pay. A room can have inventory and a valid price yet still be unavailable for a particular arrival date or length of stay. For a dependable ota integration, those stay rules must survive translation from a property management system, central reservation system, or channel manager into the precise restrictions supported by the destination interface.
This TravelTech365 guide explains how to model, send, acknowledge, and verify hotel stay restrictions when updating room and rate plans. It concentrates on publication workflows rather than reservations or revenue strategy. The examples distinguish general integration design principles from features documented for specific Booking.com connectivity endpoints; support elsewhere must be checked rather than presumed.
Why stay restrictions need their own publication workflow
A restriction is a booking eligibility rule attached to a defined scope. That scope ordinarily includes a property, room type, rate plan, and one or more calendar dates. Some rules evaluate the guest's check-in day; others evaluate each occupied night. Mixing those interpretations can silently change which itineraries shoppers can book.
Consider an event weekend. A hotel might require Friday arrivals to stay at least two nights, require every reservation covering Saturday to last three nights, and prohibit Saturday check-ins. These are three distinct instructions. An adapter that sends only a generic “minimum stay: two” field has lost information even if its API call succeeds.
Publishing restrictions therefore deserves a defined process: capture the intended business rule, normalize it, validate it against the destination's capabilities, produce a scoped update, interpret the response, and compare the destination's state with the intended state. Availability, rates, and restrictions remain related, but they should not be treated as interchangeable values.
Define the exact object being changed
Record the property identifier, mapped room identifier, mapped rate identifier, date interval, restriction kind, numeric value or open/closed status, and the source of the instruction. Keep the hotel's local calendar dates separate from transmission timestamps. A rule for Saturday means the hotel's Saturday, not whatever date a server in another timezone happens to report.
Check whether a setting belongs to the room as a whole or to one room-rate combination. Room-wide closure can override the saleability of every associated rate. Conversely, changing a single rate plan should not unintentionally close other plans. Treat a missing rate identifier as a meaningful scope decision, not merely an optional field to omit for convenience.
Translate restriction semantics before translating field names
Minimum stay on arrival versus minimum stay throughout
Minimum stay on arrival asks whether a booking starts on a controlled date. If the Friday minimum is two nights, a Friday check-in for one night fails that arrival-based rule, while a Thursday check-in that stays across Friday is not subject to Friday's arrival rule. Other restrictions may still apply.
Stay-through minimum stay asks whether the booking includes a controlled stay date. If Saturday requires three nights on a stay-through basis, a Friday-to-Sunday reservation covering Saturday for two nights fails even though check-in occurred Friday. A Thursday-to-Sunday reservation covering Saturday for three nights can satisfy that specific rule.
This distinction is explicitly represented in Booking.com's B.XML availability documentation through minimumstay_arrival and minimumstay. Its OTA_HotelAvailNotif documentation uses LengthsOfStay ArrivalDateBased="1" for arrival-based rules and ArrivalDateBased="0" for stay-through rules. These are provider-specific mappings, not universal field names.
A crucial implementation detail is that a booking may cross several controlled dates. Evaluate the full itinerary against applicable rules, not only the first night displayed in a search. If different minima apply on different covered nights, a stay-through check must consider each relevant night. When a booking changes rate plan mid-stay, use the destination's documented treatment of consecutive nights on a particular rate.
Closed to arrival is not closed for sale
Closed to arrival (CTA) prevents check-in on a specified date while potentially permitting an existing stay to continue across it. It does not mean that every reservation containing the night should disappear. Closed to departure (CTD) similarly targets checkout on a specified date. A full closure is different: it makes the relevant room or room-rate scope unavailable for sale on that date.
Booking.com's B.XML fields include closedonarrival, closedondeparture, and closed. The documented OTA notification interface represents arrival or departure closure with a RestrictionStatus whose Restriction indicates Arrival or Departure, and whose Status indicates Close or Open. Check the intended combination and level carefully; do not convert CTA into a blanket closed status.
A closure may preserve inventory, pricing, and other restriction settings. Reopening is therefore an explicit publication action, not a side effect of sending a new price. A positive room count likewise cannot prove that a room is bookable. Saleability is the intersection of inventory, price, open/closed state, restrictions, and other applicable rules.
Maximum, exact stay, and advance-purchase rules
Maximum length of stay, exact length of stay, and advance reservation offsets are separate controls. A three-night minimum cannot safely be approximated by an exact three-night requirement: the latter could wrongly exclude four-night bookings. Maximum-on-arrival and stay-through maximums also differ in which dates trigger evaluation.
For Booking.com, the B.XML reference documents maximumstay, maximumstay_arrival, exactstay_arrival, and advance-reservation fields. The OTA notification reference documents length-of-stay types including SetMinLOS, SetMaxLOS, and FixedLOS, alongside advance-booking offsets. The valid combinations, limits, and inheritance behavior should be tested for the connected property and rate configuration.
Use an explicit “no restriction” value only where documentation defines one. Omission may mean “do not change this field,” while zero may mean “clear the existing rule.” Those are materially different operations. A local null must never be mapped to zero without a deliberate, documented clearing instruction.
Build a canonical restriction model and validate mappings
Store intent independently from transport syntax
An internal restriction record should describe business meaning before it becomes XML. Useful fields include property key, room key, rate key, hotel-local date, rule type, evaluation basis, desired value, effective source version, and publication owner. Preserve whether a value was explicitly set, explicitly cleared, or simply not supplied. Record the sender's configuration version as well as the mapping revision used to generate the update.
This creates a stable comparison surface when a hotel changes connectivity provider or switches between supported endpoints. The canonical model should not assume every destination understands every rule. Instead, the adapter declares supported operations, valid ranges, date-boundary conventions, and whether a rule is room-level, rate-level, inherited, or unsupported.
If a source requires a Saturday stay-through minimum but a destination exposes only arrival-based minimums, do not silently substitute one for the other. Reject or hold the unsupported instruction, disclose the gap to the operator, and seek an approved commercial policy. A seemingly close mapping can create real booking eligibility errors.
Validate before transmission
Check that property, room, and rate identifiers belong together and are active for the intended dates. Enforce allowed numeric ranges, integer values for night counts, and consistency between minimum and maximum stays. Validate date expansion, overlapping changes, and whether a child rate inherits restrictions from a parent rate. Detect conflicting “open” and “close” actions generated by different subsystems.
Separate room inventory updates from rate restrictions wherever the interface's scope differs. In Booking.com's B.XML documentation, roomstosell applies across rates for a room type, and the provider recommends expressing inventory and rate data in separate room elements for clarity. In the OTA notification format, BookingLimit is room-level; restriction updates identify a RatePlanCode.
For inherited or derived rate plans, writing a restriction directly to a child plan may be prohibited. The Booking.com references discuss errors when changes target fields configured to follow a parent. An integration must discover or configure inheritance correctly and route publication through the authorized rate level instead of retrying the same invalid payload.
Choose an interface and respect its calendar conventions
B.XML availability: rate fields and exclusive range end
Booking.com's B.XML availability endpoint documents rate-specific restriction fields alongside prices and room inventory updates. A date can identify one stay date or a range. Importantly, its range to date is exclusive. To change Friday through Sunday, the range ends on Monday. Misreading this boundary leaves Sunday unchanged or extends a restriction farther than intended.
The same documentation recommends delta updates, one hotel per request, and month-sized batches. It also explains that multiple room-rate groups can appear in a permitted request. These are documented recommendations for that interface, not proof that every OTA connector accepts the same batching strategy.
OTA_HotelAvailNotif: inclusive range end and separate messages
Booking.com's OTA_HotelAvailNotif interface uses StatusApplicationControl with Start, End, InvTypeCode, and, for restriction changes, RatePlanCode. Here the documented End is inclusive. Friday through Sunday therefore ends on Sunday, not Monday.
In this interface, LengthsOfStay carries an ArrivalDateBased flag. The documentation specifically requires separate AvailStatusMessage blocks when publishing both arrival-based and stay-through length-of-stay restrictions. A converter that merges both into one ambiguous message risks changing semantics even when the input records are individually correct.
These examples establish two possible supported publication paths, not a mandate to use both. Select the interface authorized for the connection, check current access and schema requirements, and maintain separate serialization tests. Do not send the same intended change through multiple writers merely because two technical endpoints exist.
A hypothetical weekend calendar, tested against bookings
The following illustration is entirely fictional. Harbor Lantern Hotel has one mapped Deluxe King room type and one Flexible rate plan. Assume enough inventory, valid nightly prices, no maximum-stay conflicts, and no independent advance-purchase restrictions. The hotel wants stronger controls around a June weekend. The calendar describes local stay dates; the checkout date is not an occupied night.
| Stay date | Arrival-based minimum | Stay-through minimum | Arrival permitted? | Publication intent |
|---|---|---|---|---|
| Thu 10 Jun | 1 night | None | Yes | Ordinary arrival |
| Fri 11 Jun | 2 nights | None | Yes | Discourage one-night Friday starts |
| Sat 12 Jun | None | 3 nights | No (CTA) | Require longer stays covering Saturday |
| Sun 13 Jun | 1 night | None | Yes | Allow Sunday check-ins |
| Mon 14 Jun | 1 night | None | Yes | Return to normal policy |

Check complete itineraries, not isolated cells
A Friday 11 June check-in with Sunday 13 June checkout occupies Friday and Saturday: two nights. It meets Friday's two-night arrival minimum but fails Saturday's three-night stay-through minimum. A Friday check-in with Monday 14 June checkout occupies three nights and meets both minimums. The guest does not check in on Saturday, so Saturday's CTA does not block this itinerary.
A Saturday 12 June check-in with Tuesday 15 June checkout is still blocked by Saturday CTA, even though its three-night duration would meet the stay-through threshold. A Thursday 10 June check-in with Sunday 13 June checkout includes Saturday and lasts three nights, so it meets the illustrated restrictions. A Sunday 13 June check-in with Monday 14 June checkout does not contain Saturday and can satisfy Sunday's one-night arrival requirement.
Now imagine a mapping defect that publishes Saturday's three-night rule as minimum on arrival. The Friday-to-Sunday search might incorrectly become bookable because it never arrives Saturday. A different defect that publishes CTA as full closure could wrongly block the valid Friday-to-Monday stay. These opposite errors show why success responses alone cannot verify business meaning.
To serialize the illustrated Saturday controls on Booking.com's B.XML interface, the adapter would target the mapped room and rate for 12 June with minimumstay=3 and closedonarrival=1. It would separately publish Friday's minimumstay_arrival=2. For the documented OTA notification interface, the Saturday stay-through rule uses ArrivalDateBased="0" with SetMinLOS and Time="3"; the Saturday CTA is a separately scoped arrival closure. These are conceptual field mappings, not ready-to-submit payloads or claims about an actual property.
Interpret acknowledgements at the scope of each change
Transport receipt is not proof of every applied rule
A network response confirms that an interaction occurred, but it does not by itself establish that all desired restrictions are active. Parse the documented response envelope, success indicators, errors, and warnings. Retain the request's own correlation identifier, the exact payload, response body, provider identifiers, and transmission timestamps so that disputes can be reconstructed.
The Booking.com B.XML documentation explicitly states that HTTP 200 can accompany partial success, with errors describing invalid updates; it also documents warnings alongside an ok response. The OTA notification documentation describes a Success element and possible Warnings, with error details in an Errors block. A warning can indicate an amended value, so “accepted with warning” must not be treated as identical to “desired state confirmed.”
Build a local publication ledger at the smallest scope the response reliably identifies: property, room, rate, date, and restriction kind. If an error identifies specific dates or rate identifiers, mark those targeted cells unresolved. When the provider response lacks enough detail to allocate success among all elements, keep the affected batch in an uncertain state and schedule a readback or other supported verification. Never invent per-row acknowledgement granularity that the interface does not supply.
Retry only the unresolved intent
Maintain distinct statuses such as pending, transmitted, accepted, warning, rejected, uncertain, and verified. A retry worker should compare the failed attempt with the latest desired revision before resubmitting. If a newer manager decision supersedes the older restriction, skip the stale retry and publish the current state instead.
Where the provider offers no idempotency token or compare-and-set contract for this endpoint, do not imply one exists. Design idempotency internally by calculating stable desired values and suppressing duplicate pending work, then confirm externally through an authorized read interface. A timeout is ambiguous: the server may have applied the write even though the client did not receive the response.
Prevent stale updates and reconcile the remote calendar
Sequence changes by the scope they can overwrite
Suppose revenue management changes Saturday's stay-through minimum from three nights to two after an earlier three-night job has entered a queue. If the newer job publishes first but the older job arrives later, a transport success can restore an obsolete rule. The connector must prevent that regression without assuming the OTA will reject an older version.
Assign a monotonically increasing local revision per affected publication scope, or use a consistent ordered event stream. Before send, recheck the desired revision. Serialize conflicting writes for the same property-room-rate-date-rule; allow unrelated scopes to progress independently. After a timeout or retry, re-evaluate whether the work is still current. Local order is a design responsibility, not a guarantee supplied by either cited endpoint.
Be especially cautious when a broad date range overlaps a later one-day correction. A queued “whole weekend” message can overwrite a targeted Saturday adjustment. Expand planned writes to their impacted date cells for conflict detection, even if the outgoing payload uses compressed ranges. Track implicit clearing operations and inherited-rate changes with the same rigor as explicit numeric updates.
Reconciliation closes the loop
Maintain two views: desired state from the hotel's authorized source and observed state from the connected destination when a supported readback method exists. Compare each restriction's type, basis, value, room-rate scope, and date. Treat a missing field cautiously: it might mean default, inherited value, unsupported readback, or genuinely absent restriction, depending on documented behavior.
Booking.com's connectivity guidance for these endpoints recommends delta updates and points to its inventory-and-rate retrieval capability for checking current values. Verify that the particular connection exposes the needed fields and access before depending on it. If readback is incomplete, combine response inspection with controlled test searches or operational review, clearly labeling what remains unverified.
Run reconciliation after mapping changes, unresolved acknowledgements, provider incidents, manual extranet edits, and major calendar updates. Use periodic sampling for routine dates and greater scrutiny for high-demand arrivals. Flag drift with the intended and observed values, provenance, time last checked, and a proposed resolution. Avoid an endless corrective loop when the destination intentionally owns a policy the source is not authorized to replace.
Reconciliation should also test user-visible outcomes without equating search visibility with an authoritative state report. Search results may involve caching, pricing, inventory, occupancy, market configuration, or other conditions. A failed availability search is evidence to investigate, not proof that a particular minimum-stay field was stored incorrectly.
Set publish ownership and operational safeguards
Choose exactly one authoritative owner for each class of restriction and each connected room-rate scope. Ownership may sit with a PMS, CRS, revenue-management system, or channel manager, but it should be explicit. Document which system can create, revise, clear, and override policies; which team approves exceptions; and what happens when the property's extranet is edited manually.
Keep a source-of-truth register identifying the business owner, technical publisher, target connection, mapping version, and escalation path. A manual OTA override should either be imported into the authoritative workflow or identified as deliberate divergence. Otherwise, the next routine update might unknowingly erase the manual decision, or reconciliation might keep reversing the hotel's approved exception.
Introduce guardrails for unusual changes: an accidental 30-night minimum, a closure spanning months, a clear operation affecting every rate, or an unmapped rate-plan identifier. Require approval where risk warrants it. Log actor, source system, before-and-after values, affected dates, and acknowledgement outcome. Minimize sensitive data in operational logs; restriction publication generally does not need guest personal information.
Make operator messages actionable. “Publishing failed” is less useful than “Saturday 12 June, Deluxe King / Flexible, arrival closure rejected; rate mapping inactive.” Provide safe replay options only after showing whether the request is current. Display provider-specific caveats in administration screens so staff do not mistake a generic OTA toggle for a feature proven to work on every connection.
Verification checklist before launch and after change
Test at the level of guest itineraries and the underlying publication ledger. The release checklist should include positive and negative cases for Friday arrival minima, Saturday stay-through minima, CTA, CTD where supported, full closure, explicit reopening, restriction clearing, multi-day ranges, and date-boundary behavior. Verify that valid long stays remain available while invalid short stays are excluded.
Include cross-month and year-end dates, hotel timezone changes, and the distinction between the last occupied night and checkout. Exercise overlapping ranges, parent-child rate inheritance, inactive identifiers, invalid minimum/maximum combinations, warnings, partial failures, retries, duplicate delivery, and out-of-order updates. Confirm that the adapter never silently drops an unsupported restriction or reclassifies a stay-through rule as arrival-only.
For each scenario, preserve the input intent, normalized record, outgoing mapping, provider response, and available remote readback. Record the expected itinerary decision separately from the observed result. When testing production-like availability, use approved environments and controls so test work cannot inadvertently alter a live hotel's saleable inventory.
Finally, define measurable operating signals: pending publication age, unresolved restriction cells, stale jobs suppressed, acknowledgement warnings, reconciliation drift, and time to correction. These metrics are more revealing than a dashboard counting successful HTTP requests. Review them when adding a new rate plan, changing endpoint versions, or connecting a new hotel.
Reliable restriction publishing is an ongoing agreement
Effective ota integration preserves the meaning of a hotel's restrictions, not just their field values. Arrival-based and stay-through minima, CTA, closures, date scopes, and inherited rules must be modeled distinctly; acknowledgements must be interpreted carefully; and stale writes must not displace newer decisions. A clear publisher, traceable change ledger, and measured reconciliation process turn a fragile one-way feed into a dependable operational connection.
TravelTech365 approaches this class of integration as a controlled mapping and verification problem. The practical goal is simple: when a hotel changes its weekend policy, the right connected room and rate calendar should reflect that decision, with evidence of what was sent, what the interface accepted, and what still needs investigation.
