Meal Types API
This method is used to get the list of meal type codes available for hotel search filters.
π Endpointβ
GET https://mg.mescogo.com/gw/common/hotel/meal-types
| Property | Value |
|---|---|
| URI | BaseURL/common/hotel/meal-types |
| Method | GET |
| Content-Type | application/json |
π Authorizationβ
Basic Auth is required. Use the API credentials provided by MescoMg.
No request body is required.
π₯ Example Responseβ
{
"Status": {
"Code": "200",
"Description": "Successful"
},
"MealTypes": [
{
"Code": "BB",
"Name": "Bed & Breakfast",
"BoardTypeID": 2,
"BoardTypeCode": "BB",
"BoardTypeDescription": "Bed & Breakfast"
},
{
"Code": "FB",
"Name": "Full Board",
"BoardTypeID": 4,
"BoardTypeCode": "FB",
"BoardTypeDescription": "Full Board"
}
]
}
π‘ Usageβ
Use the Code value in the Filters.MealType field of the Search API.
{
"Filters": {
"MealType": "BB"
}
}