GetMenu
This call is to retrieve a Menu object for the location.
Request Parameters
- MenuId
int— Specify the Id of the Menu you would like to retrieve
Response Parameters
-
Message
string— Returns a PAR POS Error message if the request did not go through. Otherwise, this field will be null. -
ResultCode
int— Returns one of the following:- 0 = Request went through successfully
- 1 = Request returned an unknown error
- 2 = Request was not valid
- 3 = Server is currently unavailable and unable to receive the request
- 4 = Access Denied
-
Menu
Menu— Menu with the MenuId you specified, if one is foundMenu Properties
-
Categories
Array of MenuCategory— Categories in this MenuMenuCategory Properties
-
Description
string— Description of this MenuCategory -
Id
int— Unique Id of this MenuCategory -
Items
Array of MenuItem— Items in this MenuCategoryMenuItem Properties
-
Description
string— Description of this MenuItem -
Id
int— Unique Id of this MenuItem -
ImageId
int— Id of the Image for this MenuItem -
ItemId
int— Maps to the Id of the Item for this MenuItem -
ItemOptions(Exposed Only in GetSettings)
Array of MenuItemOption— Item options for this MenuItemMenuItemOption Properties
- DisplayName
string— Display name of this MenuItemOption - Id
int— Unique Id of this MenuItemOption - ItemId
int— Maps to the Id of the Item for this MenuItemOption - SortOrderId(Exposed Only in GetSettings)
short— Sort order of this MenuItemOption within the parent MenuItem
- DisplayName
-
ModifierGroups(Exposed Only in GetSettings)
Array of MenuItemModifierGroup— Modifier groups for this MenuItemMenuItemModifierGroup Properties
- Id
int— Unique Id of this MenuItemModifierGroup - ModifierGroupId
int— Maps to the Id of the ModifierGroup for this MenuItemModifierGroup - SortOrderId(Exposed Only in GetSettings)
short— Sort order of this MenuItemModifierGroup within the parent MenuItem
- Id
-
ModifierMethod
byte— Modifier method for this MenuItem -
Name
string— Name of this MenuItem -
Price
decimal— Price of this MenuItem -
PriceMethod
byte— Price method for this MenuItem -
SortOrderId(Exposed Only in GetSettings)
short— Sort order of this MenuItem within the parent MenuCategory
-
-
Name
string— Name of this MenuCategory -
SortOrderId(Exposed Only in GetSettings)
int— Sort order of this MenuCategory within the parent Menu
-
-
Description
string— Description of this Menu -
Id
int— Unique Id of this Menu -
ImageId
int— Id of the Image for this Menu -
Name
string— Name of this Menu
-
- Type: stringS
O A P Action required
SOAP envelope for GetMenu request. No parameters required.
- text/xml; charset=utf-8
curl --request POST \
--url 'https://{server_name_goes_here}.parpos.com/Settings2.svc?GetMenu' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'AccessToken: your-access-token' \
--header 'LocationToken: your-location-token' \
--header 'SOAPAction: "http://www.brinksoftware.com/webservices/settings/v2/ISettingsWebService2/GetMenu"' \
--data '<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v2="http://www.brinksoftware.com/webservices/settings/v2">
<soapenv:Header/>
<soapenv:Body>
<v2:GetMenu/>
</soapenv:Body>
</soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<Settings2_GetMenuResponse xmlns="http://www.brinksoftware.com/webservices/settings/v2">
<Settings2_GetMenuResult>
<Message>Success</Message>
<ResultCode>0</ResultCode>
<Menu>
<Categories>
<MenuCategory>
<Description>Delicious burgers and sandwiches</Description>
<Id>1</Id>
<Items>
<MenuItem>
<Description>Classic beef burger</Description>
<ImageId>101</ImageId>
<ItemId>1001</ItemId>
<ItemOptions>
<MenuItemOption>
<DisplayName>Add Bacon</DisplayName>
<ItemId>2001</ItemId>
<SortOrderId>1</SortOrderId>
</MenuItemOption>
</ItemOptions>
<ModifierGroups>
<MenuItemModifierGroup>
<ModifierGroupId>10</ModifierGroupId>
<SortOrderId>1</SortOrderId>
</MenuItemModifierGroup>
</ModifierGroups>
<ModifierMethod>0</ModifierMethod>
<Name>Classic Burger</Name>
<Price>9.99</Price>
<PriceMethod>0</PriceMethod>
<SortOrderId>1</SortOrderId>
</MenuItem>
</Items>
<Name>Burgers</Name>
<SortOrderId>1</SortOrderId>
</MenuCategory>
</Categories>
<Description>Main Menu</Description>
<Id>1</Id>
<ImageId>0</ImageId>
<Name>Main Menu</Name>
</Menu>
</Settings2_GetMenuResult>
</Settings2_GetMenuResponse>
</s:Body>
</s:Envelope>