POST api/orders/getproductfreight
获取商品运费
Request Information
URI Parameters
None.
Body Parameters
ProducctFreightModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
用户Id |
string |
None. |
| Area |
地区 |
Collection of integer |
None. |
| OrderProducts |
订单产品 |
Collection of OrderProductBuyModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": "sample string 1",
"Area": [
1,
2
],
"OrderProducts": [
{
"UserId": "sample string 1",
"ProductId": "sample string 2",
"BuyCount": 3,
"Towns": 4
},
{
"UserId": "sample string 1",
"ProductId": "sample string 2",
"BuyCount": 3,
"Towns": 4
}
]
}
application/xml, text/xml
Sample:
<ProducctFreightModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Waiter.Mall.Apis.Models">
<Area xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Area>
<OrderProducts>
<OrderProductBuyModel>
<BuyCount>3</BuyCount>
<ProductId>sample string 2</ProductId>
<Towns>4</Towns>
<UserId>sample string 1</UserId>
</OrderProductBuyModel>
<OrderProductBuyModel>
<BuyCount>3</BuyCount>
<ProductId>sample string 2</ProductId>
<Towns>4</Towns>
<UserId>sample string 1</UserId>
</OrderProductBuyModel>
</OrderProducts>
<UserId>sample string 1</UserId>
</ProducctFreightModel>
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.