Menu Get Menu by passing required parameter.
Key | Value |
---|---|
URL For Get All Menu | https://api.ovvihq.com/OnlineOrder/GetMenu |
APIKey | Provided by OVVI |
ItemNumber | Invetory/Item Number/ID Note: Pass ItemNumber if you get menu by ItemNumber |
- public string GetMenu()
- {
- get
- {
- string strResult = string.Empty;
- try
- {
- HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api.ovvihq.com/OnlineOrder/GetMenu");
- request.ContentType = "application/json";
- request.Method = "GET";
- request.Headers.Add("APIKey", "Provided by OVVI");
- request.Headers.Add("ItemNumber", "Item Number");
- // Set some reasonable limits on resources used by this request
- request.ContentLength = 0;
- // Set credentials to use for this request.
- request.Credentials = CredentialCache.DefaultCredentials;
- HttpWebResponse response = (HttpWebResponse)request.GetResponse();
- // Get the stream associated with the response.
- Stream receiveStream = response.GetResponseStream();
- // Pipes the stream to a higher level stream reader with the required encoding format.
- StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
- strResult = readStream.ReadToEnd().ToString();
- response.Close();
- readStream.Close();
- return strResult;
- }
- catch (Exception ex)
- {
- strResult = Convert.ToString(ex.Message);
- return strResult;
- }
- }
- }
- <? xml Version = "1.0" encoding = "UTF-8" ?>
- <MenuImport>
- <Department>
- <DepartmentName> 5BOX </DepartmentName>
- <DepartmentId> CHKN </DepartmentId>
- <Item>
- <Name> 10PC WHT </Name>
- <Id> CHKN_0000000001 </Id>
- <Price> 16.9900 </Price>
- <ModifierGroup>
- <Name> Spicy, Original, Mixed? </Name>
- <Id> SPECIAL_000018 </Id>
- <MinQty> 1 </MinQty>
- <MaxQty> 1 </MaxQty>
- <ModifierItem>
- <Name> Spicy </Name>
- <Id> CHKN_0000000060 </Id>
- <Price> 2.00 </Price>
- </ModifierItem>
- </ModifierGroup>
- </Item>
- <Item>
- <Name> Box (6) </Name>
- <Id> CHOCOLAT_000021 </Id> <Price> 14.400 </Price>
- <Type> Combo </Type>
- <SubItem>
- <Name> Chocolate </Name>
- <Id> CHOCOLAT_000001 </Id>
- <Price> 2.30 </Price>
- </SubItem>
- </Item>
- </Department>
- <Department>
- <DepartmentName> Pizza </DepartmentName>
- <DepartmentId> Pizza </DepartmentId>
- <PizzaItem>
- <Sizes>
- <Size>
- <Name> 8" </Name>
- <Id> PIZZA_000000001 </Id>
- <ExtraName> Mini </ExtraName>
- </Size>
- <Size>
- <Name> 12" </Name>
- <Id> PIZZA_000000002 </Id>
- <ExtraName> Medium </ExtraName>
- </Size>
- <Size>
- <Name> 16" </Name>
- <Id> PIZZA_000000003 </Id>
- <ExtraName> Large </ExtraName>
- </Size>
- <Size>
- <Name> 19" </Name>
- <Id> PIZZA_000000004 </Id>
- <ExtraName> Big Boss </ExtraName>
- </Size>
- </Sizes>
- <Sauces>
- <Sauce>
- <Name> RED </Name>
- <Id> PIZZA_000000007 </Id>
- <ExtraName> </ExtraName>
- </Sauce>
- <Sauce>
- <Name> No Sauce </Name>
- <Id> PIZZA_000000008 </Id>
- <ExtraName> </ExtraName>
- </Sauce>
- <Sauce>
- <Name> Extra Sauce </Name>
- <Id> PIZZA_000000009 </Id>
- <ExtraName> </ExtraName>
- </Sauce>
- <Sauce>
- <Name> Light Sauce </Name>
- <Id> PIZZA_000000010 </Id>
- <ExtraName> </ExtraName>
- </Sauce>
- <Sauce>
- <Name> SPECIAL WHITE </Name>
- <Id> PIZZA_000000012 </Id>
- <ExtraName> </ExtraName>
- </Sauce>
- <Sauce>
- <Name> NACHO CHZ SAUCE </Name>
- <Id> PIZZA_000000013 </Id>
- <ExtraName> </ExtraName>
- </Sauce>
- </Sauces>
- <Crusts>
- <Crust>
- <Name> THIN </Name>
- <Id> PIZZA_000000005 </Id>
- <ExtraName> THIN </ExtraName>
- </Crust>
- <Crust>
- <Name> HAND ROLLED </Name>
- <Id> PIZZA_000000006 </Id>
- <ExtraName> HAND ROLLED </ExtraName>
- </Crust>
- </Crusts>
- <Toppings>
- <Topping>
- <Name> BACON </Name>
- <Id> PIZZA_000000019 </Id>
- <ExtraName> </ExtraName>
- <PriceMatrix>
- <Topping> ONION </Topping>
- <Size> PIZZA_000000001 </Size>
- <Price> 0.5 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> ONION </Topping>
- <Size> PIZZA_000000002 </Size>
- <Price> 0.5 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> ONION </Topping>
- <Size> PIZZA_000000003 </Size>
- <Price> 1 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> ONION </Topping>
- <Size> PIZZA_000000004 </Size>
- <Price> 1 </Price>
- </PriceMatrix>
- </Topping>
- </Toppings>
- <Item>
- <ItemName> THE BIG 'O' PIZZA </ItemName>
- <Id> PIZZA_000000040 </Id>
- <DefaultSize>
- <Name> 12" </Name>
- <Id> PIZZA_000000002 </Id>
- <Region> Entire Pizza </Region>
- </DefaultSize>
- <DefaultSize>
- <Name> HAND ROLLED </Name>
- <Id> PIZZA_000000006 </Id>
- <Region> Entire Pizza </Region>
- </DefaultSize>
- <DefaultSauce>
- <Name> RED </Name>
- <Id> PIZZA_000000007 </Id>
- <Region> Entire Pizza </Region>
- </DefaultSauce>
- <CrustBasedPrice>
- <PriceMatrix>
- <Crust> THIN </Crust>
- <Size> PIZZA_000000001 </Size>
- <Price> 6.9500 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Crust> THIN </Crust>
- <Size> PIZZA_000000002 </Size>
- <Price> 14.9500 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Crust> THIN </Crust>
- <Size> PIZZA_000000003 </Size>
- <Price> 21.9500 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Crust> THIN </Crust>
- <Size> PIZZA_000000004 </Size>
- <Price> 26.9500 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Crust> HANDROLLED </Crust>
- <Size> PIZZA_000000001 </Size>
- <Price> 6.9500 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Crust> HANDROLLED </Crust>
- <Size> PIZZA_000000002 </Size>
- <Price> 14.9500 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Crust> HANDROLLED </Crust>
- <Size> PIZZA_000000003 </Size>
- <Price> 21.9500 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Crust> HANDROLLED </Crust>
- <Size> PIZZA_000000004 </Size>
- <Price> 26.9500 </Price>
- </PriceMatrix>
- </CrustBasedPrice>
- </Item>
- </PizzaItem>
- <PizzaItem>
- <Item>
- <ItemName> BYO PIZZA </ItemName>
- <Id> PIZZA_000000041 </Id>
- <DefaultSize>
- <Name> 12" </Name>
- <Id> PIZZA_000000002 </Id>
- <Region> Entire Pizza </Region>
- </DefaultSize>
- <DefaultCrust>
- <Name> HAND ROLLED </Name>
- <Id> PIZZA_000000006 </Id>
- <Region> Entire Pizza </Region>
- </DefaultCrust>
- <DefaultSauce>
- <Name> RED </Name>
- <Id> PIZZA_000000007 </Id>
- <Region> Entire Pizza </Region>
- </DefaultSauce>
- <ToppingBasedPrice>
- <PriceMatrix>
- <Topping> Baseprice </Topping>
- <Size> PIZZA_000000001 </Size>
- <Price> 1.00 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> Baseprice </Topping>
- <Size> PIZZA_000000002 </Size>
- <Price> 2.00 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> Baseprice </Topping>
- <Size> PIZZA_000000003 </Size>
- <Price> 3.00 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> Baseprice </Topping>
- <Size> PIZZA_000000004 </Size>
- <Price> 4.00 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> Topping1 </Topping>
- <Size> PIZZA_000000001 </Size>
- <Price> 2.00 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> Topping1 </Topping>
- <Size> PIZZA_000000002 </Size>
- <Price> 3.00 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> Topping1 </Topping>
- <Size> PIZZA_000000003 </Size>
- <Price> 4.00 </Price>
- </PriceMatrix>
- <PriceMatrix>
- <Topping> Topping1 </Topping>
- <Size> PIZZA_000000004 </Size>
- <Price> 5.00 </Price>
- </PriceMatrix>
- </ToppingBasedPrice>
- </Item>
- </PizzaItem>
- </Department>
- </MenuImport>
Xml Node | Description |
---|---|
Department | |
Name | Department Name. |
Id | Department Id. |
Item | |
Name | Item name. |
Id | Unique Id of the Item. |
Price | Item Price. |
Sales Tax | Sales Tax in Percentage. |
Tax 2 | Tax 2 in Percentage if applicable. |
Tax 3 | Tax 3 in Percentage if applicable. |
Type | It contains Item type for example - Standard, Combo, Choice, and Pizza. |
SubItem | |
Name | Sub item name. |
Id | Unique Id of Sub Item. |
Price | Sub Item price. |
Sales Tax | Sales Tax in Percentage. |
Tax 2 | Tax 2 in Percentage if applicable. |
Tax 3 | Tax 3 in Percentage if applicable. |
ModifierGroup | |
Name | Name of the modifier group. |
Id | Unique Id of Modifier Group. |
Price | Price of Modifier Group. |
MinQty | Specifies the minimum quantity required from Modifier. |
MaxQty | Specifies the maximum quantity to be added. |
ModifierItem | |
Name | Modifier Item name. |
Id | Unique Id of Modifier Item. |
Price | Price of modifier item. |
Sales Tax | Sales Tax in Percentage. |
Tax 2 | Tax 2 in Percentage if applicable. |
Tax 3 | Tax 3 in Percentage if applicable. |
PizzaItem | |
Department | |
Name | Department Name. |
Id | Department Id. |
List of Sizes | |
Name | Size name. |
Id | Unique Id of the Size. |
ExtraName | Extra Name of Size. |
List of Sauce | |
Name | Sauce Name |
Id | Unique Id of the Sauce. |
ExtraName | Extra Name of Sauce. |
List of Crust | |
Name | Crust Name |
Id | Unique Id of the Crust. |
ExtraName | Extra Name of Crust. |
Toppings | |
Name | Topping Name |
Id | Unique Id of the Topping. |
ExtraName | Extra Name of Topping. |
Price | In Price there are two sub tags. 1). Size and 2). Price Based on the size of pizza it will apply price of the topping. |
Item | |
Name | Name of the Pizza Item. |
Id | Id of the Item. |
Sales Tax | Sales Tax in Percentage. |
Tax 2 | Tax 2 in Percentage if applicable. |
Tax 3 | Tax 3 in Percentage if applicable. |
Default Size | Default size has three sub tags. 1). Name - Name of the size. 2). Id - Id of the Size. 3). Region - Describes on which part it is applicable. ex. Entire Region,1st half. |
Default Crust | Default Crust has three sub tags. 1). Name - Name of the crust. 2). Id - Id of the crust. 3). Region - Describes on which part it is applicable. ex. Entire Region,1st half. |
Default Sauce | Default Sauce has three sub tags. 1). Name - Name of the sauce. 2). Id - Id of the Sauce. 3). Region - Describes on which part it is applicable. ex. Entire Region,1st half. |
Default Topping | Default Sauce has three sub tags. 1). Name - Name of the sauce. 2). Id - Id of the Sauce. 3). Region - Describes on which part it is applicable. ex. Entire Region,1st half.. Default Topping is optional. |
CrustBasedPrice | Pizza item has two options. It may be Crust based price pizza and Topping based price pizza. It has Price Maxtrix. It will contain crust name,price and size tag. It describes the price of crust based on the size of the pizza. |
ToppingBasedPrice | Topping based prices has Price Maxtrix. It will contain topping name,price and size tag. It describes the price of topping based on the size of the pizza. |