POST api/jd/trades

创建京东订单。 注意,需要在header里加上X-YUAN-APPKEY。

Request Information

URI Parameters

None.

Body Parameters

订单信息。

TradeModelClientSubmit
NameDescriptionTypeAdditional information
AccountId

获取或设置账户编号。(系统分配)

string

None.

Address

获取或设置地区。

string

None.

Province

获取或设置收货人省份编号。

integer

None.

City

获取或设置城市编号。

integer

None.

County

获取或设置送货地址地区编号。

integer

None.

town

获取或设置送货地址乡镇编号。

integer

None.

Freight

获取或设置订单的运费金额。

integer

None.

Mobile

获取或设置收货手机号码。

string

None.

Name

获取或设置收货人姓名。

string

None.

Uid

获取或设置用户编号。

string

None.

TradeItems

获取或设置订单详情。

Collection of TradeItemClientSubmit

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": "sample string 1",
  "Address": "sample string 2",
  "Province": 3,
  "City": 4,
  "County": 5,
  "town": 6,
  "Freight": 7,
  "Mobile": "sample string 8",
  "Name": "sample string 9",
  "Uid": "sample string 10",
  "TradeItems": [
    {
      "Count": 1,
      "Sku": 2
    },
    {
      "Count": 1,
      "Sku": 2
    }
  ]
}

application/xml, text/xml

Sample:
<TradeModelClientSubmit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Waiter.JD.Api.Mall.Models.JDTrade">
  <AccountId>sample string 1</AccountId>
  <Address>sample string 2</Address>
  <City>4</City>
  <County>5</County>
  <Freight>7</Freight>
  <Mobile>sample string 8</Mobile>
  <Name>sample string 9</Name>
  <Province>3</Province>
  <TradeItems>
    <TradeItemClientSubmit>
      <Count>1</Count>
      <Sku>2</Sku>
    </TradeItemClientSubmit>
    <TradeItemClientSubmit>
      <Count>1</Count>
      <Sku>2</Sku>
    </TradeItemClientSubmit>
  </TradeItems>
  <Uid>sample string 10</Uid>
  <town>6</town>
</TradeModelClientSubmit>

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.