Reservation List
Reservation List allows to obtain a list of bookings that were made within a specific arrival date range or a specific booking date range. The returned fields for each booking in the list include: Locators
, Hotel
, TransactionStatus
, Holder
, Price
etc.
ReservationList 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:ReservationList>
<ns:reservationListRQ>
<ns:timeoutMilliseconds>20000</ns:timeoutMilliseconds>
<ns:version>1</ns:version>
<ns:providerRQ>
<ns:code>suppliercode</ns:code>
<ns:id>1</ns:id>
<ns:rqXML>
<ReservationListRQ>
<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>
<DateType>A</DateType>
<Start>28/11/2014</Start>
<End>28/11/2014</End>
</ReservationListRQ>
</ns:rqXML>
</ns:providerRQ>
</ns:reservationListRQ>
</ns:ReservationList>
</soapenv:Body>
</soapenv:Envelope>
Request Data Breakdown
Element | Rel | Type | Description |
---|---|---|---|
ReservationListRQ | 1 | Root node. | |
ReservationListRQ/DateType | 1 | String | Type search (A = arrival date, B = booking creation). |
ReservationListRQ/Start | 1 | String | Start date. |
ReservationListRQ/End | 1 | String | End date. |
ReservationList Response
After each request, you will process the data and provide a response. Upon receiving a ReservationList
request, you will send a corresponding ReservatonList
response.
The response options include either success or an error. In the event of success, you will send a booking list with all the details.
Success
<ReservationListRS>
<Reservations>
<Reservation>
<auditData>
<timeStamp>2014-01-21T15:12:12.0558866+00:00</timeStamp>
<processTimeMilliseconds>0</processTimeMilliseconds>
</auditData>
<operationImplemented>true</operationImplemented>
<Locators>
<Client>2196</Client>
<Provider>1AAAA966</Provider>
<Property>HCN8273</Property>
</Locators>
<Hotel>
<Name>LAS VEGAS (BENIDORM)</Name>
<Code>58475</Code>
<CreationDate>30/09/2013</CreationDate>
<StartDate>25/01/2014</StartDate>
<EndDate>16/02/2014</EndDate>
<Holder name = "name" surname = "surname"/>
<Price currency = "EUR" amount = "658.94" binding = "false" commission = "-1" minimumSellingPrice="-1"/>
<Rooms>
<Room id = "27441" roomCandidateRefId = "1" description = "Doble Standard"/>
</Rooms>
<CancelPenalties nonRefundable = "false">
<CancelPenalty>
<HoursBefore>72</HoursBefore>
<Deadline>2014-01-01T05:00:00Z</Deadline>
<CalculatedDeadline>false</CalculatedDeadline>
<Penalty type = "Importe" paymentType = "pagoMinorista" currency = "EUR">29.95</Penalty>
</CancelPenalty>
</CancelPenalties>
</Hotel>
<TransactionStatus>
<ComunicationStatus>OK</ComunicationStatus>
<RSStatus>EXISTE</RSStatus>
<ResStatus>OK</ResStatus>
</TransactionStatus>
</Reservation>
<Reservation>
<auditData>
<timeStamp>2014-01-21T15:12:12.6657414+00:00</timeStamp>
<processTimeMilliseconds>0</processTimeMilliseconds>
</auditData>
<operationImplemented>true</operationImplemented>
<Locators>
<Client>2578478</Client>
<Provider>10TTT31</Provider>
</Locators>
<Hotel>
<Name>LEO</Name>
<Code>10</Code>
<CreationDate>17/01/2014</CreationDate>
<StartDate>28/01/2014</StartDate>
<EndDate>29/01/2014</EndDate>
<Holder name = "name" surname = "surname"/>
<Price currency = "EUR" amount = "36.20" binding = "false" commission = "-1" minimumSellingPrice="-1"/>
<Rooms>
<Room id = "4582" roomCandidateRefId = "1" description = "Doble Standard.."/>
</Rooms>
<CancelPenalties nonRefundable = "false">
<CancelPenalty>
<HoursBefore>120</HoursBefore>
<Deadline>2014-01-01T05:00:00Z</Deadline>
<CalculatedDeadline>false</CalculatedDeadline>
<Penalty type = "Importe" paymentType = "pagoMinorista" currency = "EUR">72.40</Penalty>
</CancelPenalty>
</CancelPenalties>
</Hotel>
<TransactionStatus>
<ComunicationStatus>OK</ComunicationStatus>
<RSStatus>EXISTE</RSStatus>
<ResStatus>OK</ResStatus>
</TransactionStatus>
</Reservation>
</Reservations>
</ReservationListRS>
Success Response Data Breakdown
Element | Rel | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ReservationListRS | 1 | Root node. | |||||||||||
ReservationListRS/Reservations | 0..1 | Reservations. | |||||||||||
Reservations/Reservation | 1 | ||||||||||||
Reservation/Locators | 1 | Information about the locators. | |||||||||||
Locators/Client | 0..1 | String | Client locator. | ||||||||||
Locators/Provider | 0..1 | String | Supplier locator. | ||||||||||
Locators/Property | 0..1 | String | Property locator(see MetaData method in order to verify if the supplier implements it). | ||||||||||
ReservationReadRS/Hotel | 0..1 | Hotel reservation. | |||||||||||
Hotel/Code | 0..1 | String | Hotel Code. | ||||||||||
Hotel/Name | 0..1 | String | Hotel Name. | ||||||||||
Hotel/City | 0..1 | String | Hotel city. | ||||||||||
Hotel/CreationDate | 0..1 | String | Date of booking. | ||||||||||
Hotel/StartDate | 0..1 | String | Check-in date. | ||||||||||
Hotel/EndDate | 0..1 | String | Check out date. | ||||||||||
Hotel/MealPlanCode | 0..1 | String | Booking Mealplan code. | ||||||||||
Hotel/Holder | 0..1 | Reservation Holder . | |||||||||||
@name | 1 | String | Holder name. | ||||||||||
@surname | 1 | String | Holder surname. | ||||||||||
Hotel/Price | 1 | Price of the reservation. | |||||||||||
@currency | 1 | String | Currency code (Our system uses a standard ISO - 3 for all suppliers). | ||||||||||
@amount | 1 | Decimal | Total amount for the booking. | ||||||||||
@binding | 1 | Boolean | If 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. | ||||||||||
@commission | 1 | Decimal | Commission Scenarios
| ||||||||||
@minimumSellingPrice | 1 | Decimal | Indicates 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
| ||||||||||
Hotel/Rooms | 0..1 | List of rooms reserved | |||||||||||
Rooms/Room | 1..n | Details of room reserved. | |||||||||||
@id | 0..1 | String | Identifier of the room. | ||||||||||
@roomCandidateRefId | 0..1 | Integer | Identifier of room candidate. | ||||||||||
@code | 0..1 | String | Room code. | ||||||||||
@description | 0..1 | String | Room description. | ||||||||||
Hotel/RoomCandidates | 0..1 | Rooms requested at the time of booking. | |||||||||||
RoomCandidates/RoomCandidate | 1..n | Room required. | |||||||||||
@id | 0..1 | Integer | Id of the requested room (starting at 1). | ||||||||||
RoomCandidate/Paxes | 1..n | Pax required. | |||||||||||
Paxes/Pax | 1..n | Pax required. | |||||||||||
@age | 0..1 | Integer | Passenger age on the day of check-in. | ||||||||||
@id | 0..1 | Integer | Id of the requested room (starting at 1). | ||||||||||
Hotel/CancelPenalties | 0..1 | Information of cancellation policies. | |||||||||||
@nonRefundable | 1 | Boolean | Indicate if this option is nonRefundable (true or false). | ||||||||||
CancelPenalties/CancelPenalty | 0..n | Listing of cancellation penalties. | |||||||||||
CancelPenalty/HoursBefore | 1 | String | Number of hours prior to arrival day in which this Cancellation policy applies. | ||||||||||
CancelPenalty/Deadline | 1 | String | Date on UTC Standard TimeZone in which this Cancellation policy applies (ISO 8601 e.g: 2016-07-01T05:00:00Z) | ||||||||||
CancelPenalty/CalculatedDeadline | 1 | Boolean | Indicate 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/Penalty | 1 | Contains the value to be applied in net price. | |||||||||||
@type | 1 | String | Types of penalties
| ||||||||||
@paymentType | 1 | String | Indicates payment type. | ||||||||||
@currency | 1 | String | Currency code (Our system uses a standard ISO - 3 for all suppliers). | ||||||||||
Hotel/Remarks | 0..1 | String | Remarks. | ||||||||||
ReservationReadRS/TransactionStatus | 1 | Status. | |||||||||||
TransactionStatus/ComunicationStatus | 1 | String | Status communication (OFFLINE, OK and KO). | ||||||||||
TransactionStatus/RSStatus | 1 | String | Response Status
| ||||||||||
TransactionStatus/ResStatus | 1 | String | Reservation Status
|
Error
<ReservationListRS>
<operationImplemented>true</operationImplemented>
<applicationError>
<code/>
<type>105</type>
<description>Communication Error.</description>
<httpStatusCode>0</httpStatusCode>
</applicationError>
</ReservationListRS>
Error types that you will need to include in the response in the event of an error
Error Type | Error Description | Comments |
---|---|---|
101 | System Exception. | Exception not controlled or not classified as general exception. |
102 | Provider Error. | You return a particular code/description for an error, which is then transmitted to the Buyer in our response. |
103 | Too many requests to the supplier. | Your Buyer has surpassed the agreed-upon request limit with you. |
104 | Connection Timeout With Provider. | Your response time has exceeded the timeout set in the Buyer's request. |
105 | Communication Error. | The connection with your system has been refused. |
105 | Payload too high. | The size of your response surpasses the size limitation established on our side for optimal performance (20000 options or 15MB). |
204 | No results found. | You don't return any results for the specific availability criteria set in the Buyer's request (e.g. hotel, dates, market, etc.). |
205 | Room Candidate Not Supported. | The number of room candidates in Buyer's request exceeds the maximum set by you. |
206 | Dates Not Supported. | Buyer availability request does not align with your date specifications. |
207 | Request XML not accepted by Supplier. | Buyer availability request does not align with your specifications. |
301 | Option Not Found In Valuation. | You fail 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). |
302 | Hotel not found. | Our system is unable to locate the hotel the Buyer requested in your Hotels (DescriptiveInfo) method. |
303 | Booking not confirmed. | You haven't been able to confirm a booking for some reason (is not very common and might be returned in reservation response). |