API
Partner API reference
Sell hotel rooms from your own system. The same capabilities are available as a JSON API and as OpenTravel 2003B XML web services: read hotel content, search availability, price a stay, then create, read and cancel reservations.
- JSON base URL
- http://api:8000/api/partner/v1
- OpenTravel base URL
- http://api:8000/api/ota/2003B
Authentication
Every request uses HTTP Basic authentication with the username and secret of an API partner. A hotel account creates partners in the admin panel under Distribution → API partners; the secret is shown once at creation and can be rotated at any time. Always use HTTPS.
curl -u "acme-travel:YOUR_SECRET" \
-H "Accept: application/json" \
"http://api:8000/api/partner/v1/properties"Each partner has:
- Scopes —
content(property data),availability(search and quote) andbook(create, read, cancel). A call outside the partner’s scopes returns 403. - Property access — all of the account’s properties, or a selected subset. Others behave as if they did not exist (404).
- Commission rate — stamped on every reservation the partner creates.
Conventions
- Content type — send and receive
application/json(sendAccept: application/jsonso errors are JSON too). XML endpoints useapplication/xml. - Envelope — single objects and lists are wrapped in
{ "data": … }. Lists addlinksandmetafor pagination. - Money — decimal strings with two decimals (
"265.00") in the property’s ISO 4217 currency. Never parse them as floats. - Dates and times — stay dates are
YYYY-MM-DDin the hotel’s timezone; timestamps are ISO 8601; check-in/out times areHH:MM. - Language — localised fields (
name,description) follow theAccept-Languageheader; all languages are intranslations. - Codes — properties and room types are addressed by
code; amenity, bed and property-class codes follow OpenTravel code lists (HAC, RMA, PCT). - Rate limit — 600 requests per minute per partner and IP. Over the limit you receive 429 with a
Retry-Afterheader. - Booking flow — availability → quote (optional) → reservation with
expected_totaland anIdempotency-Key.
JSON API
List properties
/propertiesscope: contentActive properties this partner may access (all of them, or the subset assigned to the partner). Paginated, 50 per page, ordered by id.
Query parameters
| page | integer | Page number, starting at 1. |
{
"data": [
{
"id": 12,
"code": "HAM-HARBOUR",
"name": "Harbour Hotel",
"description": "Waterfront hotel in the old port.",
"translations": {
"name": {
"en": "Harbour Hotel",
"de": "Hafenhotel"
},
"description": {
"en": "Waterfront hotel in the old port."
}
},
"property_class": {
"code": "5",
"name": "Hotel"
},
"star_rating": 4,
"status": "active",
"marketplace_visible": true,
"address": {
"line": "Am Hafen 1",
"city": "Hamburg",
"postal_code": "20457",
"country_code": "DE",
"latitude": "53.5452",
"longitude": "9.9690"
},
"timezone": "Europe/Berlin",
"currency": "EUR",
"check_in_from": "15:00",
"check_in_until": "23:00",
"check_out_until": "11:00",
"contact": {
"email": "info@harbour.example",
"phone": "+494012345",
"website": "https://harbour.example"
},
"giata_id": null,
"policies": {},
"accessibility": [],
"sustainability": {
"practices": [],
"certifications": []
},
"classifications": [],
"amenities": [
{
"code": "47",
"name": "Free Wi-Fi",
"exists": true
}
],
"room_types": [
{
"id": 31,
"property_id": 12,
"code": "DBL",
"name": "Double room",
"description": "Two guests, harbour view.",
"translations": {
"name": {
"en": "Double room"
},
"description": {
"en": "Two guests, harbour view."
}
},
"room_class": "DBL",
"occupancy": {
"max": 3,
"max_adults": 2,
"max_children": 1,
"base": 2
},
"size_sqm": 24,
"beds": [
{
"code": "1",
"count": 1,
"name": "Double bed"
}
],
"total_units": 10,
"sort_order": 1,
"is_active": true,
"amenities": [
{
"code": "20",
"name": "Air conditioning"
}
],
"rate_plan_ids": [
7,
8
],
"media": []
}
],
"media": [
{
"id": 90,
"url": "https://cdn.example/p/12/lobby.jpg",
"mime": "image/jpeg",
"category": "exterior",
"caption": null,
"sort_order": 0,
"is_primary": true
}
],
"updated_at": "2026-11-20T09:30:00+00:00"
}
],
"links": {
"first": ".../properties?page=1",
"last": ".../properties?page=3",
"prev": null,
"next": ".../properties?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 3,
"per_page": 50,
"to": 50,
"total": 124,
"path": ".../properties"
}
}- List items include the same fields as the single-property response. Amenities, room types and media appear only when loaded; use the detail endpoint for the complete record.
Get a property
/properties/{code}scope: contentFull static content: address, policies, amenities (OpenTravel HAC codes), room types (RMA codes) and media.
{
"data": {
"id": 12,
"code": "HAM-HARBOUR",
"name": "Harbour Hotel",
"description": "Waterfront hotel in the old port.",
"translations": {
"name": {
"en": "Harbour Hotel",
"de": "Hafenhotel"
},
"description": {
"en": "Waterfront hotel in the old port."
}
},
"property_class": {
"code": "5",
"name": "Hotel"
},
"star_rating": 4,
"status": "active",
"marketplace_visible": true,
"address": {
"line": "Am Hafen 1",
"city": "Hamburg",
"postal_code": "20457",
"country_code": "DE",
"latitude": "53.5452",
"longitude": "9.9690"
},
"timezone": "Europe/Berlin",
"currency": "EUR",
"check_in_from": "15:00",
"check_in_until": "23:00",
"check_out_until": "11:00",
"contact": {
"email": "info@harbour.example",
"phone": "+494012345",
"website": "https://harbour.example"
},
"giata_id": null,
"policies": {},
"accessibility": [],
"sustainability": {
"practices": [],
"certifications": []
},
"classifications": [],
"amenities": [
{
"code": "47",
"name": "Free Wi-Fi",
"exists": true
}
],
"room_types": [
{
"id": 31,
"property_id": 12,
"code": "DBL",
"name": "Double room",
"description": "Two guests, harbour view.",
"translations": {
"name": {
"en": "Double room"
},
"description": {
"en": "Two guests, harbour view."
}
},
"room_class": "DBL",
"occupancy": {
"max": 3,
"max_adults": 2,
"max_children": 1,
"base": 2
},
"size_sqm": 24,
"beds": [
{
"code": "1",
"count": 1,
"name": "Double bed"
}
],
"total_units": 10,
"sort_order": 1,
"is_active": true,
"amenities": [
{
"code": "20",
"name": "Air conditioning"
}
],
"rate_plan_ids": [
7,
8
],
"media": []
}
],
"media": [
{
"id": 90,
"url": "https://cdn.example/p/12/lobby.jpg",
"mime": "image/jpeg",
"category": "exterior",
"caption": null,
"sort_order": 0,
"is_primary": true
}
],
"updated_at": "2026-11-20T09:30:00+00:00"
}
}nameanddescriptionare returned in the language set by theAccept-Languageheader;translationsholds every language.
Search availability
/properties/{code}/availabilityscope: availabilityEvery bookable room type + rate plan combination for the stay, sorted by grand_total ascending. When nothing is bookable, data is empty and meta.unavailable_reasons explains why (minimum stay, closed to arrival, sold out…).
Query parameters
| check_in* | date (YYYY-MM-DD) | Arrival date. |
| check_out* | date (YYYY-MM-DD) | Departure date, after check_in. |
| adults* | integer 1–20 | Adults per room. |
| child_ages[] | integer 0–17, max 10 | Age of each child per room. |
| rooms | integer 1–10 | Number of identical rooms. Default 1. |
GET /partner/v1/properties/HAM-HARBOUR/availability?check_in=2026-12-10&check_out=2026-12-12&adults=2&child_ages[]=6{
"data": [
{
"room_type": {
"id": 31,
"code": "DBL",
"name": "Double room"
},
"rate_plan": {
"id": 7,
"code": "BB",
"name": "Bed & breakfast",
"meal_plan": 3
},
"rooms": 1,
"currency": "EUR",
"room_total": "255.00",
"excluded_taxes": "10.00",
"grand_total": "265.00",
"nightly": [
{
"date": "2026-12-10",
"amount": "120.00"
},
{
"date": "2026-12-11",
"amount": "135.00"
}
],
"refundable": true,
"cancellation_policy": {
"id": 4,
"name": "Flexible",
"is_refundable": true,
"rules": [
{
"hours_before_arrival": 48,
"type": "percent",
"value": 0
},
{
"hours_before_arrival": 0,
"type": "nights",
"value": 1
}
],
"no_show": {
"type": "percent",
"value": 100
}
}
}
],
"meta": {
"unavailable_reasons": []
}
}room_totalexcludes taxes;excluded_taxesare payable on top (at the hotel);grand_totalis the amount to send asexpected_totalwhen booking.- Cancellation rule
typeispercent,nightsorfixed;hours_before_arrivalis the start of the window the rule applies in.
Price a stay
/properties/{code}/quotescope: availabilityValidates and prices one or more rooms with full tax breakdown. Nothing is reserved. Use it immediately before booking to confirm the final price.
Body (JSON)
| check_in* | date | YYYY-MM-DD. |
| check_out* | date | After check_in. Maximum stay 30 nights. |
| rooms* | array, 1–10 | One entry per room. |
| rooms[].room_type_id* | integer | From the availability response. |
| rooms[].rate_plan_id* | integer | From the availability response. |
| rooms[].adults* | integer 1–20 | Adults in this room. |
| rooms[].child_ages | integer[] 0–17 | Ages of children in this room. |
| rooms[].guest_name | string ≤200 | Name of the main guest in this room. |
{
"check_in": "2026-12-10",
"check_out": "2026-12-12",
"rooms": [
{
"room_type_id": 31,
"rate_plan_id": 7,
"adults": 2
}
]
}{
"data": {
"property_id": 12,
"check_in": "2026-12-10",
"check_out": "2026-12-12",
"nights": 2,
"currency": "EUR",
"rooms": [
{
"room_type_id": 31,
"rate_plan_id": 7,
"adults": 2,
"children": 0,
"child_ages": [],
"guest_name": null,
"meal_plan": 3,
"nightly": [
{
"date": "2026-12-10",
"amount": "120.00"
},
{
"date": "2026-12-11",
"amount": "135.00"
}
],
"amount": "255.00",
"cancellation_policy": {
"id": 4,
"name": "Flexible",
"is_refundable": true,
"rules": [
{
"hours_before_arrival": 48,
"type": "percent",
"value": 0
},
{
"hours_before_arrival": 0,
"type": "nights",
"value": 1
}
],
"no_show": {
"type": "percent",
"value": 100
}
}
}
],
"room_total": "255.00",
"taxes": [
{
"name": "City tax",
"type": "per_person_night",
"included": false,
"amount": "10.00"
}
],
"excluded_taxes": "10.00",
"included_taxes": "0.00",
"grand_total": "265.00"
}
}Create a reservation
/properties/{code}/reservationsscope: bookBooks the stay. Inventory is locked atomically, so concurrent requests can never oversell. Partner bookings are always pay_at_hotel and confirmed immediately; the partner's commission rate is stamped on the reservation.
Body (JSON)
| check_in, check_out, rooms[]* | as in Price a stay | Same stay object as the quote request. |
| guest.first_name* | string ≤100 | Lead guest. |
| guest.last_name* | string ≤100 | |
| guest.email* | Confirmation emails are sent here. | |
| guest.phone | string ≤32 | |
| guest.country | ISO 3166-1 alpha-2 | Two letters, e.g. DE. |
| guest.marketing_opt_in | boolean | Only true with the guest's explicit consent. |
| special_requests | string ≤2000 | Free text for the hotel. |
| payment_method* | string | Send pay_at_hotel. Any other value is replaced server-side. |
| expected_total | decimal (2 dp) | The grand_total you showed the guest. If the price has changed, the request fails with 409 price_changed and nothing is booked. |
{
"check_in": "2026-12-10",
"check_out": "2026-12-12",
"rooms": [
{
"room_type_id": 31,
"rate_plan_id": 7,
"adults": 2
}
],
"guest": {
"first_name": "Mina",
"last_name": "Rahimi",
"email": "mina@example.com",
"phone": "+491701234567",
"country": "DE"
},
"special_requests": "Late arrival",
"payment_method": "pay_at_hotel",
"expected_total": "265.00"
}{
"data": {
"id": 5521,
"code": "HX7K2M9Q",
"status": "confirmed",
"source": "api:acme-travel",
"channel_reference": "ACME-88412",
"property": {
"id": 12,
"code": "HAM-HARBOUR",
"name": "Harbour Hotel"
},
"check_in": "2026-12-10",
"check_out": "2026-12-12",
"nights": 2,
"currency": "EUR",
"room_total": "255.00",
"taxes": [
{
"name": "City tax",
"type": "per_person_night",
"included": false,
"amount": "10.00"
}
],
"excluded_taxes": "10.00",
"included_taxes": "0.00",
"grand_total": "265.00",
"paid_amount": "0.00",
"payment_status": "unpaid",
"payment_method": "pay_at_hotel",
"cancellation_fee": "0.00",
"guest": {
"first_name": "Mina",
"last_name": "Rahimi",
"email": "mina@example.com",
"phone": "+491701234567",
"country": "DE"
},
"special_requests": "Late arrival",
"rooms": [
{
"room_type_id": 31,
"room_type": "Double room",
"rate_plan_id": 7,
"rate_plan": "Bed & breakfast",
"adults": 2,
"children": 0,
"child_ages": [],
"guest_name": null,
"meal_plan": 3,
"amount": "255.00",
"nightly": [
{
"date": "2026-12-10",
"amount": "120.00"
},
{
"date": "2026-12-11",
"amount": "135.00"
}
],
"cancellation_policy": {
"id": 4,
"name": "Flexible",
"is_refundable": true,
"rules": [
{
"hours_before_arrival": 48,
"type": "percent",
"value": 0
},
{
"hours_before_arrival": 0,
"type": "nights",
"value": 1
}
],
"no_show": {
"type": "percent",
"value": 100
}
}
}
],
"hold_expires_at": null,
"overbooked": false,
"confirmed_at": "2026-11-25T10:02:11+00:00",
"cancelled_at": null,
"created_at": "2026-11-25T10:02:11+00:00"
},
"payment": null
}- Send an
Idempotency-Keyheader (8–64 chars: letters, digits,_,-). Repeating a request with the same key returns the original reservation instead of booking twice. Keys are scoped to your partner account. codeis the reservation code used by the other endpoints. Store it alongside your own reference.
Get a reservation
/reservations/{reservationCode}scope: bookReturns a reservation created by your partner account. Reservations of other partners and direct bookings are never visible (404).
{
"data": {
"id": 5521,
"code": "HX7K2M9Q",
"status": "confirmed",
"source": "api:acme-travel",
"channel_reference": "ACME-88412",
"property": {
"id": 12,
"code": "HAM-HARBOUR",
"name": "Harbour Hotel"
},
"check_in": "2026-12-10",
"check_out": "2026-12-12",
"nights": 2,
"currency": "EUR",
"room_total": "255.00",
"taxes": [
{
"name": "City tax",
"type": "per_person_night",
"included": false,
"amount": "10.00"
}
],
"excluded_taxes": "10.00",
"included_taxes": "0.00",
"grand_total": "265.00",
"paid_amount": "0.00",
"payment_status": "unpaid",
"payment_method": "pay_at_hotel",
"cancellation_fee": "0.00",
"guest": {
"first_name": "Mina",
"last_name": "Rahimi",
"email": "mina@example.com",
"phone": "+491701234567",
"country": "DE"
},
"special_requests": "Late arrival",
"rooms": [
{
"room_type_id": 31,
"room_type": "Double room",
"rate_plan_id": 7,
"rate_plan": "Bed & breakfast",
"adults": 2,
"children": 0,
"child_ages": [],
"guest_name": null,
"meal_plan": 3,
"amount": "255.00",
"nightly": [
{
"date": "2026-12-10",
"amount": "120.00"
},
{
"date": "2026-12-11",
"amount": "135.00"
}
],
"cancellation_policy": {
"id": 4,
"name": "Flexible",
"is_refundable": true,
"rules": [
{
"hours_before_arrival": 48,
"type": "percent",
"value": 0
},
{
"hours_before_arrival": 0,
"type": "nights",
"value": 1
}
],
"no_show": {
"type": "percent",
"value": 100
}
}
}
],
"hold_expires_at": null,
"overbooked": false,
"confirmed_at": "2026-11-25T10:02:11+00:00",
"cancelled_at": null,
"created_at": "2026-11-25T10:02:11+00:00"
}
}Cancel a reservation
/reservations/{reservationCode}/cancelscope: bookCancels according to the cancellation policy frozen on the reservation at booking time and releases the inventory. The fee, if any, is returned in cancellation_fee.
{
"data": {
"id": 5521,
"code": "HX7K2M9Q",
"status": "cancelled",
"source": "api:acme-travel",
"channel_reference": "ACME-88412",
"property": {
"id": 12,
"code": "HAM-HARBOUR",
"name": "Harbour Hotel"
},
"check_in": "2026-12-10",
"check_out": "2026-12-12",
"nights": 2,
"currency": "EUR",
"room_total": "255.00",
"taxes": [
{
"name": "City tax",
"type": "per_person_night",
"included": false,
"amount": "10.00"
}
],
"excluded_taxes": "10.00",
"included_taxes": "0.00",
"grand_total": "265.00",
"paid_amount": "0.00",
"payment_status": "unpaid",
"payment_method": "pay_at_hotel",
"cancellation_fee": "120.00",
"guest": {
"first_name": "Mina",
"last_name": "Rahimi",
"email": "mina@example.com",
"phone": "+491701234567",
"country": "DE"
},
"special_requests": "Late arrival",
"rooms": [
{
"room_type_id": 31,
"room_type": "Double room",
"rate_plan_id": 7,
"rate_plan": "Bed & breakfast",
"adults": 2,
"children": 0,
"child_ages": [],
"guest_name": null,
"meal_plan": 3,
"amount": "255.00",
"nightly": [
{
"date": "2026-12-10",
"amount": "120.00"
},
{
"date": "2026-12-11",
"amount": "135.00"
}
],
"cancellation_policy": {
"id": 4,
"name": "Flexible",
"is_refundable": true,
"rules": [
{
"hours_before_arrival": 48,
"type": "percent",
"value": 0
},
{
"hours_before_arrival": 0,
"type": "nights",
"value": 1
}
],
"no_show": {
"type": "percent",
"value": 100
}
}
}
],
"hold_expires_at": null,
"overbooked": false,
"confirmed_at": "2026-11-25T10:02:11+00:00",
"cancelled_at": "2026-12-09T08:14:00+00:00",
"created_at": "2026-11-25T10:02:11+00:00"
},
"cancellation_fee": "120.00"
}- A reservation that is not in a cancellable state returns 409 (
not_cancellable).
Errors
Errors use standard HTTP status codes and a JSON body with a human-readable message. Business-rule failures add a machine-readable reason and a context object; validation errors add errors keyed by field.
Missing or wrong credentials, or the partner is disabled. Response carries WWW-Authenticate: Basic.
{
"message": "Authentication failed."
}The partner lacks the endpoint's scope, or the owning hotel account is not active.
{
"message": "Missing scope [book]."
}Unknown property or reservation, a property that is not assigned to the partner, or a reservation created by someone else.
{
"message": "Not Found"
}unavailableThe requested rooms are no longer available (sold out, minimum stay, closed to arrival…).
{
"message": "No availability for the selected dates.",
"reason": "unavailable",
"context": {}
}price_changedexpected_total no longer matches. context.quote holds the fresh quote (same shape as Price a stay); confirm with the guest and retry.
{
"message": "Price changed: expected 265.00, now 280.00.",
"reason": "price_changed",
"context": {
"quote": "{ …quote object… }"
}
}not_cancellableThe reservation cannot be cancelled in its current state.
{
"message": "Reservation in status [expired] cannot be cancelled.",
"reason": "not_cancellable",
"context": {}
}validationRequest body or query failed validation. errors lists each field.
{
"message": "The check out field must be a date after check in.",
"errors": {
"check_out": [
"The check out field must be a date after check in."
]
}
}invalid / restrictedA business rule rejected the request (e.g. unknown room type, occupancy exceeded).
{
"message": "Too many guests for this room type.",
"reason": "invalid",
"context": {}
}Rate limit exceeded: 600 requests per minute per partner and IP. Retry after the Retry-After header.
{
"message": "Too Many Attempts."
}OpenTravel XML API
OpenTravel Alliance 2003B messages over POST, namespace http://www.opentravel.org/OTA/2003/05, same Basic authentication and scopes as the JSON API. Identifiers are ours: HotelCode = property code, RoomTypeCode = room type code, RatePlanCode = rate plan code. Reservation IDs have ResID_Type/UniqueID@Type 14 (ours) and 13 (your reference). Echo your EchoToken back in every response.
Business errors come back with HTTP 200 and an <Errors> element instead of <Success/>; authentication failures return 401/403 with an OTA_ErrorRS.
OTA_HotelDescriptiveInfoRQ
/ota/2003B/OTA_HotelDescriptiveInfoRQscope: contentStatic content for one hotel: categories, amenities, guest rooms, policies, contact info and images.
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" EchoToken="a1">
<HotelDescriptiveInfos>
<HotelDescriptiveInfo HotelCode="HAM-HARBOUR"/>
</HotelDescriptiveInfos>
</OTA_HotelDescriptiveInfoRQ><?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelDescriptiveInfoRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2026-11-25T10:00:00+00:00" EchoToken="a1">
<Success/>
<HotelDescriptiveContents>
<HotelDescriptiveContent HotelCode="HAM-HARBOUR" HotelName="Harbour Hotel" CurrencyCode="EUR" TimeZone="Europe/Berlin">
<HotelInfo>
<CategoryCodes>
<HotelCategory Code="5" CodeDetail="Hotel"/>
<GuestRoomInfo Code="STARS" Quantity="4"/>
</CategoryCodes>
<Position Latitude="53.5452" Longitude="9.9690"/>
<Services><Service Code="47" CodeDetail="Free Wi-Fi" ExistsCode="1"/></Services>
</HotelInfo>
<FacilityInfo>
<GuestRooms>
<GuestRoom Code="DBL" RoomTypeName="Double room" MaxOccupancy="3" MaxAdultOccupancy="2" MaxChildOccupancy="1" Quantity="10">
<TypeRoom StandardOccupancy="2" Size="24" RoomClassificationCode="DBL"/>
</GuestRoom>
</GuestRooms>
</FacilityInfo>
<Policies><Policy><PolicyInfo CheckInTime="15:00" CheckOutTime="11:00"/></Policy></Policies>
</HotelDescriptiveContent>
</HotelDescriptiveContents>
</OTA_HotelDescriptiveInfoRS>OTA_HotelAvailRQ
/ota/2003B/OTA_HotelAvailRQscope: availabilityAvailability and prices. RoomStayCandidate@Quantity sets the number of rooms; GuestCount with AgeQualifyingCode 10 is an adult, 8 a child (with Age). Add RatePlanCandidate to filter by rate plan code.
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelAvailRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" EchoToken="a2">
<AvailRequestSegments>
<AvailRequestSegment>
<StayDateRange Start="2026-12-10" End="2026-12-12"/>
<RoomStayCandidates>
<RoomStayCandidate Quantity="1">
<GuestCounts>
<GuestCount AgeQualifyingCode="10" Count="2"/>
</GuestCounts>
</RoomStayCandidate>
</RoomStayCandidates>
<HotelSearchCriteria>
<Criterion><HotelRef HotelCode="HAM-HARBOUR"/></Criterion>
</HotelSearchCriteria>
</AvailRequestSegment>
</AvailRequestSegments>
</OTA_HotelAvailRQ><?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelAvailRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2026-11-25T10:00:00+00:00" EchoToken="a2">
<Success/>
<RoomStays>
<RoomStay>
<RoomTypes>
<RoomType RoomTypeCode="DBL" NumberOfUnits="1"><RoomDescription Name="Double room"/></RoomType>
</RoomTypes>
<RatePlans>
<RatePlan RatePlanCode="BB" RatePlanName="Bed & breakfast">
<MealsIncluded MealPlanCodes="3"/>
<CancelPenalties>
<CancelPenalty NonRefundable="false">
<Deadline OffsetTimeUnit="Hour" OffsetUnitMultiplier="48" OffsetDropTime="BeforeArrival"/>
<AmountPercent Percent="0"/>
</CancelPenalty>
</CancelPenalties>
</RatePlan>
</RatePlans>
<RoomRates>
<RoomRate RoomTypeCode="DBL" RatePlanCode="BB">
<Rates>
<Rate EffectiveDate="2026-12-10" ExpireDate="2026-12-10" RateTimeUnit="Day" UnitMultiplier="1">
<Base AmountBeforeTax="120.00" CurrencyCode="EUR"/>
</Rate>
<Rate EffectiveDate="2026-12-11" ExpireDate="2026-12-11" RateTimeUnit="Day" UnitMultiplier="1">
<Base AmountBeforeTax="135.00" CurrencyCode="EUR"/>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Start="2026-12-10" End="2026-12-12"/>
<Total AmountBeforeTax="255.00" AmountAfterTax="265.00" CurrencyCode="EUR">
<Taxes Amount="10.00" CurrencyCode="EUR">
<Tax Amount="10.00" CurrencyCode="EUR" Type="Exclusive"><TaxDescription><Text>City tax</Text></TaxDescription></Tax>
</Taxes>
</Total>
<BasicPropertyInfo HotelCode="HAM-HARBOUR" HotelName="Harbour Hotel"/>
</RoomStay>
</RoomStays>
</OTA_HotelAvailRS>OTA_HotelResRQ
/ota/2003B/OTA_HotelResRQscope: bookCreates a reservation. One RoomStay per room; all must share hotel and TimeSpan. Your own reference goes in UniqueID@ID (or HotelReservationID type 13) and doubles as the idempotency key. Total@AmountAfterTax per room is summed and checked against the current price (error 359 on mismatch).
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelResRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" EchoToken="a3">
<HotelReservations>
<HotelReservation>
<UniqueID Type="13" ID="ACME-88412"/>
<RoomStays>
<RoomStay>
<RoomTypes><RoomType RoomTypeCode="DBL"/></RoomTypes>
<RatePlans><RatePlan RatePlanCode="BB"/></RatePlans>
<GuestCounts><GuestCount AgeQualifyingCode="10" Count="2"/></GuestCounts>
<TimeSpan Start="2026-12-10" End="2026-12-12"/>
<Total AmountAfterTax="265.00" CurrencyCode="EUR"/>
<BasicPropertyInfo HotelCode="HAM-HARBOUR"/>
</RoomStay>
</RoomStays>
<ResGuests>
<ResGuest><Profiles><ProfileInfo><Profile><Customer>
<PersonName><GivenName>Mina</GivenName><Surname>Rahimi</Surname></PersonName>
<Telephone PhoneNumber="+491701234567"/>
<Email>mina@example.com</Email>
<Address><CountryName Code="DE"/></Address>
</Customer></Profile></ProfileInfo></Profiles></ResGuest>
</ResGuests>
<ResGlobalInfo>
<SpecialRequests><SpecialRequest><Text>Late arrival</Text></SpecialRequest></SpecialRequests>
</ResGlobalInfo>
</HotelReservation>
</HotelReservations>
</OTA_HotelResRQ><?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelResRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2026-11-25T10:02:11+00:00" EchoToken="a3" ResResponseType="Committed">
<Success/>
<HotelReservations>
<HotelReservation ResStatus="Confirmed">
<ResGlobalInfo>
<Total AmountBeforeTax="255.00" AmountAfterTax="265.00" CurrencyCode="EUR"/>
<HotelReservationIDs>
<HotelReservationID ResID_Type="14" ResID_Value="HX7K2M9Q" ResID_Source="Hostera"/>
<HotelReservationID ResID_Type="13" ResID_Value="ACME-88412"/>
</HotelReservationIDs>
</ResGlobalInfo>
</HotelReservation>
</HotelReservations>
</OTA_HotelResRS>OTA_ReadRQ
/ota/2003B/OTA_ReadRQscope: bookReads back a reservation by our code (ResID type 14). The response is the same OTA_HotelResRS as above; ResResponseType is Cancelled for cancelled reservations.
<?xml version="1.0" encoding="UTF-8"?>
<OTA_ReadRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" EchoToken="a4">
<ReadRequests>
<ReadRequest><UniqueID Type="14" ID="HX7K2M9Q"/></ReadRequest>
</ReadRequests>
</OTA_ReadRQ><!-- OTA_HotelResRS, identical in shape to the OTA_HotelResRQ response -->OTA_CancelRQ
/ota/2003B/OTA_CancelRQscope: bookCancels a reservation under its frozen cancellation policy. The fee is returned in CancelRule@Amount.
<?xml version="1.0" encoding="UTF-8"?>
<OTA_CancelRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" EchoToken="a5">
<UniqueID Type="14" ID="HX7K2M9Q"/>
</OTA_CancelRQ><?xml version="1.0" encoding="UTF-8"?>
<OTA_CancelRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2026-12-09T08:14:00+00:00" EchoToken="a5" Status="Cancelled">
<Success/>
<UniqueID Type="14" ID="HX7K2M9Q"/>
<CancelInfoRS>
<UniqueID Type="14" ID="HX7K2M9Q"/>
<CancelRules><CancelRule Amount="120.00" CurrencyCode="EUR"/></CancelRules>
</CancelInfoRS>
</OTA_CancelRS>OTA error codes
| Code | Meaning |
|---|---|
| 321 | Required field missing or malformed XML field (Type 10). |
| 322 | No availability for the requested stay. |
| 359 | Price changed since the availability response (AmountAfterTax mismatch). |
| 392 | Invalid or inaccessible HotelCode. |
| 450 | Invalid data (unknown RoomTypeCode / RatePlanCode, business-rule rejection). |
| 245 | Reservation not found. |
| 95 | Reservation already cancelled. |
| 448 | System error (Type 12). Safe to retry with the same reference. |
| 497 | Authorization error (invalid credentials; HTTP 401/403). |
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelResRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2026-11-25T10:02:11+00:00" EchoToken="a3">
<Errors>
<Error Type="3" Code="359" ShortText="Price changed: expected 265.00, now 280.00."/>
</Errors>
</OTA_HotelResRS>