Skip to main content
Deprecated API

The Legacy Pull Buyers API, our initial Buyers API launched in 2012, is now deprecated and should not be further developed. Instead, we introduced the Hotel-X Buyers API in 2017, which serves as the sole API for new Buyers looking to integrate and participate in our Marketplace.

Valuation

Valuation operation evaluates the rate before reservation, providing the same information as the Avail response for a hotel rate, including up-to-date pricing. Additionally, it offers further details such as rate breakdown and cancellation policies. The returned fields include: Status, Price, CancelPenalities, Fees, PaymentOptions etc.

caution

The amount of information returned might vary between Sellers.

Valuation Request​

Suppliers with block allotment

There are some suppliers who use block allotments, sometimes called pre-confirmation or quote. In that case, you will have 30 minutes to complete the booking, if not, you will have to re-launch Valuation 30 minutes after the last request, normally just before booking request.

<soapenv:Envelope xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns = "http://schemas.xmltravelgate.com/hub/2012/06" xmlns:wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<soapenv:Header>
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password>password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ns:Valuation>
<ns:valuationRQ>
<ns:timeoutMilliseconds>20000</ns:timeoutMilliseconds>
<ns:version>1</ns:version>
<ns:providerRQ>
<ns:code>suppliercode</ns:code>
<ns:id>1</ns:id>
<ns:rqXML>
<ValuationRQ>
<timeoutMilliseconds>19700</timeoutMilliseconds>
<source>
<languageCode>en</languageCode>
</source>
<filterAuditData>
<registerTransactions>true</registerTransactions>
</filterAuditData>
<Configuration>
<User>user</User>
<Password>password</Password>
<UrlAvail>www.supplier.com/avail</UrlAvail>
<UrlReservation>www.supplier.com/reservation</UrlReservation>
<UrlValuation>www.supplier.com/valuation</UrlValuation>
<UrlGeneric>www.supplier.com/generic</UrlGeneric>
<Parameters>
<Parameter key = "UrlListHotels" value = "http://www.supplier.com/ListHotels"></Parameter>
<Parameter key = "Access" value = "22334"></Parameter>
</Parameters>
</Configuration>
<StartDate>04/07/2016</StartDate>
<EndDate>11/07/2016</EndDate>
<MealPlanCode>15</MealPlanCode>
<HotelCode>6259</HotelCode>
<PaymentType>MerchantPay</PaymentType>
<OptionType>Hotel</OptionType>
<OnRequest>false</OnRequest>
<BlockOption>false</BlockOption>
<Nationality>ES</Nationality>
<Parameters>
<Parameter key = "ID1" value = "ID#1#VR"/>
<Parameter key = "ID2" value = "ID#2#FGR#45187#10-5"/>
<Parameter key = "PSR" value = "511.28"/>
</Parameters>
<Rooms>
<Room id = "ITD10" roomCandidateRefId = "1" code = "TW" description = "Twinn"/>
<Room id = "IOG22" roomCandidateRefId = "2" code = "IND" description = "Individual"/>
</Rooms>
<RoomCandidates>
<RoomCandidate id = "1">
<Paxes>
<Pax age = "30" id = "1"/>
<Pax age = "30" id = "2"/>
</Paxes>
</RoomCandidate>
<RoomCandidate id = "2">
<Paxes>
<Pax age = "30" id = "1"/>
</Paxes>
</RoomCandidate>
</RoomCandidates>
</ValuationRQ>
</ns:rqXML>
</ns:providerRQ>
</ns:valuationRQ>
</ns:Valuation>
</soapenv:Body>
</soapenv:Envelope>

Request Data Breakdown​

info

Check the values you need to add in the header and common elements.

ElementRelTypeDescription
ValuationRQ1Root node.
ValuationRQ/StartDate1StringStart date of rate search.
ValuationRQ/EndDate1StringEnd date of rates search.
ValuationRQ/OnRequest1BooleanIndicates if you want to receive the on request options in AvailRS, as long as the supplier returns it in this method (see MetaData).
ValuationRQ/BlockOption1BooleanIndicates if you want to block the option selected in AvailRS, as long as the supplier allows it in this method (see MetaData).
ValuationRQ/MealPlanCode1StringMealPlan code.
ValuationRQ/HotelCode1StringHotel code.
ValuationRQ/PaymentType1String
Payment Types
Code Description
MerchantPay The payment is managed by the supplier.
LaterPay The payment is managed by the hotel. The customer will use a credit-card as a guarantee for the hotel and the payment will be completed at check in.
CardBookingPay The payment is managed by the supplier. The payment is effectuated at the time of booking.
CardCheckInPay The payment is managed by the supplier. The payment is effectuated at check in in the hotel.
ValuationRQ/OptionType1StringIndicates option types.
ValuationRQ/Nationality1StringGuest nationality (use ISO3166_1_alfa_2).
ValuationRQ/Rooms1Rooms in this option (room list).
Rooms/Room1..n
@id1StringRoom Identifier.
@roomCandidateRefId1IntegerRoom candidate Identifier.
@code1StringRoom code.
@description1StringRoom description.
ValuationRQ/RoomCandidates1..n
RoomCandidates/RoomCandidate1..nRoom required.
@id1IntegerId of requested room (starting at 1).
RoomCandidate/Paxes1..n
Paxes/Pax1..nPax required.
@age1IntegerPassenger age on the day of check-in.
@id1IntegerPassenger id (starting at 1).
ValuationRQ/Parameters0..1Additional parameters reported in AvailRS. If you receive parameters in AvailRS it is mandatory to send them exactly the same as received. If you don't send exactly the same parameters as received the Valuation could fail.
Parameters/Parameter0..nAdditional parameter requiring integration.
@key1StringContains keyword/Id to identify a parameter.
@value1StringContains parameter value.

Valuation Response​

After each request, the Seller will process the data and provide you with a response. Upon receiving a Valuation request, the Seller will send you a corresponding Valuation response.

The response options include either success or an error. In the event of success, the valuation response will provide you with updated information about the option you selected during the avail step.

Success​

<ValuationRS xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance">
<Parameters>
<Parameter key = "bd1" value = "43"/>
</Parameters>
<Status>OK</Status>
<Price currency = "EUR" amount = "106.20" binding = "false" commission = "-1" minimumSellingPrice="-1"/>
<CancelPenalties nonRefundable = "false">
<CancelPenalty>
<HoursBefore>72</HoursBefore>
<Deadline>2016-07-01T05:00:00Z</Deadline>
<CalculatedDeadline>false</CalculatedDeadline>
<Penalty type = "Importe" paymentType = "MerchantPay" currency = "EUR">25.00</Penalty>
</CancelPenalty>
<CancelPenalty>
<HoursBefore>48</HoursBefore>
<Deadline>2016-07-02T05:00:00Z</Deadline>
<CalculatedDeadline>false</CalculatedDeadline>
<Penalty type = "Importe" paymentType = "MerchantPay" currency = "EUR">72.40</Penalty>
</CancelPenalty>
</CancelPenalties>
<Fees>
<Fee includedPriceOption = "true" description = "TaxAndServiceFee" mandatory = "true" refundable = "false">
<Price currency = "EUR" amount = "8.11" binding = "false" commission = "-1" minimumSellingPrice="-1"/>
<Code>SPE</Code>
</Fee>
</Fees>
<Remarks/>
<PaymentOptions cash = "false" bankAcct = "false">
<Cards>
<Card code = "VI"/>
<Card code = "AX"/>
<Card code = "CA"/>
</Cards>
</PaymentOptions>
<CancelPoliciesDescription/>
</ValuationRS>

Success Response Data Breakdown​

ElementRelTypeDescription
ValuationRS1Root node.
ValuationRS/Parameters0..1Parameters for additional information.
Parameters/Parameter1..nList of parameters.
@key1StringContains the keyword/Id to identify a parameter.
@value1StringContains parameter value.
ValuationRS/Status1StringStatus option (OK = available, RQ = on request).
ValuationRS/Price1Total price of this valuation.
@currency1StringCurrency code (Our system uses a standard ISO - 3 for all suppliers).
@amount1DecimalOption Amount.
@binding1BooleanIf binding is set as true, then the client can’t sell the product for a lower price that the one set by the supplier. If it set as as false, the client can sell the product for a lower price.
@commission1Decimal
Commission Scenarios
Commission Description
0 The price returned is net.
-1 The supplier has not supplied the sale price nor the commission. This information is in the commercial contract with the supplier.
Greater than 0 X = % of the commission applied to the amount.
@minimumSellingPrice1DecimalIndicates the minimum selling price it can be sold (determined by the Seller). If is specified (different than "-1"), that field takes preference to amount.
Minimum Selling Price vaScenarioslues
Minimum Selling Price Description
0 No minimum selling price is provided.
-1 We have no information about MSP from the Seller.
Greater than 0 The lowest possible amount that can be sold commercially.
ValuationRS/CancelPenalties1Cancellation policy details.
@nonRefundable1BooleanIndicate if this option is refundable or not.
CancelPenalties/CancelPenalty0..nListing cancellation penalties.
CancelPenalty/HoursBefore1StringNumber of hours prior to checkin date in which this Cancellation policy applies .
CancelPenalty/Deadline1StringDate on UTC Standard TimeZone in which this Cancellation policy applies (ISO 8601 e.g: 2016-07-01T05:00:00Z). Cancellation fees will be applicabled between this date and check-in date.
CancelPenalty/CalculatedDeadline1BooleanIndicate if the Deadline is returned by the supplier or it's been calculated by Travelgate.If true, the deadline has been converted to UTC-0 by Travelgate. If False, the supplier returns the deadline on UTC-0, so no calculation is needed.
CancelPenalty/Penalty1Contains the value to be applied in net price.
@type1String
Types of penalties
Penalty Description
Noches Indicates the number of nights to be penalized.
Porcentaje Indicates the percentage to pay based on the option price.
Importe Indicates the exact amount payable.
@currency1StringCurrency code (Our system uses a standard ISO - 3 for all suppliers).
@paymentType1String
Payment Types
Code Description
MerchantPay The payment is managed by the supplier.
LaterPay The payment is managed by the hotel. The customer will use a credit-card as a guarantee for the hotel and the payment will be completed at check in.
CardBookingPay The payment is managed by the supplier. The payment is effectuated at the time of booking.
CardCheckInPay The payment is managed by the supplier. The payment is effectuated at check in in the hotel.
ValuationRS/Remarks0..1StringRemarks (see MetaData in order to verify if the supplier implements it).
ValuationRS/PaymentOptions0..1StringPayment Types allowed by the supplier. This tag is mandatory only if payment type is different than MerchantPay.
@cash1BooleanCash indicates whether payment will be made in cash (true) or by card (false).
@bankAcct1BooleanBankAcct specifies whether payment will be made via bank transfer (true) or not (false).
PaymentOptions/Cards0..1List of cards allowed.
Cards/Card1..n
@code1String
Credit Card codes
Code Name
VI Visa
AX American Express
BC BC Card
CA MasterCard
CB Carte Blanche
CU China Union Pay
DS Discover
DC Diners Club
T Carta Si
R Carte Bleue
N Dankort
L Delta
E Electron
JC Japan Credit Bureau
TO Maestro
S Switch
EC Electronic Cash
EU EuroCard
TP Universal air travel card
OP optima
ER Air Canada/RnRoute
XS access
O others
ValuationRS/Fees0..1Contains a list of fees.
Fees/Fee1..n
@includedPriceOption1BooleanIndicates if the fee is included or not in the final price (value indicated in the node Price in ValuationRS).
@description1StringRemarks regarding fee.
@mandatory1BooleanIf the fee is obligatory, depending on the includedPriceOption to know if it is paid at the time of booking or at the hotel. In case it is false, it could be a fee such as "cleaning" that the consumer could hire if he wanted.
@refundable1BooleanThis field will serve to know if the rate to be paid is returned, for example when it is a deposit type that is returned once the stay ends.
Fee/Code1StringSpecifies the fee code in case it has one.
Fee/Price1
@currency1StringCurrency code (Our system uses a standard ISO - 3 for all suppliers).
@amount1DecimalFee Amount.
@binding1BooleanIf binding is set as true, then the client can’t sell the product for a lower price that the one set by the supplier. If it set as as false, the client can sell the product for a lower price.
@commission1Decimal
Commission Scenarios
Commission Description
0 The price returned is net.
-1 The supplier has not supplied the sale price nor the commission. This information is in the commercial contract with the supplier.
Greater than 0 X = % of the commission applied to the amount.
@minimumSellingPrice1DecimalIndicates the minimum selling price it can be sold (determined by the Seller). If is specified (different than "-1"), that field takes preference to amount.
Minimum Selling Price Scenarios
Minimum Selling Price Description
0 No minimum selling price is provided.
-1 We have no information about MSP from the Seller.
Greater than 0 The lowest possible amount that can be sold commercially.
ValuationRS/CancelPoliciesDescription0..1StringContains the cancellation penalties in free text (see MetaData in order to verify if the supplier implements it).

Error​

<ValuationRS>
<operationImplemented>true</operationImplemented>
<applicationError>
<code/>
<type>204</type>
<description>Supplier returns 0 results in availability.</description>
<httpStatusCode>0</httpStatusCode>
</applicationError>
</ValuationRS>
Error types that will be included in the response in the event of an error
Error TypeError DescriptionComments
101System Exception.Exception not controlled or not classified as general exception.
102Provider Error.Seller returns a particular code/description for an error, which is then transmitted to you in our response.
103Too many requests to the supplier.Your account has surpassed the agreed-upon request limit with the Seller.
104Connection Timeout With Provider.The Seller's response time has exceeded the timeout set in the Buyer's request.
105Communication Error.The connection to the Seller has been refused (we haven't been able to connect to their system).
105Payload too high.The size of the response by the Seller surpasses the size limitation established on our side for optimal performance (20000 options or 15MB).
204No results found.Seller does not return any results for the specific availability criteria set in the Buyer's request (e.g. hotel, dates, market, etc.).
205Room Candidate Not Supported.The number of room candidates in your request exceeds the maximum set by the Seller.
206Dates Not Supported.Your availability request does not align with the Seller's date specifications.
207Request XML not accepted by Supplier.Your availability request does not align with the Seller's specifications.
301Option Not Found In Valuation.Seller fails to return the option previously chosen by the Buyer in Search response (the option is no longer available). This error can be encountered in Quote response and Book response (whenever the integration requires an additional Quote to the Seller).
302Hotel not found.Our system is unable to locate the hotel you requested in your Hotels (DescriptiveInfo) method
303Booking not confirmed.Seller hasn't been able to confirm a booking for some reason (is not very common and might be returned in reservation response).