Meal Types API
This method returns the meal and board type codes available for the Search API filter.
π Endpointβ
GET {BaseURL}/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 Search API Filters.MealType field. The returned BoardTypeID is numeric in the public response; the other board fields are strings.
{
"Filters": {
"MealType": "BB"
}
}