POST api/Order/AddOrder
Request Information
URI Parameters
None.
Body Parameters
AddOrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MemberId | integer |
None. |
|
| AreaId | integer |
None. |
|
| OrderProducts | Collection of OrderAddProduct |
None. |
|
| OrderChineseProducts | Collection of OrderAddChineseProduct |
None. |
|
| NumberOfItems | integer |
None. |
|
| TheAmountOfGoods | integer |
None. |
|
| Freight | integer |
None. |
|
| LumpSum | integer |
None. |
|
| InvoiceIssuingMethod | integer |
None. |
|
| InvoiceDeliveryMethod | integer |
None. |
|
| CarrierType | string |
None. |
|
| CarrierNumber | string |
None. |
|
| DonateCode | string |
None. |
|
| UniformNumbers | string |
None. |
|
| DeliveryID | integer |
None. |
|
| ShipDate | date |
None. |
|
| PaymentId | integer |
None. |
|
| CompanyName | string |
None. |
|
| Name | string |
None. |
|
| TelPhone | string |
None. |
|
| Phone | string |
None. |
|
| string |
None. |
||
| InvoiceName | string |
None. |
|
| InvoiceTelephone | string |
None. |
|
| InvoicePhone | string |
None. |
|
| InvoiceAddress | string |
None. |
|
| InvoiceCity | integer |
None. |
|
| InvoiceArea | integer |
None. |
|
| InvoiceIsOverseas | boolean |
None. |
|
| ReceiptId | integer |
None. |
|
| ReceiptName | string |
None. |
|
| ReceiptTelephone | string |
None. |
|
| ReceiptPhone | string |
None. |
|
| ReceiptAddress | string |
None. |
|
| ReceiptCity | integer |
None. |
|
| ReceiptArea | integer |
None. |
|
| ReceiptIsOverseas | boolean |
None. |
|
| Remark | string |
None. |
|
| Lang | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"memberId": 1,
"areaId": 2,
"orderProducts": [
{
"productId": 1,
"productSetId": 2,
"count": 3,
"price": 4
},
{
"productId": 1,
"productSetId": 2,
"count": 3,
"price": 4
}
],
"orderChineseProducts": [
{
"productId": 1,
"productSetId": 2,
"taste1": 3,
"taste2": 4,
"taste3": 5,
"taste4": 6,
"taste5": 7,
"taste6": 8,
"count": 9,
"price": 10
},
{
"productId": 1,
"productSetId": 2,
"taste1": 3,
"taste2": 4,
"taste3": 5,
"taste4": 6,
"taste5": 7,
"taste6": 8,
"count": 9,
"price": 10
}
],
"numberOfItems": 3,
"theAmountOfGoods": 4,
"freight": 5,
"lumpSum": 6,
"invoiceIssuingMethod": 7,
"invoiceDeliveryMethod": 8,
"carrierType": "sample string 9",
"carrierNumber": "sample string 10",
"donateCode": "sample string 11",
"uniformNumbers": "sample string 12",
"deliveryID": 13,
"shipDate": "2025-12-06T11:29:55.0910892+08:00",
"paymentId": 15,
"companyName": "sample string 16",
"name": "sample string 17",
"telPhone": "sample string 18",
"phone": "sample string 19",
"email": "sample string 20",
"invoiceName": "sample string 21",
"invoiceTelephone": "sample string 22",
"invoicePhone": "sample string 23",
"invoiceAddress": "sample string 24",
"invoiceCity": 25,
"invoiceArea": 26,
"invoiceIsOverseas": true,
"receiptId": 28,
"receiptName": "sample string 29",
"receiptTelephone": "sample string 30",
"receiptPhone": "sample string 31",
"receiptAddress": "sample string 32",
"receiptCity": 33,
"receiptArea": 34,
"receiptIsOverseas": true,
"remark": "sample string 36",
"lang": "sample string 37"
}
application/xml, text/xml
Sample:
<AddOrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BankproProduct.Models.ViewModel">
<AreaId>2</AreaId>
<CarrierNumber>sample string 10</CarrierNumber>
<CarrierType>sample string 9</CarrierType>
<CompanyName>sample string 16</CompanyName>
<DeliveryID>13</DeliveryID>
<DonateCode>sample string 11</DonateCode>
<Email>sample string 20</Email>
<Freight>5</Freight>
<InvoiceAddress>sample string 24</InvoiceAddress>
<InvoiceArea>26</InvoiceArea>
<InvoiceCity>25</InvoiceCity>
<InvoiceDeliveryMethod>8</InvoiceDeliveryMethod>
<InvoiceIsOverseas>true</InvoiceIsOverseas>
<InvoiceIssuingMethod>7</InvoiceIssuingMethod>
<InvoiceName>sample string 21</InvoiceName>
<InvoicePhone>sample string 23</InvoicePhone>
<InvoiceTelephone>sample string 22</InvoiceTelephone>
<Lang>sample string 37</Lang>
<LumpSum>6</LumpSum>
<MemberId>1</MemberId>
<Name>sample string 17</Name>
<NumberOfItems>3</NumberOfItems>
<OrderChineseProducts>
<OrderAddChineseProduct>
<Count>9</Count>
<Price>10</Price>
<ProductId>1</ProductId>
<Taste1>3</Taste1>
<Taste2>4</Taste2>
<Taste3>5</Taste3>
<Taste4>6</Taste4>
<Taste5>7</Taste5>
<Taste6>8</Taste6>
<productSetId>2</productSetId>
</OrderAddChineseProduct>
<OrderAddChineseProduct>
<Count>9</Count>
<Price>10</Price>
<ProductId>1</ProductId>
<Taste1>3</Taste1>
<Taste2>4</Taste2>
<Taste3>5</Taste3>
<Taste4>6</Taste4>
<Taste5>7</Taste5>
<Taste6>8</Taste6>
<productSetId>2</productSetId>
</OrderAddChineseProduct>
</OrderChineseProducts>
<OrderProducts>
<OrderAddProduct>
<Count>3</Count>
<Price>4</Price>
<ProductId>1</ProductId>
<productSetId>2</productSetId>
</OrderAddProduct>
<OrderAddProduct>
<Count>3</Count>
<Price>4</Price>
<ProductId>1</ProductId>
<productSetId>2</productSetId>
</OrderAddProduct>
</OrderProducts>
<PaymentId>15</PaymentId>
<Phone>sample string 19</Phone>
<ReceiptAddress>sample string 32</ReceiptAddress>
<ReceiptArea>34</ReceiptArea>
<ReceiptCity>33</ReceiptCity>
<ReceiptId>28</ReceiptId>
<ReceiptIsOverseas>true</ReceiptIsOverseas>
<ReceiptName>sample string 29</ReceiptName>
<ReceiptPhone>sample string 31</ReceiptPhone>
<ReceiptTelephone>sample string 30</ReceiptTelephone>
<Remark>sample string 36</Remark>
<ShipDate>2025-12-06T11:29:55.0910892+08:00</ShipDate>
<TelPhone>sample string 18</TelPhone>
<TheAmountOfGoods>4</TheAmountOfGoods>
<UniformNumbers>sample string 12</UniformNumbers>
</AddOrderModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.