Listado de reservas (getBookingList)
El método getBookingList busca las reservas de la agencia y devuelve un resumen de cada una. Para el detalle completo de una reserva, usa getBooking.
Parámetros
Sección titulada «Parámetros»authenticationData y bookingSearchParams. Los hijos de bookingSearchParams van con el namespace del servicio.
| Campo | Tipo | Descripción |
|---|---|---|
bookingType |
BOOKING o BOOKING_QUOTE |
Tipo de documento a buscar. Infórmalo siempre: si se omite, se buscan presupuestos. |
bookingReference |
entero | Localizador. |
agencyReference |
texto | Referencia de la agencia. |
fromBookingDate / toBookingDate |
fecha-hora | Rango de fecha de reserva. |
fromArrivalDate / toArrivalDate |
fecha-hora | Rango de fecha de llegada. |
fromModifiedDate / toModifiedDate |
fecha-hora | Rango de fecha de última modificación. |
bookingStateList |
lista | Filtro por estado: IN_AGREEMENT, ON_REQUEST, ANNULLED, DENIED, ERROR. |
branchIDList |
lista | Códigos de sucursal. |
resultNumber |
entero | Número máximo de resultados. |
- Hace falta al menos un criterio: localizador, referencia de agencia o un rango de fechas.
- Cada rango necesita las dos fechas, la fecha desde no puede ser posterior a la fecha hasta y el rango no puede superar los 15 días.
- Se devuelven como máximo 500 resultados.
Ejemplo
Sección titulada «Ejemplo»Code getBookingList
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bar="http://barcelo.ws.barcelo.com/"> <soapenv:Header/> <soapenv:Body> <bar:getBookingList> <authenticationData> <bar:user>USUARIO</bar:user> <bar:password>CLAVE</bar:password> <bar:domain>barcelo</bar:domain> </authenticationData> <bookingSearchParams> <bar:bookingType>BOOKING</bar:bookingType> <bar:fromBookingDate>2026-10-01T00:00:00</bar:fromBookingDate> <bar:toBookingDate>2026-10-15T23:59:59</bar:toBookingDate> <bar:bookingStateList>IN_AGREEMENT</bar:bookingStateList> </bookingSearchParams> </bar:getBookingList> </soapenv:Body></soapenv:Envelope>Response getBookingList
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:getBookingListResponse xmlns:ns2="http://barcelo.ws.barcelo.com/"> <bookingList> <ns2:branch> <ns2:code>SUC01</ns2:code> <ns2:longName>Sucursal Centro</ns2:longName> </ns2:branch> <ns2:bookingReference>12345678</ns2:bookingReference> <ns2:agencyReferency>EXP-2026-0042</ns2:agencyReferency> <ns2:fromDate>2026-12-05T00:00:00+01:00</ns2:fromDate> <ns2:toDate>2026-12-12T00:00:00+01:00</ns2:toDate> <ns2:holder>ANA GARCIA LOPEZ</ns2:holder> <ns2:productName>Estancias en Cancún</ns2:productName> <ns2:availVoucher>true</ns2:availVoucher> <ns2:state>IN_AGREEMENT</ns2:state> <ns2:bookingDate>2026-10-02T10:15:00+02:00</ns2:bookingDate> <ns2:lastModifiedDate>2026-10-02T10:15:00+02:00</ns2:lastModifiedDate> <ns2:totalSalePrice>2450.00</ns2:totalSalePrice> <ns2:paymentMode>CREDIT</ns2:paymentMode> <ns2:completePaxData>false</ns2:completePaxData> <ns2:productType>PACKAGE</ns2:productType> <ns2:bookingId>4410923</ns2:bookingId> </bookingList> </ns2:getBookingListResponse> </soap:Body></soap:Envelope>Respuesta
Sección titulada «Respuesta»Una lista de bookingList, un elemento por reserva: bookingReference, bookingId, agencyReferency, branch, fromDate, toDate, holder, productName, productType, state, bookingDate, lastModifiedDate, totalSalePrice, paymentMode, receiptPendingAmount (solo en prepago), availVoucher y completePaxData.
Si no hay resultados, la operación responde con error WS-OPERATIONAL-1018.
Errores
Sección titulada «Errores»Esta operación devuelve un fault genérico: el código de error va al final de faultstring. Ver Códigos de error.