POST api/orders/fastbuy

立刻购买

Request Information

URI Parameters

None.

Body Parameters

OrderProductBuyModel
NameDescriptionTypeAdditional information
UserId

用户Id

string

None.

ProductId

商品Id

string

None.

BuyCount

购买数量

integer

None.

Towns

乡镇编号(弃用)

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "ProductId": "sample string 2",
  "BuyCount": 3,
  "Towns": 4
}

application/xml, text/xml

Sample:
<OrderProductBuyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Waiter.Mall.Apis.Models">
  <BuyCount>3</BuyCount>
  <ProductId>sample string 2</ProductId>
  <Towns>4</Towns>
  <UserId>sample string 1</UserId>
</OrderProductBuyModel>

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.