批量创建中国直发订单


POST https://eu-openapi.chukou1.cn:81/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",
        "RecipientBirthday": "sample string 3",
        "IDNumber": "sample string 4",
        "BankCardLast4digits": "sample string 5",
        "PaymentType": "sample string 6",
        "IssuingInstitution": "sample string 7",
        "Taxfree": "sample string 8",
        "DutyParagraph": "sample string 9",
        "Contact": "sample string 10",
        "Phone": "sample string 11",
        "Email": "sample string 12",
        "Country": "sample string 13",
        "Province": "sample string 14",
        "City": "sample string 15",
        "Street1": "sample string 16",
        "Street2": "sample string 17",
        "Postcode": "sample string 18"
      },
      "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",
          "ProductLink": "sample string 11",
          "ProductDescription": "sample string 12",
          "ProductCategories": "sample string 13",
          "MaterialEN": "sample string 14"
        },
        {
          "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",
          "ProductLink": "sample string 11",
          "ProductDescription": "sample string 12",
          "ProductCategories": "sample string 13",
          "MaterialEN": "sample string 14"
        }
      ],
      "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",
        "RecipientBirthday": "sample string 3",
        "IDNumber": "sample string 4",
        "BankCardLast4digits": "sample string 5",
        "PaymentType": "sample string 6",
        "IssuingInstitution": "sample string 7",
        "Taxfree": "sample string 8",
        "DutyParagraph": "sample string 9",
        "Contact": "sample string 10",
        "Phone": "sample string 11",
        "Email": "sample string 12",
        "Country": "sample string 13",
        "Province": "sample string 14",
        "City": "sample string 15",
        "Street1": "sample string 16",
        "Street2": "sample string 17",
        "Postcode": "sample string 18"
      },
      "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",
          "ProductLink": "sample string 11",
          "ProductDescription": "sample string 12",
          "ProductCategories": "sample string 13",
          "MaterialEN": "sample string 14"
        },
        {
          "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",
          "ProductLink": "sample string 11",
          "ProductDescription": "sample string 12",
          "ProductCategories": "sample string 13",
          "MaterialEN": "sample string 14"
        }
      ],
      "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"
  }
]