创建中国直发订单


POST https://openapi.chukou1.cn:82/v1/directExpressOrders
接口说明: 每个客户的不同PackageId第一次提交视作新增订单;如果数据改动后再次提交,视作修改订单(取消原订单,重新生成一个新的订单)
创建中国直发订单,然后调用【获取直发订单状态】接口,【获取直发订单状态】接口响应数据中的Status值为"Created",并且TrackingNumber有值,才算创建成功
Http 201 - 提交成功
Http 200 - 订单已存在,忽略当前提交的订单
Http 400 - 提交的数据有误,请检查

输入参数

Body Parameters
名称类型格式要求是否必须描述示例值
Location string

长度: 0 ~ 20

处理点 如不填则使用商家默认

GZ

Package Package

None.

必须

直发包裹信息

Remark string

长度: 0 ~ 1000

备注

remark

SubmitLater boolean

None.

是否稍后提审,默认是false

false

输入参数的json形式
{
  "Location": "sample string 1",
  "Package": {
    "PackageId": "sample string 1",
    "ServiceCode": "sample string 2",
    "ShipToAddress": {
      "TaxId": "sample string 1",
      "HouseNumber": "sample string 2",
      "Contact": "sample string 3",
      "Phone": "sample string 4",
      "Email": "sample string 5",
      "Country": "sample string 6",
      "Province": "sample string 7",
      "City": "sample string 8",
      "Street1": "sample string 9",
      "Street2": "sample string 10",
      "Postcode": "sample string 11"
    },
    "Sender": {
      "Contact": "sample string 1",
      "Phone": "sample string 2",
      "Email": "sample string 3",
      "Country": "sample string 4",
      "Province": "sample string 5",
      "City": "sample string 6",
      "Street1": "sample string 7",
      "Street2": "sample string 8",
      "Postcode": "sample string 9"
    },
    "Weight": 3,
    "Length": 4,
    "Width": 5,
    "Height": 6,
    "Skus": [
      {
        "Sku": "sample string 1",
        "Quantity": 2,
        "Weight": 3,
        "DeclareValue": 4,
        "NewDeclareValue": {
          "Value": 1,
          "Currency": "sample string 2"
        },
        "ExportsDeclareValue": {
          "Value": 1,
          "Currency": "sample string 2"
        },
        "DeclareNameEn": "sample string 5",
        "DeclareNameCn": "sample string 6",
        "ProductName": "sample string 7",
        "Price": 8,
        "HsCode": "sample string 9",
        "SaleURL": "sample string 10"
      },
      {
        "Sku": "sample string 1",
        "Quantity": 2,
        "Weight": 3,
        "DeclareValue": 4,
        "NewDeclareValue": {
          "Value": 1,
          "Currency": "sample string 2"
        },
        "ExportsDeclareValue": {
          "Value": 1,
          "Currency": "sample string 2"
        },
        "DeclareNameEn": "sample string 5",
        "DeclareNameCn": "sample string 6",
        "ProductName": "sample string 7",
        "Price": 8,
        "HsCode": "sample string 9",
        "SaleURL": "sample string 10"
      }
    ],
    "ExportsInfo": {
      "EoriCode": "sample string 1",
      "Country": "sample string 2",
      "Province": "sample string 3",
      "City": "sample string 4",
      "Street1": "sample string 5",
      "Street2": "sample string 6",
      "Postcode": "sample string 7",
      "Contact": "sample string 8",
      "Company": "sample string 9",
      "Phone": "sample string 10",
      "Email": "sample string 11"
    },
    "ImportsInfo": {
      "EoriCode": "sample string 1",
      "Country": "sample string 2",
      "Province": "sample string 3",
      "City": "sample string 4",
      "Street1": "sample string 5",
      "Street2": "sample string 6",
      "Postcode": "sample string 7",
      "Contact": "sample string 8",
      "Company": "sample string 9",
      "Phone": "sample string 10",
      "Email": "sample string 11"
    },
    "SellPrice": 7,
    "SellPriceCurrency": "sample string 8",
    "SalesPlatform": "sample string 9",
    "OtherSalesPlatform": "sample string 10",
    "ImportTrackingNumber": "sample string 11",
    "Custom": "sample string 12",
    "Remark": "sample string 13",
    "VatCode": "sample string 14",
    "CodAmount": 15,
    "IsCreateNewOrder": true
  },
  "Remark": "sample string 2",
  "SubmitLater": true
}

返回结果

None.