POST api/Orders

Request Information

URI Parameters

None.

Body Parameters

OnlineOrderPostDTO
NameDescriptionTypeAdditional information
DeviceId

string

None.

Customer

CustomerDTO

None.

Trade

SalTempGroupDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": "sample string 1",
  "Customer": {
    "CustomerId": "sample string 1",
    "CustomerNumber": "sample string 2",
    "CustomerName": "sample string 3",
    "Cellphone": "sample string 4",
    "Phone1": "sample string 5",
    "Phone2": "sample string 6",
    "Birth": null,
    "Memo": "sample string 8",
    "UniformNumber": null,
    "PostCode": "sample string 10",
    "Address": "sample string 11",
    "Degree": 0,
    "Gender": "sample string 12",
    "Email": "sample string 13",
    "IdentifyCard": "sample string 14",
    "VehicleNumber": null,
    "PicturePath": "sample string 16",
    "IsUpload": true,
    "ContactPerson": "sample string 18",
    "SalerId": "sample string 19",
    "FaxNumber": "sample string 20",
    "IsStop": true,
    "IsLYUpload": true,
    "IsDigiwinUpload": true,
    "IntegralFreePoint": 24,
    "IntegralFreePrice": 25,
    "PickupAddress": "sample string 26",
    "MedicalNumber": "sample string 27",
    "CountryCode": "sample string 28",
    "ErrorMsgType": 0,
    "ShowmoreId": "sample string 29",
    "BuyerName": "sample string 30"
  },
  "Trade": {
    "SalTemp": {
      "SalTempId": "sample string 1",
      "SalNumber": "sample string 2",
      "TerminalId": "sample string 3",
      "CustomerId": "sample string 4",
      "CustomerName": "sample string 5",
      "TotalDiscountPrice": 6.0,
      "TotalFreePrice": 7.0,
      "Total": 8,
      "OriginalPrice": 9.0,
      "Memo": "sample string 10",
      "Memo2": "sample string 11",
      "Cost": 12.0,
      "ServiceNumber": 13,
      "EatType": 0,
      "TradeType": 0,
      "Discount": 14,
      "FreePrice": 15.0,
      "PeopleType1": 16,
      "PeopleType2": 17,
      "PeopleType3": 18,
      "PeopleType4": 19,
      "Addition": 20,
      "SalPriceType": 0,
      "Cellphone": "sample string 21",
      "Telephone": "sample string 22",
      "Address": "sample string 23",
      "ContactPerson": "sample string 24",
      "TableMapId": "sample string 25",
      "TableMapName": "sample string 26",
      "IsTaxAddition": true,
      "IntegralFree": 28,
      "IntegralAdd": 29,
      "IntegralMinus": 30,
      "CustomerIntegral": 31,
      "IntegralFreePrice": 32,
      "IntegralFreePoint": 33,
      "SalerId": "sample string 34",
      "StartTime": "2025-12-29T18:52:55.9302876+00:00",
      "EndTime": "2025-12-29T18:52:55.9302876+00:00",
      "RelationId": "sample string 35",
      "CustomerSaleType": 0,
      "MemberCardId": "sample string 36",
      "HasTableOrderPrint": true,
      "SalType": 0,
      "AdvancedDeposit": 38,
      "LctechTokenId": "sample string 39",
      "UniformNumber": "sample string 40",
      "SourceType": 0,
      "OnlineOrderStatusType": 0,
      "OnlineOrderRejectReason": "sample string 41",
      "OnlineOrderSalNumber": "sample string 42",
      "OnlineOrderTime": "2025-12-29T18:52:55.9302876+00:00",
      "EstimatedPickupTime": "2025-12-29T18:52:55.9302876+00:00",
      "OnlineOrderReserveTimeType": 0,
      "OnlineOrderPayType": 0,
      "LinePayTradeId": "sample string 43",
      "PXPayTradeId": "sample string 44",
      "PXPayTradeNo": "sample string 45",
      "BusId": "sample string 46",
      "OrderTerminalId": "sample string 47",
      "TravelAgencyId": "sample string 48",
      "TourGuideId": "sample string 49",
      "Receiver": "sample string 50",
      "ReceiverPhone": "sample string 51",
      "CanDiscountPrice": 52.0,
      "IsOnlineOrderDownload": true,
      "DoctorId": "sample string 54",
      "MedicalVisitType": 0,
      "VehicleType": 0,
      "VehicleNumber": "sample string 55",
      "TableOrderType": 0,
      "CustomerSaleValue": 56,
      "ReceiverTelephone": "sample string 57",
      "ReceiverAddress": "sample string 58",
      "PurchaseCostType": 0,
      "ErrorMsgType": 0
    },
    "SalDetTemps": [
      {
        "SalDetTempId": "sample string 1",
        "SalTempId": "sample string 2",
        "FoodId": "sample string 3",
        "FoodName": "sample string 4",
        "Qty": 5.0,
        "SalPrice": 6.0,
        "Total": 7.0,
        "Discount": 8,
        "Cost": 9.0,
        "OriginalPrice": 10.0,
        "DiscountPrice": 11.0,
        "FreePrice": 12.0,
        "TotalFreePrice": 13.0,
        "TastePrice": 14,
        "FoodTaste": "sample string 15",
        "Memo": "sample string 16",
        "Memo2": "sample string 17",
        "FoodType": 0,
        "DiscountType": 0,
        "ComboSalDetId": "sample string 18",
        "ComboKindId": "sample string 19",
        "IsFree": true,
        "IsPrint": true,
        "TaxType": 0,
        "Unit": "sample string 22",
        "RelationId": "sample string 23",
        "Sequence": 24,
        "IntegralGet": 25,
        "IntegralFree": 26,
        "NoService": true,
        "ServicePrice": 28,
        "Addition": 29,
        "Calories": 30.0,
        "Caffeine": 31.0,
        "Sugar": 32.0,
        "TasteCalories": 33.0,
        "TasteCaffeine": 34.0,
        "TasteSugar": 35.0,
        "CommissionRatio": 36,
        "OcardCoupon": "sample string 37",
        "OcardPromotionType": 0,
        "OcardPromotionValue": 38,
        "OcardPoint": 39.0,
        "BatchNumber": "sample string 40",
        "CustomerStockQty": 1.0,
        "MyCardId": "sample string 41",
        "ExchangeVoucherId": "sample string 42",
        "NoPXPointDiscount": true,
        "NoPXPointFeedback": true,
        "TasteNoDiscountPrice": 45,
        "NoDeductStock": true,
        "VoidSalDetId": "sample string 47",
        "ItemPromotionType": 0,
        "ItemPromotionValue": 48,
        "PromotionType": 0,
        "CustomerDiscountCodeId": 1,
        "SuggestPrice": 1.0,
        "CanDiscount": true,
        "NoGiveIntegral": true,
        "OrderIndex": 50,
        "LastCost": 51.0,
        "ErrorMsgType": 0
      },
      {
        "SalDetTempId": "sample string 1",
        "SalTempId": "sample string 2",
        "FoodId": "sample string 3",
        "FoodName": "sample string 4",
        "Qty": 5.0,
        "SalPrice": 6.0,
        "Total": 7.0,
        "Discount": 8,
        "Cost": 9.0,
        "OriginalPrice": 10.0,
        "DiscountPrice": 11.0,
        "FreePrice": 12.0,
        "TotalFreePrice": 13.0,
        "TastePrice": 14,
        "FoodTaste": "sample string 15",
        "Memo": "sample string 16",
        "Memo2": "sample string 17",
        "FoodType": 0,
        "DiscountType": 0,
        "ComboSalDetId": "sample string 18",
        "ComboKindId": "sample string 19",
        "IsFree": true,
        "IsPrint": true,
        "TaxType": 0,
        "Unit": "sample string 22",
        "RelationId": "sample string 23",
        "Sequence": 24,
        "IntegralGet": 25,
        "IntegralFree": 26,
        "NoService": true,
        "ServicePrice": 28,
        "Addition": 29,
        "Calories": 30.0,
        "Caffeine": 31.0,
        "Sugar": 32.0,
        "TasteCalories": 33.0,
        "TasteCaffeine": 34.0,
        "TasteSugar": 35.0,
        "CommissionRatio": 36,
        "OcardCoupon": "sample string 37",
        "OcardPromotionType": 0,
        "OcardPromotionValue": 38,
        "OcardPoint": 39.0,
        "BatchNumber": "sample string 40",
        "CustomerStockQty": 1.0,
        "MyCardId": "sample string 41",
        "ExchangeVoucherId": "sample string 42",
        "NoPXPointDiscount": true,
        "NoPXPointFeedback": true,
        "TasteNoDiscountPrice": 45,
        "NoDeductStock": true,
        "VoidSalDetId": "sample string 47",
        "ItemPromotionType": 0,
        "ItemPromotionValue": 48,
        "PromotionType": 0,
        "CustomerDiscountCodeId": 1,
        "SuggestPrice": 1.0,
        "CanDiscount": true,
        "NoGiveIntegral": true,
        "OrderIndex": 50,
        "LastCost": 51.0,
        "ErrorMsgType": 0
      }
    ],
    "SalDetTempTastes": [
      {
        "SalDetTempId": "sample string 1",
        "TasteId": "sample string 2",
        "TasteName": "sample string 3",
        "Price": 4,
        "Calories": 5.0,
        "Caffeine": 6.0,
        "Sugar": 7.0,
        "Qty": 8
      },
      {
        "SalDetTempId": "sample string 1",
        "TasteId": "sample string 2",
        "TasteName": "sample string 3",
        "Price": 4,
        "Calories": 5.0,
        "Caffeine": 6.0,
        "Sugar": 7.0,
        "Qty": 8
      }
    ],
    "SalTempFunctions": [
      {
        "FunctionName": "sample string 1",
        "SalTempId": "sample string 2",
        "FunctionId": "sample string 3",
        "Value": 4,
        "Total": 5.0
      },
      {
        "FunctionName": "sample string 1",
        "SalTempId": "sample string 2",
        "FunctionId": "sample string 3",
        "Value": 4,
        "Total": 5.0
      }
    ],
    "AppliedGiftVouchers": [
      {
        "CustomerGiftVoucherId": "sample string 1",
        "SalScopeType": 0,
        "Id": "sample string 2"
      },
      {
        "CustomerGiftVoucherId": "sample string 1",
        "SalScopeType": 0,
        "Id": "sample string 2"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<OnlineOrderPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UShow.Domain.DTOs">
  <Customer>
    <Address>sample string 11</Address>
    <Birth i:nil="true" />
    <BuyerName>sample string 30</BuyerName>
    <Cellphone>sample string 4</Cellphone>
    <ContactPerson>sample string 18</ContactPerson>
    <CountryCode>sample string 28</CountryCode>
    <CustomerId>sample string 1</CustomerId>
    <CustomerName>sample string 3</CustomerName>
    <CustomerNumber>sample string 2</CustomerNumber>
    <Degree>DegreeZero</Degree>
    <Email>sample string 13</Email>
    <FaxNumber>sample string 20</FaxNumber>
    <Gender>sample string 12</Gender>
    <IdentifyCard>sample string 14</IdentifyCard>
    <IntegralFreePoint>24</IntegralFreePoint>
    <IntegralFreePrice>25</IntegralFreePrice>
    <IsDigiwinUpload>true</IsDigiwinUpload>
    <IsLYUpload>true</IsLYUpload>
    <IsStop>true</IsStop>
    <IsUpload>true</IsUpload>
    <MedicalNumber>sample string 27</MedicalNumber>
    <Memo>sample string 8</Memo>
    <Phone1>sample string 5</Phone1>
    <Phone2>sample string 6</Phone2>
    <PickupAddress>sample string 26</PickupAddress>
    <PicturePath>sample string 16</PicturePath>
    <PostCode>sample string 10</PostCode>
    <SalerId>sample string 19</SalerId>
    <ShowmoreId>sample string 29</ShowmoreId>
    <UniformNumber i:nil="true" />
    <VehicleNumber i:nil="true" />
  </Customer>
  <DeviceId>sample string 1</DeviceId>
  <Trade>
    <AppliedGiftVouchers>
      <AppliedGiftVoucherDTO>
        <CustomerGiftVoucherId>sample string 1</CustomerGiftVoucherId>
        <Id>sample string 2</Id>
        <SalScopeType>Sal</SalScopeType>
      </AppliedGiftVoucherDTO>
      <AppliedGiftVoucherDTO>
        <CustomerGiftVoucherId>sample string 1</CustomerGiftVoucherId>
        <Id>sample string 2</Id>
        <SalScopeType>Sal</SalScopeType>
      </AppliedGiftVoucherDTO>
    </AppliedGiftVouchers>
    <SalDetTempTastes>
      <SalDetTempTasteDTO>
        <Caffeine>6</Caffeine>
        <Calories>5</Calories>
        <Price>4</Price>
        <Qty>8</Qty>
        <SalDetTempId>sample string 1</SalDetTempId>
        <Sugar>7</Sugar>
        <TasteId>sample string 2</TasteId>
        <TasteName>sample string 3</TasteName>
      </SalDetTempTasteDTO>
      <SalDetTempTasteDTO>
        <Caffeine>6</Caffeine>
        <Calories>5</Calories>
        <Price>4</Price>
        <Qty>8</Qty>
        <SalDetTempId>sample string 1</SalDetTempId>
        <Sugar>7</Sugar>
        <TasteId>sample string 2</TasteId>
        <TasteName>sample string 3</TasteName>
      </SalDetTempTasteDTO>
    </SalDetTempTastes>
    <SalDetTemps>
      <SalDetTempDTO>
        <Addition>29</Addition>
        <BatchNumber>sample string 40</BatchNumber>
        <Caffeine>31</Caffeine>
        <Calories>30</Calories>
        <ComboKindId>sample string 19</ComboKindId>
        <ComboSalDetId>sample string 18</ComboSalDetId>
        <CommissionRatio>36</CommissionRatio>
        <Cost>9</Cost>
        <CustomerDiscountCodeId>1</CustomerDiscountCodeId>
        <CustomerStockQty>1</CustomerStockQty>
        <Discount>8</Discount>
        <DiscountPrice>11</DiscountPrice>
        <DiscountType>None</DiscountType>
        <ExchangeVoucherId>sample string 42</ExchangeVoucherId>
        <FoodId>sample string 3</FoodId>
        <FoodName>sample string 4</FoodName>
        <FoodTaste>sample string 15</FoodTaste>
        <FoodType>Food</FoodType>
        <FreePrice>12</FreePrice>
        <IntegralFree>26</IntegralFree>
        <IntegralGet>25</IntegralGet>
        <IsFree>true</IsFree>
        <IsPrint>true</IsPrint>
        <ItemPromotionType>None</ItemPromotionType>
        <ItemPromotionValue>48</ItemPromotionValue>
        <LastCost>51</LastCost>
        <Memo>sample string 16</Memo>
        <Memo2>sample string 17</Memo2>
        <MyCardId>sample string 41</MyCardId>
        <NoDeductStock>true</NoDeductStock>
        <NoGiveIntegral>true</NoGiveIntegral>
        <NoPXPointDiscount>true</NoPXPointDiscount>
        <NoPXPointFeedback>true</NoPXPointFeedback>
        <NoService>true</NoService>
        <OcardCoupon>sample string 37</OcardCoupon>
        <OcardPoint>39</OcardPoint>
        <OcardPromotionType>None</OcardPromotionType>
        <OcardPromotionValue>38</OcardPromotionValue>
        <OrderIndex>50</OrderIndex>
        <OriginalPrice>10</OriginalPrice>
        <PromotionType>TotalPriceForFullQty</PromotionType>
        <Qty>5</Qty>
        <RelationId>sample string 23</RelationId>
        <SalDetTempId>sample string 1</SalDetTempId>
        <SalPrice>6</SalPrice>
        <SalTempId>sample string 2</SalTempId>
        <Sequence>24</Sequence>
        <ServicePrice>28</ServicePrice>
        <Sugar>32</Sugar>
        <SuggestPrice>1</SuggestPrice>
        <TasteCaffeine>34</TasteCaffeine>
        <TasteCalories>33</TasteCalories>
        <TasteNoDiscountPrice>45</TasteNoDiscountPrice>
        <TastePrice>14</TastePrice>
        <TasteSugar>35</TasteSugar>
        <TaxType>NoInvoice</TaxType>
        <Total>7</Total>
        <TotalFreePrice>13</TotalFreePrice>
        <Unit>sample string 22</Unit>
        <VoidSalDetId>sample string 47</VoidSalDetId>
      </SalDetTempDTO>
      <SalDetTempDTO>
        <Addition>29</Addition>
        <BatchNumber>sample string 40</BatchNumber>
        <Caffeine>31</Caffeine>
        <Calories>30</Calories>
        <ComboKindId>sample string 19</ComboKindId>
        <ComboSalDetId>sample string 18</ComboSalDetId>
        <CommissionRatio>36</CommissionRatio>
        <Cost>9</Cost>
        <CustomerDiscountCodeId>1</CustomerDiscountCodeId>
        <CustomerStockQty>1</CustomerStockQty>
        <Discount>8</Discount>
        <DiscountPrice>11</DiscountPrice>
        <DiscountType>None</DiscountType>
        <ExchangeVoucherId>sample string 42</ExchangeVoucherId>
        <FoodId>sample string 3</FoodId>
        <FoodName>sample string 4</FoodName>
        <FoodTaste>sample string 15</FoodTaste>
        <FoodType>Food</FoodType>
        <FreePrice>12</FreePrice>
        <IntegralFree>26</IntegralFree>
        <IntegralGet>25</IntegralGet>
        <IsFree>true</IsFree>
        <IsPrint>true</IsPrint>
        <ItemPromotionType>None</ItemPromotionType>
        <ItemPromotionValue>48</ItemPromotionValue>
        <LastCost>51</LastCost>
        <Memo>sample string 16</Memo>
        <Memo2>sample string 17</Memo2>
        <MyCardId>sample string 41</MyCardId>
        <NoDeductStock>true</NoDeductStock>
        <NoGiveIntegral>true</NoGiveIntegral>
        <NoPXPointDiscount>true</NoPXPointDiscount>
        <NoPXPointFeedback>true</NoPXPointFeedback>
        <NoService>true</NoService>
        <OcardCoupon>sample string 37</OcardCoupon>
        <OcardPoint>39</OcardPoint>
        <OcardPromotionType>None</OcardPromotionType>
        <OcardPromotionValue>38</OcardPromotionValue>
        <OrderIndex>50</OrderIndex>
        <OriginalPrice>10</OriginalPrice>
        <PromotionType>TotalPriceForFullQty</PromotionType>
        <Qty>5</Qty>
        <RelationId>sample string 23</RelationId>
        <SalDetTempId>sample string 1</SalDetTempId>
        <SalPrice>6</SalPrice>
        <SalTempId>sample string 2</SalTempId>
        <Sequence>24</Sequence>
        <ServicePrice>28</ServicePrice>
        <Sugar>32</Sugar>
        <SuggestPrice>1</SuggestPrice>
        <TasteCaffeine>34</TasteCaffeine>
        <TasteCalories>33</TasteCalories>
        <TasteNoDiscountPrice>45</TasteNoDiscountPrice>
        <TastePrice>14</TastePrice>
        <TasteSugar>35</TasteSugar>
        <TaxType>NoInvoice</TaxType>
        <Total>7</Total>
        <TotalFreePrice>13</TotalFreePrice>
        <Unit>sample string 22</Unit>
        <VoidSalDetId>sample string 47</VoidSalDetId>
      </SalDetTempDTO>
    </SalDetTemps>
    <SalTemp>
      <Addition>20</Addition>
      <Address>sample string 23</Address>
      <AdvancedDeposit>38</AdvancedDeposit>
      <BusId>sample string 46</BusId>
      <CanDiscountPrice>52</CanDiscountPrice>
      <Cellphone>sample string 21</Cellphone>
      <ContactPerson>sample string 24</ContactPerson>
      <Cost>12</Cost>
      <CustomerId>sample string 4</CustomerId>
      <CustomerIntegral>31</CustomerIntegral>
      <CustomerName>sample string 5</CustomerName>
      <CustomerSaleType>None</CustomerSaleType>
      <CustomerSaleValue>56</CustomerSaleValue>
      <Discount>14</Discount>
      <DoctorId>sample string 54</DoctorId>
      <EatType>In</EatType>
      <EndTime>2025-12-29T18:52:55.9302876+00:00</EndTime>
      <EstimatedPickupTime>2025-12-29T18:52:55.9302876+00:00</EstimatedPickupTime>
      <FreePrice>15</FreePrice>
      <HasTableOrderPrint>true</HasTableOrderPrint>
      <IntegralAdd>29</IntegralAdd>
      <IntegralFree>28</IntegralFree>
      <IntegralFreePoint>33</IntegralFreePoint>
      <IntegralFreePrice>32</IntegralFreePrice>
      <IntegralMinus>30</IntegralMinus>
      <IsOnlineOrderDownload>true</IsOnlineOrderDownload>
      <IsTaxAddition>true</IsTaxAddition>
      <LctechTokenId>sample string 39</LctechTokenId>
      <LinePayTradeId>sample string 43</LinePayTradeId>
      <MedicalVisitType>None</MedicalVisitType>
      <MemberCardId>sample string 36</MemberCardId>
      <Memo>sample string 10</Memo>
      <Memo2>sample string 11</Memo2>
      <OnlineOrderPayType>PayInStore</OnlineOrderPayType>
      <OnlineOrderRejectReason>sample string 41</OnlineOrderRejectReason>
      <OnlineOrderReserveTimeType>Today</OnlineOrderReserveTimeType>
      <OnlineOrderSalNumber>sample string 42</OnlineOrderSalNumber>
      <OnlineOrderStatusType>Checking</OnlineOrderStatusType>
      <OnlineOrderTime>2025-12-29T18:52:55.9302876+00:00</OnlineOrderTime>
      <OrderTerminalId>sample string 47</OrderTerminalId>
      <OriginalPrice>9</OriginalPrice>
      <PXPayTradeId>sample string 44</PXPayTradeId>
      <PXPayTradeNo>sample string 45</PXPayTradeNo>
      <PeopleType1>16</PeopleType1>
      <PeopleType2>17</PeopleType2>
      <PeopleType3>18</PeopleType3>
      <PeopleType4>19</PeopleType4>
      <PurchaseCostType>NormalCost</PurchaseCostType>
      <Receiver>sample string 50</Receiver>
      <ReceiverAddress>sample string 58</ReceiverAddress>
      <ReceiverPhone>sample string 51</ReceiverPhone>
      <ReceiverTelephone>sample string 57</ReceiverTelephone>
      <RelationId>sample string 35</RelationId>
      <SalNumber>sample string 2</SalNumber>
      <SalPriceType>DefaultSalPrice</SalPriceType>
      <SalTempId>sample string 1</SalTempId>
      <SalType>Normal</SalType>
      <SalerId>sample string 34</SalerId>
      <ServiceNumber>13</ServiceNumber>
      <SourceType>Front</SourceType>
      <StartTime>2025-12-29T18:52:55.9302876+00:00</StartTime>
      <TableMapId>sample string 25</TableMapId>
      <TableMapName>sample string 26</TableMapName>
      <TableOrderType>None</TableOrderType>
      <Telephone>sample string 22</Telephone>
      <TerminalId>sample string 3</TerminalId>
      <Total>8</Total>
      <TotalDiscountPrice>6</TotalDiscountPrice>
      <TotalFreePrice>7</TotalFreePrice>
      <TourGuideId>sample string 49</TourGuideId>
      <TradeType>Sal</TradeType>
      <TravelAgencyId>sample string 48</TravelAgencyId>
      <UniformNumber>sample string 40</UniformNumber>
      <VehicleNumber>sample string 55</VehicleNumber>
      <VehicleType>None</VehicleType>
    </SalTemp>
    <SalTempFunctions>
      <SalTempFunctionTM>
        <FunctionId>sample string 3</FunctionId>
        <SalTempId>sample string 2</SalTempId>
        <Total>5</Total>
        <Value>4</Value>
        <FunctionName>sample string 1</FunctionName>
      </SalTempFunctionTM>
      <SalTempFunctionTM>
        <FunctionId>sample string 3</FunctionId>
        <SalTempId>sample string 2</SalTempId>
        <Total>5</Total>
        <Value>4</Value>
        <FunctionName>sample string 1</FunctionName>
      </SalTempFunctionTM>
    </SalTempFunctions>
  </Trade>
</OnlineOrderPostDTO>

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.