Skip to main content

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:

  • code
  • name

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.

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:

  • WARN: Warning message.
  • ERROR: Error message.
  • INFO: Info message.
external(ExternalMessage)

Specify the external message.

code(String)

External code.

messageย  *ย  (String)

External message.

correlationIDย  *ย  (ID)

Identifier to investigate the cause of the error.

mealPlans(InventoryMealPlan)

Collection of meal plans.

codeย  *ย  (Int)

Code of the meal plan.

name(String)

Name of the meal plan.

successย  *ย  (Boolean)

Indicates whether the response was successful based on the absence of advise messages.

Examplesโ€‹

Retrieve all Mealplansโ€‹