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.

Meal Plan List

The Meal Plan List method returns a comprehensive meal plans list from a supplier's access that may include translations to other languages, granting you access to all the meal plans configured by the Seller for a given set of credentials. The returned fields include: MealPlan code, MealPlan name etc.

caution

The amount of information and content returned might vary between Sellers.

MealPlanList 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:MealPlanList>
<ns:mealPlanListRQ>
<ns:timeoutMilliseconds>20000</ns:timeoutMilliseconds>
<ns:version>1</ns:version>
<ns:providerRQ>
<ns:code>suppliercode</ns:code>
<ns:id>1</ns:id>
<ns:rqXML>
<MealPlanListRQ xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd = "http://www.w3.org/2001/XMLSchema">
<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>
</MealPlanListRQ>
</ns:rqXML>
</ns:providerRQ>
</ns:mealPlanListRQ>
</ns:MealPlanList>
</soapenv:Body>
</soapenv:Envelope>

Request Data Breakdown

info

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

MealPlanList request does not require any elements.

MealPlanList Response

The response to the previous request is a list of mealplans from our database that corresponds to the supplier specified in the request.

note

If the supplier has over 100 meal plan codes or more than 20 codes for a single meal plan, the mapping for these codes will depend on the supplier.

<MealPlanListRS>
<UpgradeUTCDate>2023-10-18T13:18:03+02:00</UpgradeUTCDate>
<MealPlans>
<MealPlan>
<Code>BB</Code>
<Name>Bed and breakfast</Name>
</MealPlan>
<MealPlan>
<Code>HB</Code>
<Name>Half board</Name>
</MealPlan>
</MealPlans>
</MealPlanListRS>

Response Data Breakdown

ElementRelTypeDescription
MealPlanListRS/UpgradeUTCDate1DateTimeIndicates the update date of the information in UTC format.
MealPlanListRS/MealPlans1Root node, list of mealplans.
MealPlans/MealPlan1..n
MealPlan/Code1StringMealplan code
MealPlan/Name1StringMealplan name