POST api/Online/SaveMenuItem

Saves the inputted data for menu items in the Edit menu page. Can add new menu items, or edit menu items.

Request Information

URI Parameters

None.

Body Parameters

Online_MenuItemModel
NameDescriptionTypeAdditional information
ID

integer

None.

MerchantId

integer

None.

MenuCategoryId

integer

None.

DishName

string

None.

DishName2

string

None.

Description

string

None.

Price

string

None.

Picture

string

None.

OrderNum

integer

None.

ZeroVAT

integer

None.

Options

string

None.

Status

integer

None.

SKU

string

None.

UID

integer

None.

Allergen

string

None.

LinkedPrinter

integer

None.

Price2

string

None.

OriginalPrice

string

None.

LoyaltyRate

string

None.

OEType

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "MerchantId": 1,
  "MenuCategoryId": 1,
  "DishName": "sample string 2",
  "DishName2": "sample string 3",
  "Description": "sample string 4",
  "Price": "sample string 5",
  "Picture": "sample string 6",
  "OrderNum": 1,
  "ZeroVAT": 1,
  "Options": "sample string 7",
  "Status": 1,
  "SKU": "sample string 8",
  "UID": 1,
  "Allergen": "sample string 9",
  "LinkedPrinter": 1,
  "Price2": "sample string 10",
  "OriginalPrice": "sample string 11",
  "LoyaltyRate": "sample string 12",
  "OEType": 1
}

application/xml, text/xml

Sample:
<Online_MenuItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LP.WebAPI.Models">
  <Allergen>sample string 9</Allergen>
  <Description>sample string 4</Description>
  <DishName>sample string 2</DishName>
  <DishName2>sample string 3</DishName2>
  <ID>1</ID>
  <LinkedPrinter>1</LinkedPrinter>
  <LoyaltyRate>sample string 12</LoyaltyRate>
  <MenuCategoryId>1</MenuCategoryId>
  <MerchantId>1</MerchantId>
  <OEType>1</OEType>
  <Options>sample string 7</Options>
  <OrderNum>1</OrderNum>
  <OriginalPrice>sample string 11</OriginalPrice>
  <Picture>sample string 6</Picture>
  <Price>sample string 5</Price>
  <Price2>sample string 10</Price2>
  <SKU>sample string 8</SKU>
  <Status>1</Status>
  <UID>1</UID>
  <ZeroVAT>1</ZeroVAT>
</Online_MenuItemModel>

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.