POST api/OpenWebApi/CreateReplyOrder

创建回邮订单

Request Information

URI Parameters

None.

Body Parameters

订单信息

CreateReplyOrderInfo
NameDescriptionTypeAdditional information
customerOrderNo

客户订单号,必填

string

Required

String length: inclusive between 0 and 32

userCode

客户代码,必填

string

Required

String length: inclusive between 0 and 32

parcelType

包裹类型,取值范围[10:包裹/11:PAK 袋/12:文件],必填

integer

Required

taxPayMode

税金支付方式,取值范围[10:DDU/11:DDP]

integer

Required

packageLength

高,单位CM

decimal number

Required

Matching regular expression pattern: ^([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(.[0-9]{1,2})?$

packageWidth

长,单位CM

decimal number

Required

Matching regular expression pattern: ^([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(.[0-9]{1,2})?$

packageHeight

宽,单位CM

decimal number

Required

Matching regular expression pattern: ^([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(.[0-9]{1,2})?$

packageWeight

实重,单位KG

decimal number

Required

Matching regular expression pattern: ^([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(.[0-9]{1,2})?$

deliveryCompany

运输快递公司,取值范围[UPS/USPS],必填

string

Required

String length: inclusive between 0 and 32

shipper

发件人信息,必填

ReplyOrderShipperInfo

Required

orderDeclareList

申报信息,必填

Collection of ReplyOrderDeclareInfo

Required

Request Formats

application/json, text/json

Sample:
{
  "customerOrderNo": "sample string 1",
  "userCode": "sample string 2",
  "parcelType": 3,
  "taxPayMode": 4,
  "packageLength": 5.0,
  "packageWidth": 6.0,
  "packageHeight": 7.0,
  "packageWeight": 8.0,
  "deliveryCompany": "sample string 9",
  "shipper": {
    "shipperName": "sample string 1",
    "shipperCompany": "sample string 2",
    "shipperCountry": "sample string 3",
    "shipperProvince": "sample string 4",
    "shipperCity": "sample string 5",
    "shipperDistrict": "sample string 6",
    "shipperAddress": "sample string 7",
    "shipperDoorplate": "sample string 8",
    "shipperStreet": "sample string 9",
    "shipperPostcode": "sample string 10",
    "shipperPhone": "sample string 11",
    "shipperEmail": "sample string 12"
  },
  "orderDeclareList": [
    {
      "englishName": "sample string 1",
      "chineseName": "sample string 2",
      "quantity": 3,
      "brand": "sample string 4",
      "goodsBarcode": "sample string 5",
      "unitNetWeight": 6.0,
      "unitDeclarePrice": 7.0,
      "hsCode": "sample string 8",
      "productModel": "sample string 9",
      "material": "sample string 10",
      "purpose": "sample string 11",
      "sku": "sample string 12",
      "pickingRemark": "sample string 13",
      "productUrl": "sample string 14",
      "origin": "sample string 15"
    },
    {
      "englishName": "sample string 1",
      "chineseName": "sample string 2",
      "quantity": 3,
      "brand": "sample string 4",
      "goodsBarcode": "sample string 5",
      "unitNetWeight": 6.0,
      "unitDeclarePrice": 7.0,
      "hsCode": "sample string 8",
      "productModel": "sample string 9",
      "material": "sample string 10",
      "purpose": "sample string 11",
      "sku": "sample string 12",
      "pickingRemark": "sample string 13",
      "productUrl": "sample string 14",
      "origin": "sample string 15"
    }
  ]
}

application/xml, text/xml

Sample:
<CreateReplyOrderInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenWebApi.Models.Request">
  <customerOrderNo>sample string 1</customerOrderNo>
  <deliveryCompany>sample string 9</deliveryCompany>
  <orderDeclareList>
    <ReplyOrderDeclareInfo>
      <brand>sample string 4</brand>
      <chineseName>sample string 2</chineseName>
      <englishName>sample string 1</englishName>
      <goodsBarcode>sample string 5</goodsBarcode>
      <hsCode>sample string 8</hsCode>
      <material>sample string 10</material>
      <origin>sample string 15</origin>
      <pickingRemark>sample string 13</pickingRemark>
      <productModel>sample string 9</productModel>
      <productUrl>sample string 14</productUrl>
      <purpose>sample string 11</purpose>
      <quantity>3</quantity>
      <sku>sample string 12</sku>
      <unitDeclarePrice>7</unitDeclarePrice>
      <unitNetWeight>6</unitNetWeight>
    </ReplyOrderDeclareInfo>
    <ReplyOrderDeclareInfo>
      <brand>sample string 4</brand>
      <chineseName>sample string 2</chineseName>
      <englishName>sample string 1</englishName>
      <goodsBarcode>sample string 5</goodsBarcode>
      <hsCode>sample string 8</hsCode>
      <material>sample string 10</material>
      <origin>sample string 15</origin>
      <pickingRemark>sample string 13</pickingRemark>
      <productModel>sample string 9</productModel>
      <productUrl>sample string 14</productUrl>
      <purpose>sample string 11</purpose>
      <quantity>3</quantity>
      <sku>sample string 12</sku>
      <unitDeclarePrice>7</unitDeclarePrice>
      <unitNetWeight>6</unitNetWeight>
    </ReplyOrderDeclareInfo>
  </orderDeclareList>
  <packageHeight>7</packageHeight>
  <packageLength>5</packageLength>
  <packageWeight>8</packageWeight>
  <packageWidth>6</packageWidth>
  <parcelType>3</parcelType>
  <shipper>
    <shipperAddress>sample string 7</shipperAddress>
    <shipperCity>sample string 5</shipperCity>
    <shipperCompany>sample string 2</shipperCompany>
    <shipperCountry>sample string 3</shipperCountry>
    <shipperDistrict>sample string 6</shipperDistrict>
    <shipperDoorplate>sample string 8</shipperDoorplate>
    <shipperEmail>sample string 12</shipperEmail>
    <shipperName>sample string 1</shipperName>
    <shipperPhone>sample string 11</shipperPhone>
    <shipperPostcode>sample string 10</shipperPostcode>
    <shipperProvince>sample string 4</shipperProvince>
    <shipperStreet>sample string 9</shipperStreet>
  </shipper>
  <taxPayMode>4</taxPayMode>
  <userCode>sample string 2</userCode>
</CreateReplyOrderInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultOfCreateReplyOrderResult
NameDescriptionTypeAdditional information
Status

ResultStatusCode

None.

Msg

string

None.

Data

CreateReplyOrderResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 200,
  "Msg": "sample string 1",
  "Data": {
    "customerOrderNo": "sample string 1",
    "waybillNo": "sample string 2",
    "deliveryNo": "sample string 3",
    "labelUrl": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<ResultOfCreateReplyOrderResultlT2OjdAF xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenWebApi.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/OpenWebApi.Models.Response">
    <d2p1:customerOrderNo>sample string 1</d2p1:customerOrderNo>
    <d2p1:deliveryNo>sample string 3</d2p1:deliveryNo>
    <d2p1:labelUrl>sample string 4</d2p1:labelUrl>
    <d2p1:waybillNo>sample string 2</d2p1:waybillNo>
  </Data>
  <Msg>sample string 1</Msg>
  <Status>Success</Status>
</ResultOfCreateReplyOrderResultlT2OjdAF>