POST api/Online/MergePoSMenuToOnline

Request Information

URI Parameters

None.

Body Parameters

MergeToOnlineModel
NameDescriptionTypeAdditional information
MerchantId

integer

None.

MenuData

Collection of Merge_MenuItem

None.

MenuCategoryData

Collection of POS_MenuCategory

None.

SubOptionData

string

None.

ItemOptionCategoryData

Collection of POS_MenuSubGroup

None.

ItemOptionData

Collection of Merge_MenuSub

None.

MenuItemItemOptionData

string

None.

AdvancedItemOptions

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "MerchantId": 1,
  "MenuData": [
    {
      "MenuCategoryUID": 1,
      "ID": 1,
      "MerchantId": 1,
      "MenuId": 1,
      "DishName": "sample string 2",
      "DishName2": "sample string 3",
      "Description": "sample string 4",
      "Price": "sample string 5",
      "CategoryId": 1,
      "Picture": "sample string 6",
      "OrderNum": "sample string 7",
      "Barcode": "sample string 8",
      "State": 1,
      "Stock": "sample string 9",
      "ZeroVAT": 1,
      "DisplayOption": 1,
      "WeightPrice": "sample string 10",
      "Cost": "sample string 11",
      "TakeawayPrice": "sample string 12",
      "PopularItem": 1,
      "UID": 1,
      "LinkedPrinter": "sample string 13",
      "Allergy": "sample string 14",
      "Unit": "sample string 15",
      "DeactivatedOnline": 1
    },
    {
      "MenuCategoryUID": 1,
      "ID": 1,
      "MerchantId": 1,
      "MenuId": 1,
      "DishName": "sample string 2",
      "DishName2": "sample string 3",
      "Description": "sample string 4",
      "Price": "sample string 5",
      "CategoryId": 1,
      "Picture": "sample string 6",
      "OrderNum": "sample string 7",
      "Barcode": "sample string 8",
      "State": 1,
      "Stock": "sample string 9",
      "ZeroVAT": 1,
      "DisplayOption": 1,
      "WeightPrice": "sample string 10",
      "Cost": "sample string 11",
      "TakeawayPrice": "sample string 12",
      "PopularItem": 1,
      "UID": 1,
      "LinkedPrinter": "sample string 13",
      "Allergy": "sample string 14",
      "Unit": "sample string 15",
      "DeactivatedOnline": 1
    }
  ],
  "MenuCategoryData": [
    {
      "ID": 1,
      "MerchantId": 1,
      "MenuCategoryId": 1,
      "Name": "sample string 2",
      "MenuType": 1,
      "LinkedPrinter": "sample string 3",
      "OrderNum": "sample string 4",
      "Category": "sample string 5",
      "UID": 1,
      "VATRate": "sample string 6",
      "State": 1
    },
    {
      "ID": 1,
      "MerchantId": 1,
      "MenuCategoryId": 1,
      "Name": "sample string 2",
      "MenuType": 1,
      "LinkedPrinter": "sample string 3",
      "OrderNum": "sample string 4",
      "Category": "sample string 5",
      "UID": 1,
      "VATRate": "sample string 6",
      "State": 1
    }
  ],
  "SubOptionData": "sample string 2",
  "ItemOptionCategoryData": [
    {
      "ID": 1,
      "MerchantId": 1,
      "MenuSubGroupId": 1,
      "SubGroup": "sample string 2",
      "OrderNum": "sample string 3",
      "State": 1,
      "GroupType": 1,
      "UID": 1,
      "Mandatory": 1,
      "MaxNum": 1,
      "MinNum": 1,
      "SKU": "sample string 4",
      "Choice": true,
      "Step": 1
    },
    {
      "ID": 1,
      "MerchantId": 1,
      "MenuSubGroupId": 1,
      "SubGroup": "sample string 2",
      "OrderNum": "sample string 3",
      "State": 1,
      "GroupType": 1,
      "UID": 1,
      "Mandatory": 1,
      "MaxNum": 1,
      "MinNum": 1,
      "SKU": "sample string 4",
      "Choice": true,
      "Step": 1
    }
  ],
  "ItemOptionData": [
    {
      "MenuSubGroupUID": 1,
      "ID": 1,
      "MerchantId": 1,
      "MenuSubId": 1,
      "SubGroupID": 1,
      "SubName": "sample string 2",
      "Price": "sample string 3",
      "OrderNum": "sample string 4",
      "State": 1,
      "UID": 1,
      "SubName2": "sample string 5",
      "SubDesc": "sample string 6",
      "SKU": "sample string 7",
      "SourceId": 1,
      "Consumed": "sample string 8"
    },
    {
      "MenuSubGroupUID": 1,
      "ID": 1,
      "MerchantId": 1,
      "MenuSubId": 1,
      "SubGroupID": 1,
      "SubName": "sample string 2",
      "Price": "sample string 3",
      "OrderNum": "sample string 4",
      "State": 1,
      "UID": 1,
      "SubName2": "sample string 5",
      "SubDesc": "sample string 6",
      "SKU": "sample string 7",
      "SourceId": 1,
      "Consumed": "sample string 8"
    }
  ],
  "MenuItemItemOptionData": "sample string 3",
  "AdvancedItemOptions": true
}

application/xml, text/xml

Sample:
<MergeToOnlineModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LP.WebAPI.Models">
  <AdvancedItemOptions>true</AdvancedItemOptions>
  <ItemOptionCategoryData>
    <POS_MenuSubGroup>
      <Choice>true</Choice>
      <GroupType>1</GroupType>
      <ID>1</ID>
      <Mandatory>1</Mandatory>
      <MaxNum>1</MaxNum>
      <MenuSubGroupId>1</MenuSubGroupId>
      <MerchantId>1</MerchantId>
      <MinNum>1</MinNum>
      <OrderNum>sample string 3</OrderNum>
      <SKU>sample string 4</SKU>
      <State>1</State>
      <Step>1</Step>
      <SubGroup>sample string 2</SubGroup>
      <UID>1</UID>
    </POS_MenuSubGroup>
    <POS_MenuSubGroup>
      <Choice>true</Choice>
      <GroupType>1</GroupType>
      <ID>1</ID>
      <Mandatory>1</Mandatory>
      <MaxNum>1</MaxNum>
      <MenuSubGroupId>1</MenuSubGroupId>
      <MerchantId>1</MerchantId>
      <MinNum>1</MinNum>
      <OrderNum>sample string 3</OrderNum>
      <SKU>sample string 4</SKU>
      <State>1</State>
      <Step>1</Step>
      <SubGroup>sample string 2</SubGroup>
      <UID>1</UID>
    </POS_MenuSubGroup>
  </ItemOptionCategoryData>
  <ItemOptionData>
    <Merge_MenuSub>
      <Consumed>sample string 8</Consumed>
      <ID>1</ID>
      <MenuSubId>1</MenuSubId>
      <MerchantId>1</MerchantId>
      <OrderNum>sample string 4</OrderNum>
      <Price>sample string 3</Price>
      <SKU>sample string 7</SKU>
      <SourceId>1</SourceId>
      <State>1</State>
      <SubDesc>sample string 6</SubDesc>
      <SubGroupID>1</SubGroupID>
      <SubName>sample string 2</SubName>
      <SubName2>sample string 5</SubName2>
      <UID>1</UID>
      <MenuSubGroupUID>1</MenuSubGroupUID>
    </Merge_MenuSub>
    <Merge_MenuSub>
      <Consumed>sample string 8</Consumed>
      <ID>1</ID>
      <MenuSubId>1</MenuSubId>
      <MerchantId>1</MerchantId>
      <OrderNum>sample string 4</OrderNum>
      <Price>sample string 3</Price>
      <SKU>sample string 7</SKU>
      <SourceId>1</SourceId>
      <State>1</State>
      <SubDesc>sample string 6</SubDesc>
      <SubGroupID>1</SubGroupID>
      <SubName>sample string 2</SubName>
      <SubName2>sample string 5</SubName2>
      <UID>1</UID>
      <MenuSubGroupUID>1</MenuSubGroupUID>
    </Merge_MenuSub>
  </ItemOptionData>
  <MenuCategoryData>
    <POS_MenuCategory>
      <Category>sample string 5</Category>
      <ID>1</ID>
      <LinkedPrinter>sample string 3</LinkedPrinter>
      <MenuCategoryId>1</MenuCategoryId>
      <MenuType>1</MenuType>
      <MerchantId>1</MerchantId>
      <Name>sample string 2</Name>
      <OrderNum>sample string 4</OrderNum>
      <State>1</State>
      <UID>1</UID>
      <VATRate>sample string 6</VATRate>
    </POS_MenuCategory>
    <POS_MenuCategory>
      <Category>sample string 5</Category>
      <ID>1</ID>
      <LinkedPrinter>sample string 3</LinkedPrinter>
      <MenuCategoryId>1</MenuCategoryId>
      <MenuType>1</MenuType>
      <MerchantId>1</MerchantId>
      <Name>sample string 2</Name>
      <OrderNum>sample string 4</OrderNum>
      <State>1</State>
      <UID>1</UID>
      <VATRate>sample string 6</VATRate>
    </POS_MenuCategory>
  </MenuCategoryData>
  <MenuData>
    <Merge_MenuItem>
      <Allergy>sample string 14</Allergy>
      <Barcode>sample string 8</Barcode>
      <CategoryId>1</CategoryId>
      <Cost>sample string 11</Cost>
      <DeactivatedOnline>1</DeactivatedOnline>
      <Description>sample string 4</Description>
      <DishName>sample string 2</DishName>
      <DishName2>sample string 3</DishName2>
      <DisplayOption>1</DisplayOption>
      <ID>1</ID>
      <LinkedPrinter>sample string 13</LinkedPrinter>
      <MenuId>1</MenuId>
      <MerchantId>1</MerchantId>
      <OrderNum>sample string 7</OrderNum>
      <Picture>sample string 6</Picture>
      <PopularItem>1</PopularItem>
      <Price>sample string 5</Price>
      <State>1</State>
      <Stock>sample string 9</Stock>
      <TakeawayPrice>sample string 12</TakeawayPrice>
      <UID>1</UID>
      <Unit>sample string 15</Unit>
      <WeightPrice>sample string 10</WeightPrice>
      <ZeroVAT>1</ZeroVAT>
      <MenuCategoryUID>1</MenuCategoryUID>
    </Merge_MenuItem>
    <Merge_MenuItem>
      <Allergy>sample string 14</Allergy>
      <Barcode>sample string 8</Barcode>
      <CategoryId>1</CategoryId>
      <Cost>sample string 11</Cost>
      <DeactivatedOnline>1</DeactivatedOnline>
      <Description>sample string 4</Description>
      <DishName>sample string 2</DishName>
      <DishName2>sample string 3</DishName2>
      <DisplayOption>1</DisplayOption>
      <ID>1</ID>
      <LinkedPrinter>sample string 13</LinkedPrinter>
      <MenuId>1</MenuId>
      <MerchantId>1</MerchantId>
      <OrderNum>sample string 7</OrderNum>
      <Picture>sample string 6</Picture>
      <PopularItem>1</PopularItem>
      <Price>sample string 5</Price>
      <State>1</State>
      <Stock>sample string 9</Stock>
      <TakeawayPrice>sample string 12</TakeawayPrice>
      <UID>1</UID>
      <Unit>sample string 15</Unit>
      <WeightPrice>sample string 10</WeightPrice>
      <ZeroVAT>1</ZeroVAT>
      <MenuCategoryUID>1</MenuCategoryUID>
    </Merge_MenuItem>
  </MenuData>
  <MenuItemItemOptionData>sample string 3</MenuItemItemOptionData>
  <MerchantId>1</MerchantId>
  <SubOptionData>sample string 2</SubOptionData>
</MergeToOnlineModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.