POST api/Catering/UpdateOriginalPriceToCateringOrder
Request Information
URI Parameters
None.
Body Parameters
CateringOrderHistoryDetailOriginalPriceName | Description | Type | Additional information |
---|---|---|---|
CateringOrderUpdateOriginalPrices | CateringOrderUpdateOriginalPrice |
None. |
Request Formats
application/json, text/json
Sample:
{ "cateringOrderUpdateOriginalPrices": { "packages": [ { "restaurantId": 1, "packageId": 2, "menuId": 3, "name": "sample string 4", "price": 5.0, "originalPrice": 6.0, "commissionRate": 1, "discount": 1, "minimumNo": 7, "minimumPrice": 8.0, "restaurantPackageTypeId": 9, "addPirceToRestaurant": true, "menuItems": [ { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true }, { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true } ] }, { "restaurantId": 1, "packageId": 2, "menuId": 3, "name": "sample string 4", "price": 5.0, "originalPrice": 6.0, "commissionRate": 1, "discount": 1, "minimumNo": 7, "minimumPrice": 8.0, "restaurantPackageTypeId": 9, "addPirceToRestaurant": true, "menuItems": [ { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true }, { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true } ] } ], "customizeSets": [ { "restaurantId": 1, "menuSetId": 2, "quantity": 3, "menuPrice": {}, "menuOriginalPrice": {}, "orderCustomizeSetId": 6, "addPirceToRestaurant": true, "customizeSetMenus": [ { "setMenuId": 1, "name": "sample string 2", "customizeSetMenuItems": [ { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true }, { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true } ] }, { "setMenuId": 1, "name": "sample string 2", "customizeSetMenuItems": [ { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true }, { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true } ] } ] }, { "restaurantId": 1, "menuSetId": 2, "quantity": 3, "menuPrice": {}, "menuOriginalPrice": {}, "orderCustomizeSetId": 6, "addPirceToRestaurant": true, "customizeSetMenus": [ { "setMenuId": 1, "name": "sample string 2", "customizeSetMenuItems": [ { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true }, { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true } ] }, { "setMenuId": 1, "name": "sample string 2", "customizeSetMenuItems": [ { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true }, { "cateringOrderItemId": 1, "menuItemId": 2, "name": "sample string 3", "quantity": 4, "additionalPrice": 1.0, "additionalOriginalPrice": 1.0, "addPirceToRestaurant": true } ] } ] } ] } }
text/html
Sample:
{"cateringOrderUpdateOriginalPrices":{"packages":[{"restaurantId":1,"packageId":2,"menuId":3,"name":"sample string 4","price":5.0,"originalPrice":6.0,"commissionRate":1,"discount":1,"minimumNo":7,"minimumPrice":8.0,"restaurantPackageTypeId":9,"addPirceToRestaurant":true,"menuItems":[{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true},{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true}]},{"restaurantId":1,"packageId":2,"menuId":3,"name":"sample string 4","price":5.0,"originalPrice":6.0,"commissionRate":1,"discount":1,"minimumNo":7,"minimumPrice":8.0,"restaurantPackageTypeId":9,"addPirceToRestaurant":true,"menuItems":[{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true},{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true}]}],"customizeSets":[{"restaurantId":1,"menuSetId":2,"quantity":3,"menuPrice":{},"menuOriginalPrice":{},"orderCustomizeSetId":6,"addPirceToRestaurant":true,"customizeSetMenus":[{"setMenuId":1,"name":"sample string 2","customizeSetMenuItems":[{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true},{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true}]},{"setMenuId":1,"name":"sample string 2","customizeSetMenuItems":[{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true},{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true}]}]},{"restaurantId":1,"menuSetId":2,"quantity":3,"menuPrice":{},"menuOriginalPrice":{},"orderCustomizeSetId":6,"addPirceToRestaurant":true,"customizeSetMenus":[{"setMenuId":1,"name":"sample string 2","customizeSetMenuItems":[{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true},{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true}]},{"setMenuId":1,"name":"sample string 2","customizeSetMenuItems":[{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true},{"cateringOrderItemId":1,"menuItemId":2,"name":"sample string 3","quantity":4,"additionalPrice":1.0,"additionalOriginalPrice":1.0,"addPirceToRestaurant":true}]}]}]}}
application/xml, text/xml
Sample:
<CateringOrderHistoryDetailOriginalPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api"> <CateringOrderUpdateOriginalPrices> <CustomizeSets> <CateringOrderUpdateOriginalPriceCustomizeSet> <AddPirceToRestaurant>true</AddPirceToRestaurant> <CustomizeSetMenus> <CateringOrderHistoryDetailCustomizeMenuView> <CustomizeSetMenuItems> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> </CustomizeSetMenuItems> <Name>sample string 2</Name> <SetMenuId>1</SetMenuId> </CateringOrderHistoryDetailCustomizeMenuView> <CateringOrderHistoryDetailCustomizeMenuView> <CustomizeSetMenuItems> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> </CustomizeSetMenuItems> <Name>sample string 2</Name> <SetMenuId>1</SetMenuId> </CateringOrderHistoryDetailCustomizeMenuView> </CustomizeSetMenus> <MenuOriginalPrice /> <MenuPrice /> <MenuSetId>2</MenuSetId> <OrderCustomizeSetId>6</OrderCustomizeSetId> <Quantity>3</Quantity> <RestaurantId>1</RestaurantId> </CateringOrderUpdateOriginalPriceCustomizeSet> <CateringOrderUpdateOriginalPriceCustomizeSet> <AddPirceToRestaurant>true</AddPirceToRestaurant> <CustomizeSetMenus> <CateringOrderHistoryDetailCustomizeMenuView> <CustomizeSetMenuItems> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> </CustomizeSetMenuItems> <Name>sample string 2</Name> <SetMenuId>1</SetMenuId> </CateringOrderHistoryDetailCustomizeMenuView> <CateringOrderHistoryDetailCustomizeMenuView> <CustomizeSetMenuItems> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> </CustomizeSetMenuItems> <Name>sample string 2</Name> <SetMenuId>1</SetMenuId> </CateringOrderHistoryDetailCustomizeMenuView> </CustomizeSetMenus> <MenuOriginalPrice /> <MenuPrice /> <MenuSetId>2</MenuSetId> <OrderCustomizeSetId>6</OrderCustomizeSetId> <Quantity>3</Quantity> <RestaurantId>1</RestaurantId> </CateringOrderUpdateOriginalPriceCustomizeSet> </CustomizeSets> <Packages> <CateringOrderHistoryDetailPackageView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <CommissionRate>1</CommissionRate> <Discount>1</Discount> <MenuId>3</MenuId> <MenuItems> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> </MenuItems> <MinimumNo>7</MinimumNo> <MinimumPrice>8</MinimumPrice> <Name>sample string 4</Name> <OriginalPrice>6</OriginalPrice> <PackageId>2</PackageId> <Price>5</Price> <RestaurantId>1</RestaurantId> <RestaurantPackageTypeId>9</RestaurantPackageTypeId> </CateringOrderHistoryDetailPackageView> <CateringOrderHistoryDetailPackageView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <CommissionRate>1</CommissionRate> <Discount>1</Discount> <MenuId>3</MenuId> <MenuItems> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> <CateringOrderHistoryDetailMenuItemView> <AddPirceToRestaurant>true</AddPirceToRestaurant> <AdditionalOriginalPrice>1</AdditionalOriginalPrice> <AdditionalPrice>1</AdditionalPrice> <CateringOrderItemId>1</CateringOrderItemId> <MenuItemId>2</MenuItemId> <Name>sample string 3</Name> <Quantity>4</Quantity> </CateringOrderHistoryDetailMenuItemView> </MenuItems> <MinimumNo>7</MinimumNo> <MinimumPrice>8</MinimumPrice> <Name>sample string 4</Name> <OriginalPrice>6</OriginalPrice> <PackageId>2</PackageId> <Price>5</Price> <RestaurantId>1</RestaurantId> <RestaurantPackageTypeId>9</RestaurantPackageTypeId> </CateringOrderHistoryDetailPackageView> </Packages> </CateringOrderUpdateOriginalPrices> </CateringOrderHistoryDetailOriginalPrice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json, text/html
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>