Mealplans
Query Overviewโ
The mealplans query returns a list of all the possible meal plans that a rate can have included in Inventory. The returned fields include:
codename
1. Criteriaโ
This query retrieves all available meal plans without requiring specific input parameters.
2. Settingsโ
The query does not require any mandatory input fields, as it retrieves all available meal plans in Inventory.
{
  "input": {}
}
Response Considerationsโ
The query returns a collection of meal plans along with success status and possible advise messages.
GetMealPlansRs (OBJECT)โ
mealPlans(InventoryMealPlan) - A collection of retrieved meal plans.code(Int) - Unique identifier for the meal plan.name(String) - Name of the meal plan.
success(Boolean) - Indicates whether the operation was successful.adviseMessages(AdviseMessage) - Messages related to the operation.code(ID) - AM code.type(String) - Error type.description(String) - Error description.level(Enum of AdviseMessageLevel) - Importance level (ERROR, WARN, INFO).external(ExternalMessage) - External message details.correlationID(ID) - Identifier for debugging.
Returned Fieldsโ
GetMealPlansRs (OBJECT)
Represents the response data for retrieving meal plans.
Represents the response data for retrieving meal plans.
adviseMessages(AdviseMessage)
Collection of advise messages. codeย  *ย  (ID) AM code: The following codes can be returned: descriptionย  *ย  (String) Error description levelย  *ย  (AdviseMessageLevel) Indicates the level of importance of the message.
Possible values: ERROR, WARN, INFO.
Possible values: Specify the external message. External code. messageย  *ย  (String) External message. correlationIDย  *ย  (ID) Identifier to investigate the cause of the error.WARN: Warning message.ERROR: Error message.INFO: Info message.external(ExternalMessage)
code(String)
mealPlans(InventoryMealPlan)
Collection of meal plans. codeย  *ย  (Int) Code of the meal plan. Name of the meal plan.name(String)
successย  *ย  (Boolean)
Indicates whether the response was successful based on the absence of advise messages.