Ir al contenido

Folletos (getBrochureList)

El método getBrochureList devuelve los folletos que una sucursal tiene publicados para una categoría, con sus URLs de descarga, visualización e imagen, y los datos de la sucursal.


Parámetro Obligatorio Descripción
authenticationData Sí Credenciales (ver autenticación).
branchCode Sí Código de la sucursal, facilitado por Avoris.
categoryCode Sí Código de la categoría de folletos, facilitado por Avoris.

Code getBrochureList

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bar="http://barcelo.ws.barcelo.com/">
<soapenv:Header/>
<soapenv:Body>
<bar:getBrochureList>
<authenticationData>
<bar:user>USUARIO</bar:user>
<bar:password>CLAVE</bar:password>
<bar:locale>es_ES</bar:locale>
<bar:domain>barcelo</bar:domain>
</authenticationData>
<branchCode>SUC01</branchCode>
<categoryCode>3f2a9c10-7b4e-4d21</categoryCode>
</bar:getBrochureList>
</soapenv:Body>
</soapenv:Envelope>

Response getBrochureList (resumida)

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getBrochureListResponse xmlns:ns2="http://barcelo.ws.barcelo.com/">
<brochureListResponse>
<ns2:brochureList>
<ns2:productCode>FOLL-CARIBE-2027</ns2:productCode>
<ns2:productLongName>Caribe 2027</ns2:productLongName>
<ns2:order>1</ns2:order>
<ns2:priority>10</ns2:priority>
<ns2:publicationDate>2026-10-01T00:00:00+02:00</ns2:publicationDate>
<ns2:brochureUrl>https://www.example.com/folletos/caribe-2027.pdf</ns2:brochureUrl>
<ns2:brochureViewUrl>https://www.example.com/folletos/caribe-2027</ns2:brochureViewUrl>
<ns2:brochureImageUrl>https://www.example.com/folletos/caribe-2027.jpg</ns2:brochureImageUrl>
<ns2:description>Catálogo Caribe temporada 2027</ns2:description>
<ns2:visibilityType>PUBLIC</ns2:visibilityType>
</ns2:brochureList>
<ns2:branch>
<ns2:code>SUC01</ns2:code>
<ns2:longName>Sucursal Centro</ns2:longName>
<ns2:businessContact>reservas@example.com</ns2:businessContact>
</ns2:branch>
</brochureListResponse>
</ns2:getBrochureListResponse>
</soap:Body>
</soap:Envelope>

  • brochureList: un elemento por folleto, con los campos de un destacado de getOffersZones más brochureUrl (descarga), brochureViewUrl (visor), brochureImageUrl (portada), description, brochureTypeList y visibilityType (PUBLIC o PRIVATE).
  • branch: datos de la sucursal (code, shortName, longName, businessContact).

Esta operación devuelve un fault genérico. Si falla la autenticación, no llega un código WS-…: faultstring termina en LoginException: Invalid credentials, user not found or expired. Ver Códigos de error.