批量创建中国直发订单


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

输入参数

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

长度: 0 ~ 20

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

GZ

Packages Collection of Package

None.

必须

直发包裹信息,不超过20个

输入参数的json形式
{
  "Location": "sample string 1",
  "Packages": [
    {
      "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
    },
    {
      "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
    }
  ]
}

返回结果

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

None.

包裹Id

Success boolean

None.

是否成功

Message string

None.

错误消息

ErrorCode string

None.

错误代码

返回结果的json形式
[
  {
    "PackageId": "sample string 1",
    "Success": true,
    "Message": "sample string 3",
    "ErrorCode": "sample string 4"
  },
  {
    "PackageId": "sample string 1",
    "Success": true,
    "Message": "sample string 3",
    "ErrorCode": "sample string 4"
  }
]