POST api/Shopping/QueryListExpressB

C10B:订单的配送方式 需要传递一个收货地址的id,地址不同,可能运费会不同

Request Information

URI Parameters

None.

Body Parameters

用户的收货地址

ExpressAppIn
NameDescriptionTypeAdditional information
addressGUID

收货地址的id,地址不同,可能运费会不同

string

None.

Money

商品金额,如果是商城的时候传入,则根据商品金额计算运费

decimal number

None.

Count

提货商品数量,如果是提货订单下单的时候传入,则根据商品数量计算运费

integer

None.

Type

1:商城,2:提货 3:积分

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "addressGUID": "sample string 1",
  "Money": 2.1,
  "Count": 3,
  "Type": 4
}

application/xml, text/xml

Sample:
<ExpressAppIn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.ViewModel">
  <Count>3</Count>
  <Money>2.1</Money>
  <Type>4</Type>
  <addressGUID>sample string 1</addressGUID>
</ExpressAppIn>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ExpressAppIn'.

Response Information

Resource Description

C10B:订单的配送方式 需要传递一个收货地址的id,地址不同,可能运费会不同

ResultModelOfExpressViewModel
NameDescriptionTypeAdditional information
code

integer

None.

msg

string

None.

data

ExpressViewModel

None.

data2

ExpressViewModel

None.

count

integer

None.

SessionKey

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2",
  "data": {
    "ExpressGUID": "sample string 1",
    "ExpressName": "sample string 2",
    "ExpressDesc": "sample string 3",
    "ExpressOrder": 4,
    "ExpressMoney": 5
  },
  "data2": {
    "ExpressGUID": "sample string 1",
    "ExpressName": "sample string 2",
    "ExpressDesc": "sample string 3",
    "ExpressOrder": 4,
    "ExpressMoney": 5
  },
  "count": 1,
  "SessionKey": "sample string 3"
}

application/xml, text/xml

Sample:
<ResultModelOfExpressViewModel_PMZaNr5Z xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.RESTfulApi.Models.Model">
  <SessionKey>sample string 3</SessionKey>
  <code>1</code>
  <count>1</count>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.ViewModel">
    <ExpressDesc xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">sample string 3</ExpressDesc>
    <ExpressGUID xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">sample string 1</ExpressGUID>
    <ExpressMoney xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">5</ExpressMoney>
    <ExpressName xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">sample string 2</ExpressName>
    <ExpressOrder xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">4</ExpressOrder>
  </data>
  <data2 xmlns:d2p1="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.ViewModel">
    <ExpressDesc xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">sample string 3</ExpressDesc>
    <ExpressGUID xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">sample string 1</ExpressGUID>
    <ExpressMoney xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">5</ExpressMoney>
    <ExpressName xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">sample string 2</ExpressName>
    <ExpressOrder xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Entity">4</ExpressOrder>
  </data2>
  <msg>sample string 2</msg>
</ResultModelOfExpressViewModel_PMZaNr5Z>