POST api/Catering/UpdateOrder
Request Information
URI Parameters
None.
Body Parameters
UpdateOrderName | Description | Type | Additional information |
---|---|---|---|
OrderId | integer |
None. |
|
Input | OrderCateringInput |
None. |
Request Formats
application/json, text/json
Sample:
{ "orderId": 1, "input": { "name": "sample string 1", "email": "sample string 2", "dialCode": "sample string 3", "dialCodeBackup": "sample string 4", "phone": "sample string 5", "phoneBackup": "sample string 6", "recipientName": "sample string 7", "password": "sample string 8", "deliveryAddressId": 9, "deliveryAddress": "sample string 10", "customAddress": "sample string 11", "deliveryLocation": "sample string 12", "eventDate": "2025-08-29T01:11:15.6987205+00:00", "menus": [ { "menuId": 1, "items": [ { "menuItemId": 1, "quantity": 2, "price": 3.0 }, { "menuItemId": 1, "quantity": 2, "price": 3.0 } ] }, { "menuId": 1, "items": [ { "menuItemId": 1, "quantity": 2, "price": 3.0 }, { "menuItemId": 1, "quantity": 2, "price": 3.0 } ] } ], "customizeSets": [ { "menuSetId": 1, "quantity": 2, "orderCustomizeSetId": 3, "menus": [ { "menuId": 1, "items": [ { "menuItemId": 1, "quantity": 2, "price": 3.0 }, { "menuItemId": 1, "quantity": 2, "price": 3.0 } ] }, { "menuId": 1, "items": [ { "menuItemId": 1, "quantity": 2, "price": 3.0 }, { "menuItemId": 1, "quantity": 2, "price": 3.0 } ] } ] }, { "menuSetId": 1, "quantity": 2, "orderCustomizeSetId": 3, "menus": [ { "menuId": 1, "items": [ { "menuItemId": 1, "quantity": 2, "price": 3.0 }, { "menuItemId": 1, "quantity": 2, "price": 3.0 } ] }, { "menuId": 1, "items": [ { "menuItemId": 1, "quantity": 2, "price": 3.0 }, { "menuItemId": 1, "quantity": 2, "price": 3.0 } ] } ] } ], "promotionId": 14, "totalDiscountPrice": 15, "taxInvoiceNeeded": true, "customerAddressUsed": true, "companyId": 16, "companyName": "sample string 17", "companyAddress": "sample string 18", "companyTaxIdentification": "sample string 19", "companyBranch": "sample string 20", "paymentTypeId": 0, "omiseToken": "sample string 21", "omiseCardId": "sample string 22", "isOmiseCardSaved": true, "offsiteOrders": [ { "restaurantId": 1, "foodTruckSets": [ { "setId": 1, "quantity": 2, "additionalRequest": "sample string 3" }, { "setId": 1, "quantity": 2, "additionalRequest": "sample string 3" } ], "foodStallSets": [ { "setId": 1, "quantity": 2, "additionalRequest": "sample string 3" }, { "setId": 1, "quantity": 2, "additionalRequest": "sample string 3" } ] }, { "restaurantId": 1, "foodTruckSets": [ { "setId": 1, "quantity": 2, "additionalRequest": "sample string 3" }, { "setId": 1, "quantity": 2, "additionalRequest": "sample string 3" } ], "foodStallSets": [ { "setId": 1, "quantity": 2, "additionalRequest": "sample string 3" }, { "setId": 1, "quantity": 2, "additionalRequest": "sample string 3" } ] } ], "isSaas": true } }
text/html
Sample:
{"orderId":1,"input":{"name":"sample string 1","email":"sample string 2","dialCode":"sample string 3","dialCodeBackup":"sample string 4","phone":"sample string 5","phoneBackup":"sample string 6","recipientName":"sample string 7","password":"sample string 8","deliveryAddressId":9,"deliveryAddress":"sample string 10","customAddress":"sample string 11","deliveryLocation":"sample string 12","eventDate":"2025-08-29T01:11:15.6987205+00:00","menus":[{"menuId":1,"items":[{"menuItemId":1,"quantity":2,"price":3.0},{"menuItemId":1,"quantity":2,"price":3.0}]},{"menuId":1,"items":[{"menuItemId":1,"quantity":2,"price":3.0},{"menuItemId":1,"quantity":2,"price":3.0}]}],"customizeSets":[{"menuSetId":1,"quantity":2,"orderCustomizeSetId":3,"menus":[{"menuId":1,"items":[{"menuItemId":1,"quantity":2,"price":3.0},{"menuItemId":1,"quantity":2,"price":3.0}]},{"menuId":1,"items":[{"menuItemId":1,"quantity":2,"price":3.0},{"menuItemId":1,"quantity":2,"price":3.0}]}]},{"menuSetId":1,"quantity":2,"orderCustomizeSetId":3,"menus":[{"menuId":1,"items":[{"menuItemId":1,"quantity":2,"price":3.0},{"menuItemId":1,"quantity":2,"price":3.0}]},{"menuId":1,"items":[{"menuItemId":1,"quantity":2,"price":3.0},{"menuItemId":1,"quantity":2,"price":3.0}]}]}],"promotionId":14,"totalDiscountPrice":15,"taxInvoiceNeeded":true,"customerAddressUsed":true,"companyId":16,"companyName":"sample string 17","companyAddress":"sample string 18","companyTaxIdentification":"sample string 19","companyBranch":"sample string 20","paymentTypeId":0,"omiseToken":"sample string 21","omiseCardId":"sample string 22","isOmiseCardSaved":true,"offsiteOrders":[{"restaurantId":1,"foodTruckSets":[{"setId":1,"quantity":2,"additionalRequest":"sample string 3"},{"setId":1,"quantity":2,"additionalRequest":"sample string 3"}],"foodStallSets":[{"setId":1,"quantity":2,"additionalRequest":"sample string 3"},{"setId":1,"quantity":2,"additionalRequest":"sample string 3"}]},{"restaurantId":1,"foodTruckSets":[{"setId":1,"quantity":2,"additionalRequest":"sample string 3"},{"setId":1,"quantity":2,"additionalRequest":"sample string 3"}],"foodStallSets":[{"setId":1,"quantity":2,"additionalRequest":"sample string 3"},{"setId":1,"quantity":2,"additionalRequest":"sample string 3"}]}],"isSaas":true}}
application/xml, text/xml
Sample:
<UpdateOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api"> <Input> <CompanyAddress>sample string 18</CompanyAddress> <CompanyBranch>sample string 20</CompanyBranch> <CompanyId>16</CompanyId> <CompanyName>sample string 17</CompanyName> <CompanyTaxIdentification>sample string 19</CompanyTaxIdentification> <CustomAddress>sample string 11</CustomAddress> <CustomerAddressUsed>true</CustomerAddressUsed> <CustomizeSets> <OrderCateringCustomizeSet> <MenuSetId>1</MenuSetId> <Menus> <OrderCateringMenuInput> <Items> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> </Items> <MenuId>1</MenuId> </OrderCateringMenuInput> <OrderCateringMenuInput> <Items> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> </Items> <MenuId>1</MenuId> </OrderCateringMenuInput> </Menus> <OrderCustomizeSetId>3</OrderCustomizeSetId> <Quantity>2</Quantity> </OrderCateringCustomizeSet> <OrderCateringCustomizeSet> <MenuSetId>1</MenuSetId> <Menus> <OrderCateringMenuInput> <Items> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> </Items> <MenuId>1</MenuId> </OrderCateringMenuInput> <OrderCateringMenuInput> <Items> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> </Items> <MenuId>1</MenuId> </OrderCateringMenuInput> </Menus> <OrderCustomizeSetId>3</OrderCustomizeSetId> <Quantity>2</Quantity> </OrderCateringCustomizeSet> </CustomizeSets> <DeliveryAddress>sample string 10</DeliveryAddress> <DeliveryAddressId>9</DeliveryAddressId> <DeliveryLocation>sample string 12</DeliveryLocation> <DialCode>sample string 3</DialCode> <DialCodeBackup>sample string 4</DialCodeBackup> <Email>sample string 2</Email> <EventDate>2025-08-29T01:11:15.6987205+00:00</EventDate> <IsOmiseCardSaved>true</IsOmiseCardSaved> <IsSaas>true</IsSaas> <Menus> <OrderCateringMenuInput> <Items> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> </Items> <MenuId>1</MenuId> </OrderCateringMenuInput> <OrderCateringMenuInput> <Items> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> <OrderCateringMenuItemInput> <MenuItemId>1</MenuItemId> <Price>3</Price> <Quantity>2</Quantity> </OrderCateringMenuItemInput> </Items> <MenuId>1</MenuId> </OrderCateringMenuInput> </Menus> <Name>sample string 1</Name> <OffsiteOrders> <OrderCateringOffsiteInput> <FoodStallSets> <OrderCateringOffsiteSetInput> <AdditionalRequest>sample string 3</AdditionalRequest> <Quantity>2</Quantity> <SetId>1</SetId> </OrderCateringOffsiteSetInput> <OrderCateringOffsiteSetInput> <AdditionalRequest>sample string 3</AdditionalRequest> <Quantity>2</Quantity> <SetId>1</SetId> </OrderCateringOffsiteSetInput> </FoodStallSets> <FoodTruckSets> <OrderCateringOffsiteSetInput> <AdditionalRequest>sample string 3</AdditionalRequest> <Quantity>2</Quantity> <SetId>1</SetId> </OrderCateringOffsiteSetInput> <OrderCateringOffsiteSetInput> <AdditionalRequest>sample string 3</AdditionalRequest> <Quantity>2</Quantity> <SetId>1</SetId> </OrderCateringOffsiteSetInput> </FoodTruckSets> <RestaurantId>1</RestaurantId> </OrderCateringOffsiteInput> <OrderCateringOffsiteInput> <FoodStallSets> <OrderCateringOffsiteSetInput> <AdditionalRequest>sample string 3</AdditionalRequest> <Quantity>2</Quantity> <SetId>1</SetId> </OrderCateringOffsiteSetInput> <OrderCateringOffsiteSetInput> <AdditionalRequest>sample string 3</AdditionalRequest> <Quantity>2</Quantity> <SetId>1</SetId> </OrderCateringOffsiteSetInput> </FoodStallSets> <FoodTruckSets> <OrderCateringOffsiteSetInput> <AdditionalRequest>sample string 3</AdditionalRequest> <Quantity>2</Quantity> <SetId>1</SetId> </OrderCateringOffsiteSetInput> <OrderCateringOffsiteSetInput> <AdditionalRequest>sample string 3</AdditionalRequest> <Quantity>2</Quantity> <SetId>1</SetId> </OrderCateringOffsiteSetInput> </FoodTruckSets> <RestaurantId>1</RestaurantId> </OrderCateringOffsiteInput> </OffsiteOrders> <OmiseCardId>sample string 22</OmiseCardId> <OmiseToken>sample string 21</OmiseToken> <Password>sample string 8</Password> <PaymentTypeId>Deposite</PaymentTypeId> <Phone>sample string 5</Phone> <PhoneBackup>sample string 6</PhoneBackup> <PromotionId>14</PromotionId> <RecipientName>sample string 7</RecipientName> <TaxInvoiceNeeded>true</TaxInvoiceNeeded> <TotalDiscountPrice>15</TotalDiscountPrice> </Input> <OrderId>1</OrderId> </UpdateOrder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DeliverySummaryViewName | Description | Type | Additional information |
---|---|---|---|
DeliveryCostTotal | decimal number |
None. |
|
DeliveryDiscount | decimal number |
None. |
|
DeliveryCostSummary | decimal number |
None. |
|
DeliveryCosts | Collection of DeliveryCostView |
None. |
Response Formats
application/json, text/json
Sample:
{ "deliveryCostTotal": 1.0, "deliveryDiscount": 2.0, "deliveryCostSummary": 3.0, "deliveryCosts": [ { "restaurantId": 1, "distance": 2.1, "cost": 3.0, "discount": 4.0, "totalCost": 5.0, "isFree": true, "method": 1, "foodTruckOffsiteServiceCharge": { "additionalCharge": 1.0, "offsiteServiceCharge": 2.0 }, "foodStallOffsiteServiceCharge": { "additionalCharge": 1.0, "offsiteServiceCharge": 2.0 } }, { "restaurantId": 1, "distance": 2.1, "cost": 3.0, "discount": 4.0, "totalCost": 5.0, "isFree": true, "method": 1, "foodTruckOffsiteServiceCharge": { "additionalCharge": 1.0, "offsiteServiceCharge": 2.0 }, "foodStallOffsiteServiceCharge": { "additionalCharge": 1.0, "offsiteServiceCharge": 2.0 } } ] }
text/html
Sample:
{"deliveryCostTotal":1.0,"deliveryDiscount":2.0,"deliveryCostSummary":3.0,"deliveryCosts":[{"restaurantId":1,"distance":2.1,"cost":3.0,"discount":4.0,"totalCost":5.0,"isFree":true,"method":1,"foodTruckOffsiteServiceCharge":{"additionalCharge":1.0,"offsiteServiceCharge":2.0},"foodStallOffsiteServiceCharge":{"additionalCharge":1.0,"offsiteServiceCharge":2.0}},{"restaurantId":1,"distance":2.1,"cost":3.0,"discount":4.0,"totalCost":5.0,"isFree":true,"method":1,"foodTruckOffsiteServiceCharge":{"additionalCharge":1.0,"offsiteServiceCharge":2.0},"foodStallOffsiteServiceCharge":{"additionalCharge":1.0,"offsiteServiceCharge":2.0}}]}
application/xml, text/xml
Sample:
<DeliverySummaryView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api"> <DeliveryCostSummary>3</DeliveryCostSummary> <DeliveryCostTotal>1</DeliveryCostTotal> <DeliveryCosts> <DeliveryCostView> <Cost>3</Cost> <Discount>4</Discount> <Distance>2.1</Distance> <FoodStallOffsiteServiceCharge> <AdditionalCharge>1</AdditionalCharge> <OffsiteServiceCharge>2</OffsiteServiceCharge> </FoodStallOffsiteServiceCharge> <FoodTruckOffsiteServiceCharge> <AdditionalCharge>1</AdditionalCharge> <OffsiteServiceCharge>2</OffsiteServiceCharge> </FoodTruckOffsiteServiceCharge> <IsFree>true</IsFree> <Method>Bike</Method> <RestaurantId>1</RestaurantId> <TotalCost>5</TotalCost> </DeliveryCostView> <DeliveryCostView> <Cost>3</Cost> <Discount>4</Discount> <Distance>2.1</Distance> <FoodStallOffsiteServiceCharge> <AdditionalCharge>1</AdditionalCharge> <OffsiteServiceCharge>2</OffsiteServiceCharge> </FoodStallOffsiteServiceCharge> <FoodTruckOffsiteServiceCharge> <AdditionalCharge>1</AdditionalCharge> <OffsiteServiceCharge>2</OffsiteServiceCharge> </FoodTruckOffsiteServiceCharge> <IsFree>true</IsFree> <Method>Bike</Method> <RestaurantId>1</RestaurantId> <TotalCost>5</TotalCost> </DeliveryCostView> </DeliveryCosts> <DeliveryDiscount>2</DeliveryDiscount> </DeliverySummaryView>