Attention: Please check the Hotel Release Notes page for the latest updates and enhancements.
Create Reservation Reference Payload API Reference
POST |
book/reservations/build Base path: Pre-production https://api.pp.travelport.com/11/hotel/ Production https://api.travelport.com/11/hotel/ |
Related Content: Hotel Guide, Hotel Workflow Diagram, Hotel Availability API Reference
Use the Create Reservation reference payload request to book a room using a cached offer ID from the Availability response. The reference payload sends an offer ID plus traveler, form of payment, and payment information. It does not send full offer details as in the full payload request.
Travelport will attempt to sell the number of rooms requested, but the supplier may not be able to accommodate the total number of rooms. Each room sold will create a unique hotel segment in the Travelport PNR.
A Traveler name will be associated with each room with these limitations:
If the number of rooms requested is equal to the number of Traveler names in the request, each room will be associated with a different Traveler name
If the number of rooms requested is not equal to the number of Traveler names in the request, each room will be associated to the first Traveler name.
Request
Also see Authorization and Common Hotel API Headers.
Query Parameters
Travelport has introduced an automatic check of the rate used in the reservation request. If the guarantee type or price has changed from what was received in the availability response, Travelport will return an error instructing the user to decide to accept this change. If the user wants to accept the change, the relevant query parameter indicator (one or both) listed should be added and the CREATE/ADD request sent a second time.
Parameter | Description | Required/Optional |
---|---|---|
acceptPriceChangeInd |
Boolean: true indicates that the user accepts any difference in the total price received in availability versus what is the current price in the sell process; false denotes that the user does not accept a price difference and the sell process should not complete. Default is false. |
Optional |
acceptGuaranteeChangeInd |
Boolean: true indicates that the user accepts any difference in the guarantee type (guarantee required, deposit required, prepay required) received in availability versus what is the current guarantee type in the sell process; false denotes that the user does not accept a guarantee type difference and the sell process should not complete. Default is false. |
Optional |
Request Body
The tables in this section break down the Create Reservation request response into its top level objects to separate the information in each.
Object |
Description |
Required/Optional |
---|---|---|
ReservationQueryBuild |
Top level object for the request. Includes the ReservationBuild object. |
Required |
Offer object
Object |
Description |
Required/Optional |
---|---|---|
ReservationBuild |
Top level object for hotel sell request by offer ID. Includes the BuildFromCatalogOfferingHospitality, Traveler, FormOfPayment, Payment, ReservationComment, and TravelAgency objects. |
Required |
BuildFromCatalogOfferingHospitality |
Object signifying hospitality request. Top level object for offer identifiers from the Availability response. Includes CatalogOfferingIdentifier object. |
Required |
|
Number. Supports values 1-9 inclusive. Number of rooms requested at a single property. If not present, defaults to one room. |
Optional |
CatalogOfferingIdentifier |
Top level object for offer identifier. |
Required |
|
String. Send the offer identifier from the Availability response. |
Required |
Traveler object
Object |
Description |
Required/Optional |
---|---|---|
Traveler |
Traveler details. Includes PersonName, Telephone, Email, and CustomerLoyalty objects. |
Required |
PersonName |
Traveler details. Travelport+ limits the combination of Given and Surname to 22 characters. Given name must have at least one character. PersonName exceeding 22 characters is truncated in the response.
|
Required |
|
String. Traveler first name. |
Required |
|
String. Traveler last name. |
Required |
|
String. Salutation of honorific (e.g. Mr., Mrs., Ms., Miss, Dr.) |
Optional |
Telephone |
Traveler telephone details. |
Required |
|
String. Phone country code. |
Optional |
|
String. Phone number. |
Required |
|
String. Phone local area code. |
Required |
|
String. Phone city code. |
Optional |
|
Traveler email address. Booking.com and Expedia require a traveler email address in the Create Reservation and Add Reservation requests. Both systems send a confirmation email to the traveler moments after the booking completes.
|
Required for certain suppliers |
|
String. Traveler email address. |
Required |
CustomerLoyalty |
One frequent guest number and / or one frequent flyer number. |
Optional |
|
String. Two character hotel or air supplier code or brand code of the loyalty program. |
Required if object used. |
|
String. Number on loyalty card. |
Required if object used. |
|
String. “hotel” for designating frequent guest or “air” for designating frequent flyer. |
Required if object used. |
FormOfPayment object
Object |
Description |
Required/Optional |
---|---|---|
FormOfPayment |
Top level object for form of payment details. Includes PaymentCard. |
Required |
PaymentCard |
Form of payment details. Includes CardNumber, SeriesCode, Telephone, and Address objects. |
Required |
|
String. Credit card expiration date in MMYY format. |
Required |
|
String. Type of card including Credit, Debit, and Gift. |
Required |
|
String. Code for credit card type. |
Required |
|
String. Name on credit card. |
Required |
CardNumber |
Card number details. |
Required |
|
String. Credit card number. |
Required |
SeriesCode |
Security code of card. |
|
|
String. The credit card three- or four-digit CVV code. Booking.com and Expedia require the CVV code.
|
Required for certain suppliers. |
Telephone |
Telephone information associated with card. |
|
|
String. Phone country code. |
Optional |
|
String. Phone number. |
Optional |
|
String. Phone local area code. |
Optional |
|
String. Agency city code. |
Optional |
Address |
Billing address details. Includes Number, Street, AddressLine, City, StateProv, Country, and PostalCode objects. |
Optional |
Number |
Top level object for street number of billing address. |
Optional |
|
String. Street number value. |
Optional |
Street |
String. See name value. |
Optional |
AddressLine |
String. Address number and street name. |
Optional |
City |
String. The city of the billing address. |
Optional |
County |
String. The county of the billing address. |
Optional |
StateProv |
Top level state or province object. |
Optional |
|
String. State or province of billing address. |
Optional |
|
String. Full state or province name. |
Optional |
Country |
Country of billing address. |
Optional |
|
String. Standard two-letter coded value for country. |
Optional |
|
String. Custom user-assigned identifier for the country |
Optional |
|
String. Full country name. |
Optional |
|
String. Organization that provided the Id number. |
Optional |
PostalCode |
String. Postal code of billing address. |
Optional |
|
Billing email address. |
Optional |
|
String. Billing email address. |
Optional |
Optional objects - Payment, TravelAgency
Object |
Description |
Required/Optional |
---|---|---|
Payment |
Top level object for payment details. The payment object is used to explicitly denote the amount expected to be charged for the hotel reservation in this style:
Includes Amount object. |
Required |
|
String. Customer-assigned identifier for the payment. |
Optional |
|
String. Customer-assigned name for the payment. |
Optional |
|
Boolean (true/false). If set to true, user expects credit card to be charged to support deposit or prepay rate. |
Required |
|
Boolean (true/false). If set to true, user expects payment due at check in at the hotel. |
Required |
Amount |
Amount of payment. |
Required |
|
String. Currency code. |
Required |
|
String. Amount to pay. |
Required |
TravelAgency |
Optional top level object for travel agency information. Includes AgencyPCC and Telephone objects. |
Optional |
AgencyPCC |
Top level object. |
Optional |
|
String. Agency PCC code. |
Optional |
Telephone |
Top level object for agency telephone information. |
Optional |
|
String. Agency telephone number. |
Optional |
|
String. Agency phone local area code. |
Optional |
|
String. OTA code for how phone is used. (e.g. Home, Business, Emergency Contact, Travel Arranger, Day, Evening) |
Optional |
|
String. Agency city code. |
Optional |
Optional objects - Comment
Travelport Hotel Kit allows for the addition of these types of remarks on the Create/Add message:
-
Notepad remarks
-
General
-
Historical
-
Confidential
-
-
Unassociated remarks
-
Special Instruction remarks
-
Accounting remarks
Object |
Description |
Required/Optional |
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ReservationComment |
Optional top level object used for notepad, unassociated, and special instruction remarks. Includes Comment object. |
Optional |
||||||||||||||||
|
Originator of comment. Accepted value: Agency. |
Required |
||||||||||||||||
|
Designates visibility of remark.
Notepad remarks: Agency
Unassociated remarks: Traveler
Special instructions: Supplier |
Required |
||||||||||||||||
Comment |
Array of name/value pairs. |
Required |
||||||||||||||||
|
Type of remark.
Notepad remarks: 2 character code. Use asterisk for any placeholder. (HS, CR, R*, **)
Unassociated remarks: ITIN COMMENTS
Special instruction remarks: SI |
Required |
||||||||||||||||
|
String. Remark text. Limits:
Notepad remarks: 87 characters
Unassociated remarks: 70 characters
Special instruction remarks: 50 characters |
Required |
||||||||||||||||
Accounting |
Optional top level object used for all DOCI remarks. Includes NameValuePair object. |
Optional |
||||||||||||||||
|
Accounting remark designator. Accepted value: DOCI. |
Required |
||||||||||||||||
NameValuePair |
Array of name/value pairs. |
Required |
||||||||||||||||
|
Type of remark. Accepted values:
|
Required |
||||||||||||||||
|
String. Text to pair with name values above. Text limitations for each name value are listed below.
|
Required |
Response
The tables in this section break down the Create Reservation response into its top level objects to separate the information in each.
Top level objects
Object |
Description |
---|---|
ReservationResponse |
Top level object for the response. |
Reservation |
Top level object. Key value pair:
Includes Offer, Traveler, TravelerProduct, and Receipt objects. May include ReservationComment. |
Offer |
Top level object for offer details. Key value pair:
Includes Identifier object and, detailed in tables below, Product, Price, and TermsAndConditionsFull objects. May include DepositPolicy object. |
Identifier |
Defines which supplier system returned that specific room rate (offer). Key value pair:
|
Traveler |
Traveler details. See table below. Includes PersonName object. |
TravelerProduct |
Reference numbers to link travelers to a specific offer. See table below. |
Receipt |
Top level object for confirmation details. See table below. |
ReservationComment |
Top level for Comment objects if any comments were sent in the request. |
Comment |
Any comments about the reservation sent in the request. Key value pairs:
|
AppliesTo |
Top level object to designate which offer this comment applies to. Includes OfferRef object. |
OfferRef |
Reference number of specific offer. Always the letter "O" followed by a number. |
Offer/Product object
Object | Description |
---|---|
Product |
Array. One instance for each product, type ProductHospitality. Product is a common object in the model. Not all objects in this table may be returned in this specific API. Key value pairs:
Includes PropertyKey, PropertyAddress, RoomType, and DateRange objects. |
PropertyKey |
When ReferenceList is returned, PropertyKey includes the key value pairs:
|
PropertyAddress |
Top level property address object. |
Address |
Property address. Key value pairs:
Includes AddressLine, StateProv, and Country objects. |
AddressLine |
Text string for property street address. |
StateProv |
Property state or province. Key value pair:
|
Country |
Property country. Key value pairs:
|
RoomType |
Room type detail. Includes RoomCharacteristics, Description, and RoomAmenity objects. |
RoomCharacteristics |
Room details. Key value pairs:
Includes BedConfiguration object. |
BedConfiguration |
Configuration of bed(s) in room. Key value pairs:
|
Description |
A room description text string. Key value pairs:
|
RoomAmenity |
Room amenity name and description. Key value pairs:
|
RoomOccupancy |
Room occupancy value. Key value pair:
|
DateRange |
Check-in and -out dates. Key value pairs:
|
Offer/Price object
Object | Description |
---|---|
Price |
Price details for this offer or rate. Price is a common object in the model. Not all objects in this table may be returned in this specific API. Key value pairs:
Includes CurrencyCode and PriceBreakdown objects. |
CurrencyCode |
The currency code the amount is provided in. Key value pairs:
|
PriceBreakdown |
The information returned in PriceBreakdown can vary by provider and location. Key value pairs:
If roomPricingType = Per night,
If roomPricingType = Per stay,
|
NightlyRate |
Rate per night. Key value pairs:
Includes Amount object. If the nightly rate changes during the stay, multiple NightlyRate objects are returned.
|
Amount |
The rate amount. Key value pairs:
Includes CurrencyCode (see above), Taxes, and Fees objects. |
Taxes |
Tax details.
Includes Tax and TaxPercent objects. |
Tax |
Breakdown of the tax. Key value pairs:
|
TaxPercent |
Returned when the tax is expressed as a percentage of the amount. Key value pairs:
|
Fees |
Parent object which can include Fee by rate or by property. Travelport defines fees as any extra payment due at the property. Key value pair:
Includes Fee object. |
Fee |
Fee details. Key value pairs:
Includes FeeAmountOrPercent object. |
FeeAmountOrPercent |
Object defining the amount or percent charged as a fee. Key value pairs:
|
Commission |
Commission details. Key value pairs: When returned with type: CommissionPercent:
When returned with type: CommissionAmount
|
AverageNightlyRate |
The average nightly rate of the request. Key value pairs:
|
AmenitySurcharges |
Amenity surcharges detail. Includes Surcharge object. |
Surcharge |
Additional charges related to requested amenities. Key value pairs:
|
Offer/TermsAndConditionsFull object
Object |
Description |
---|---|
TermsAndConditionsFull |
Top level object for terms and conditions, instances of TermsAndConditionsFullHospitality. RatePaymentInfo: Postpay or Prepay designation. As returned from supplier, may include TextBlock, Guarantee, CancelPenalty, DepositPolicy, AcceptedCreditCard, Description, MealsIncluded, ProductRateCodeInfo, and CheckInOutPolicy objects. TermsAndConditionsFull is a common object in the model. Not all objects in this table may be returned in this specific API. |
TextBlock |
Array. Each instance is one rule or set of information. Key value pair:
Includes the TextFormatted object providing the rule or information itself. |
TextFormatted |
The rule or information itself. Key value pairs:
|
Guarantee |
Array. Indicates if the room rate requires a guarantee to be booked. Key value pair:
|
CancelPenalty |
Array. CancelPenalty breaks down any cancellation penalties for the rate. Key value pair:
Includes the Deadline and HotelPenalty objects. |
Deadline |
Cancellation penalty deadline details. Key value pair:
Includes SpecificDate object. |
SpecificDate |
Details on cancellation penalty. Key value pairs:
|
HotelPenalty |
Cancellation penalty amount. Attributes include: When returned with type: HotelPenaltyNights
When returned with type: HotelPenaltyPercent
When returned with type: HotelPenaltyAmount
|
DepositPolicy |
Deposit details related to this booking. Includes Deposit object. |
Deposit |
Deposit total in relation to TotalPrice. Key value pairs:
|
AcceptedCreditCard |
An array of accepted credit cards. Key value pair:
|
Description |
Free-form text for a room and rate description. This duplicates the room description in RoomType and the rate description in Price and will be removed in a future release. |
MealsIncluded |
The following meal attributes are returned and set to true if applicable:
|
ProductRateCodeInfo |
Top level object for rate code details. Includes RateCodeInfo. |
CheckInOutPolicy |
checkInTime: Local property check in time in 24 hour clock format. checkOutTime: Local property check out time in 24 hour clock format. |
RateCodeInfo |
Rate code information. Key value pairs:
|
Traveler object
Object |
Description |
---|---|
Traveler |
Traveler details. Key value pair:
Includes PersonName, Telephone, and Email. |
PersonName |
Key value pairs:
The combination of Given and Surname is limited to 22 characters. Given name must have at least one character. Any additional characters beyond the 22 limit are truncated.
|
Telephone |
Traveler telephone details. Key value pairs:
|
|
Traveler email address. Key value pair:
|
CustomerLoyalty |
One frequent guest number and / or one frequent flyer number. Key value pairs: programID: Two character hotel or air supplier code. value: Number on loyalty card. supplierType: “hotel” for Frequent Guest / “air” for Frequent Flyer |
TravelerProduct object
Object |
Description |
---|---|
TravelerProduct |
Top level object array that links a particular traveler to a particular hotel segment (offer). Each offer has a linked traveler. Key value pairs:
|
Receipt object
Object |
Description |
---|---|
Receipt |
Top level object. Includes OfferRef and Confirmation objects. |
OfferRef |
Reference number to link this set of receipt information to a specific offer. Always the letter “O” followed by a number. |
Confirmation |
Confirmation details. Includes Locator and OfferStatus objects. |
Locator |
Locator information for the reservation. Key value pairs:
|
OfferStatus |
Status of offer. Key value pair:
|
CurrencyRateConversion object
Object | Description |
---|---|
CurrencyRateConversion |
CurrencyRateConversion is returned only if requestedCurrency was sent in the request. By default the Hotel APIs return all rates in the currency of the hotel's location. If requestedCurrency was sent in the request, the response returns currency conversion information per below. Includes SourceCurrency, TargetCurrency, and ConversionRate objects. |
SourceCurrency |
The currency code based on the location of the hotel and used for all rates in the response. Key value pairs:
|
TargetCurrency |
Currency code sent in the request in requestedCurrency. Key value pairs:
|
ConversionRate |
Current conversion rate of the user-specified currency (the TargetCurrency value). Key value pair:
|
Example Request
The example below shows the reference payload to create a reservation using an offer ID from Hotel Availability.
{
"ReservationQueryBuild": {
"ReservationBuildFromCatalogOffering": {
"BuildFromCatalogOfferingHospitality": {
"numberOfRooms": "1",
"CatalogOfferingIdentifier": {
"@type": "CatalogOfferingIdentifier",
"Identifier": {
"value": "033e3299-c33d-4d64-bc87-a9c74fce81a2:37dbfb1b-151a-4ba8-a770-bc6de90b4bbd"
}
}
},
"Traveler": [
{
"@type": "Traveler",
"PersonName": {
"Given": "Bear",
"Surname": "Das",
"Title": "Mr"
},
"Telephone": [
{
"@type": "TelephoneDetail",
"countryAccessCode": "91",
"areaCityCode": "011",
"phoneNumber": "9891766469",
"cityCode": "DL"
}
],
"Email": [
{
"value": "matt.singh@galileo.co.in"
}
]
}
],
"ReservationComment": [
{
"@type": "ReservationComment",
"Comment": [
{
"value": "Please dont charge CC"
}
]
}
],
"FormOfPayment": [
{
"@type": "FormOfPaymentPaymentCard",
"PaymentCard": {
"@type": "PaymentCardDetail",
"expireDate": "0825",
"CardType": "Credit",
"CardCode": "VI",
"CardHolderName": "Frank Sinatra",
"CardNumber": {
"@type": "CardNumber",
"PlainText": "4444333322221111"
},
"SeriesCode": {
"@type": "SeriesCode",
"PlainText": "343"
},
"PersonName": {
"@type": "PersonNameDetail",
"Given": "Bill",
"Middle": "Example String Value",
"Surname": "Thisguy"
},
"Address": {
"@type": "AddressDetail",
"Number": {
"value": "125"
},
"Street": "Billing Address Street",
"AddressLine": [
"125 Billing Address Street"
],
"City": "Claremont",
"County": "Los Angeles",
"StateProv": {
"value": "CA",
"name": "Texas"
},
"Country": {
"value": "US",
"id": "country_4",
"name": "United States",
"codeContext": "Example String Value"
},
"PostalCode": "91711-3323"
},
"Telephone": [
{
"@type": "TelephoneDetail",
"countryAccessCode": "1",
"areaCityCode": "909",
"phoneNumber": "1231234",
"cityCode": "DEN"
}
],
"Email": [
{
"value": "smith@example.com"
}
]
}
}
],
"Payment": [
{
"@type": "Payment",
"Amount": {
"code": "USD",
"value": 68.44
}
}
]
}
}
}
Example Response
The request above returns the example response below. The Offer in the reservation response is populated with the cached offer from Hotel Availability. All responses are subject to what is received from the supplier.
{
"ReservationResponse": {
"Reservation": {
"@type": "ReservationDetail",
"id": "f1ecd79d-198c-4fe3-ae91-a9ca9cd10637",
"Offer": [
{
"@type": "Offer",
"Identifier": {
"authority": "TVPT"
},
"Product": [
{
"@type": "ProductHospitality",
"Quantity": 1,
"bookingCode": "A00BQ6",
"guests": 1,
"PropertyKey": {
"chainCode": "CN",
"propertyCode": "B6381"
},
"RoomType": {
"@type": "RoomTypeDetail",
"RoomCharacteristics": {
"GuaranteeTypeCode": "A00",
"smokingAllowed": "No",
"BedConfiguration": [
{
"quantity": 1,
"bedType": "king"
}
]
},
"Description": {
"value": "King Deluxe Room 42 Square Metre/WiFi/Minibar/Desk/Soaktub Separate Rain Shower/42 Inch HDTV/Media Hub"
},
"RoomAmenity": [
{
"description": "king",
"quantity": 1
}
]
},
"DateRange": {
"start": "2022-02-22",
"end": "2022-02-25"
}
}
],
"Price": {
"@type": "PriceDetail",
"CurrencyCode": {
"value": "USD",
"decimalPlace": 2
},
"TotalPrice": 150,
"TotalTaxes": 50,
"TotalFees": 30,
"Base": 100,
"PriceBreakdown": [
{
"@type": "PriceBreakdownHospitality",
"roomPricingType": "Per night",
"NightlyRate": [
{
"startDate": "2022-02-22",
"nights": 1,
"Amount": {
"CurrencyCode": {
"value": "USD"
},
"Base": 40,
"Total": 60,
"Taxes": {
"@type": "TaxesDetail",
"TotalTaxes": 20,
"Tax": [
{
"currencyCode": "USD",
"taxCode": "CITYTAX",
"Description": "Tax and Service fee",
"includedInBase": "No",
"value": 16
},
{
"currencyCode": "USD",
"taxCode": "VAT",
"Description": "VAT",
"includedInBase": "No",
"value": 4
}
]
}
}
},
{
"startDate": "2022-02-23",
"nights": 3,
"Amount": {
"CurrencyCode": {
"value": "USD"
},
"Base": 60,
"Total": 90,
"Taxes": {
"@type": "TaxesDetail",
"TotalTaxes": 30,
"Tax": [
{
"currencyCode": "USD",
"taxCode": "CITYTAX",
"Description": "Tax and Service fee",
"includedInBase": "No",
"value": 24
},
{
"currencyCode": "USD",
"taxCode": "VAT",
"Description": "VAT",
"includedInBase": "No",
"value": 6
}
]
}
}
},
{
"startDate": "2022-02-26",
"nights": 1,
"Amount": {
"CurrencyCode": {
"value": "USD"
},
"Base": 60,
"Total": 90,
"Taxes": {
"@type": "TaxesDetail",
"TotalTaxes": 30,
"Tax": [
{
"currencyCode": "USD",
"taxCode": "CITYTAX",
"Description": "Tax and Service fee",
"includedInBase": "No",
"value": 24
},
{
"currencyCode": "USD",
"taxCode": "VAT",
"Description": "VAT",
"includedInBase": "No",
"value": 6
}
]
}
}
}
],
"AverageNightlyRate": [
{
"code": "USD",
"value": 50,
"approximateInd": true
}
],
"AmenitySurcharges": {
"@type": "AmenitySurchargesDetail",
"Surcharge": [
{
"currencyCode": "USD",
"description": "Crib Surcharge",
"value": 0
},
{
"currencyCode": "USD",
"description": "Rollaway Surcharge",
"value": 25
}
]
}
},
{
"@type": "PriceBreakdownHospitality",
"roomPricingType": "Per stay",
"Amount": {
"CurrencyCode": {
"value": "USD"
},
"Base": 100,
"Total": 150,
"Taxes": {
"@type": "TaxesDetail",
"TotalTaxes": 50,
"Tax": [
{
"currencyCode": "USD",
"taxCode": "CITYTAX",
"Description": "Tax and Service fee",
"includedInBase": "No",
"value": 40
},
{
"currencyCode": "USD",
"taxCode": "VAT",
"Description": "VAT",
"includedInBase": "No",
"value": 10
}
]
},
"Fees": {
"@type": "FeesDetail",
"TotalFees": 30,
"Fee": [
{
"feeCode": "RESORT",
"feeApplication": "PerAccommodation",
"feeFrequency": "PerStay",
"FeeAmountOrPercent": {
"Amount": {
"code": "USD",
"value": 15
}
}
}
]
},
"Commission": {
"@type": "CommissionAmount ",
"application": "Non-paying "
},
"Description": "Standard Double or Twin Room - Free cancellation - Free WiFi"
}
}
]
},
"TermsAndConditionsFull": [
{
"@type": "TermsAndConditionsFullHospitality",
"Guarantee": [
{
"GuaranteeType": "DepositRequired",
"code": "CCD"
}
],
"CancelPenalty": [
{
"Deadline": {
"SpecificDate": {
"specific": "2022-02-19"
}
},
"Refundable": "Yes"
}
],
"Description": [
"Honors Prepay And Save",
"First Night Deposit Required. Free Changes/",
"Cancellations Up To 72 Hours Before Arrival.",
"King Deluxe Room",
"42 Square Metre/WiFi/Minibar/Desk/Soaktub",
"Separate Rain Shower/42 Inch HDTV/Media Hub"
],
"ProductRateCodeInfo": [
{
"RateCodeInfo": {
"value": "BQ6"
}
}
],
"DepositPolicy": {
"Deposit": [
{
"@type": "Deposit",
"remainderInd": false
}
]
}
}
]
}
],
"Traveler": [
{
"@type": "Traveler",
"id": "T1",
"PersonName": {
"@type": "PersonName",
"Given": "John",
"Surname": "Smith"
},
"Telephone": [
{
"countryAccessCode": "1",
"areaCityCode": "909",
"phoneNumber": "1231234",
"cityCode": "DEN"
}
],
"Email": [
{
"value": "smith@example.com"
}
]
}
],
"TravelerProduct": [
{
"@type": "TravelerProduct",
"TravelerRef": "T1",
"OfferRef": "O1"
}
],
"Receipt": [
{
"@type": "ReceiptConfirmation",
"Confirmation": {
"@type": "ConfirmationHold",
"confirmationStatus": {
"@type": "OfferStatusHospitality",
"Status": "Confirmed"
},
"Locator": {
"value": "0GQ9J0",
"locatorType": "PNR Locator",
"sourceContext": "Travelport"
},
"OfferStatus": {
"@type": "OfferStatusHospitality",
"Status": "Confirmed"
}
}
},
{
"@type": "ReceiptConfirmation",
"OfferRef": [
"O1"
],
"Confirmation": {
"@type": "ConfirmationHold",
"confirmationStatus": {
"@type": "OfferStatusHospitality",
"Status": "Confirmed"
},
"Locator": {
"value": "3186166041",
"locatorType": "Confirmation Number",
"source": "CN",
"sourceContext": "Supplier"
},
"OfferStatus": {
"@type": "OfferStatusHospitality",
"Status": "Confirmed"
}
}
}
]
}
}
}
Error Messages
Error messages for Hotel Create Reservation API.
SourceCode | StatusCode (HTTP code) | Message |
---|---|---|
|
405 |
Cannot find hotel offer with ID: xxx. Offer ID may be incorrect or offer has expired. Try performing availability again. |
SourceCode | StatusCode (HTTP code) | Message |
---|---|---|
|
400 |
Traveler Information cannot be empty. |
|
400 |
PersonName Cannot be Empty. |
|
400 |
First Name Cannot be Empty. |
|
400 |
Last Name Cannot be Empty. |
|
400 |
Traveler phone cannot be empty. |
|
400 |
Country Access Code must contain only numbers, spaces, dashes, or dots. |
|
400 |
Phone country code is invalid. |
|
400 |
Phone Number must contain only alpha chars , spaces, dashes, or dots |
|
400 |
Phone is invalid. |
|
400 |
Traveler email cannot be empty. |
|
400 |
Traveler email is invalid. |
|
400 |
Form of payment cannot be empty. |
|
400 |
UNSUCCESSFUL LINK SELL- MSG FROM LINK VENDOR INVALID FORM OF GUARANTEE * |
|
400 |
Card Expiration date cannot be empty. |
|
400 |
INVALID - CREDIT CARD |
|
400 |
Expiration month value must be less than 13. |
|
400 |
String index out of range: 4 |
|
400 |
Card Type cannot be empty. |
|
400 |
Card Code cannot be empty. |
|
400 |
Card Code cannot be greater than 2. |
|
400 |
UNSUCCESSFUL LINK SELL- MSG FROM LINK VENDOR INVALID FORM OF GUARANTEE * |
|
400 |
Card detail card holder name cannot be empty. |
|
400 |
Card Number cannot be empty. |
|
400 |
Card detail card series code cannot be empty. |
|
400 |
Card detail address cannot be empty. |
|
400 |
Card detail address line cannot be empty. |
|
400 |
Card detail city cannot be empty. |
|
400 |
State / province code is required. |
|
400 |
Card detail country cannot be empty. |
|
400 |
Address country code must be 2 characters. |
|
400 |
Address country code is invalid. |
|
400 |
Card detail postal code line cannot be empty. |
|
400 |
Form of payment phone cannot be empty. |
|
400 |
Country Access Code must contain only numbers, spaces, dashes, or dots |
|
400 |
Phone Number must contain only alpha chars , spaces, dashes, or dots |
|
400 |
Phone number must contain only digits. |