批量创建二程出库单


POST http://openapi.ck1info.com/v1/outboundOrders/multiple
接口说明: 每个客户的不同PackageId第一次提交视作新增订单;如果数据改动后再次提交,视作修改订单(取消原订单,重新生成一个新的订单)
批量创建二程出库单,然后需要获取出库单状态,判断是否创建成功
Http 200 - 提交成功
Http 400 - 提交的数据有误,请检查

输入参数

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

长度: 0 ~ 30

必须

仓库Id

US

Packages Collection of Package

None.

必须

出库包裹信息,不超过20个包裹

Channel string

None.

发货规则,用于客户自提指定发货规则或者carrier

FedEx

SubmitLater boolean

None.

是否稍后提审,默认是false

false

输入参数的json形式
{
  "WarehouseId": "sample string 1",
  "Packages": [
    {
      "PackageId": "sample string 1",
      "PreSale": true,
      "ShipmentId": "sample string 2",
      "ServiceCode": "sample string 3",
      "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"
      },
      "Skus": [
        {
          "Sku": "sample string 1",
          "StorageNo": "sample string 2",
          "Quantity": 3,
          "ProductName": "sample string 4",
          "Price": 5,
          "PlatformItemId": "sample string 6",
          "PlatformTransactionId": "sample string 7",
          "HsCode": "sample string 8"
        },
        {
          "Sku": "sample string 1",
          "StorageNo": "sample string 2",
          "Quantity": 3,
          "ProductName": "sample string 4",
          "Price": 5,
          "PlatformItemId": "sample string 6",
          "PlatformTransactionId": "sample string 7",
          "HsCode": "sample string 8"
        }
      ],
      "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": 4,
      "SellPriceCurrency": "sample string 5",
      "Remark": "sample string 6",
      "SalesPlatform": "sample string 7",
      "ImportTrackingNumber": "sample string 8",
      "VatCode": "sample string 9",
      "CodAmount": 10,
      "ImportLabel": "sample string 11",
      "IsCreateNewOrder": true,
      "CarrierName": "sample string 12",
      "CarrierService": "sample string 13"
    },
    {
      "PackageId": "sample string 1",
      "PreSale": true,
      "ShipmentId": "sample string 2",
      "ServiceCode": "sample string 3",
      "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"
      },
      "Skus": [
        {
          "Sku": "sample string 1",
          "StorageNo": "sample string 2",
          "Quantity": 3,
          "ProductName": "sample string 4",
          "Price": 5,
          "PlatformItemId": "sample string 6",
          "PlatformTransactionId": "sample string 7",
          "HsCode": "sample string 8"
        },
        {
          "Sku": "sample string 1",
          "StorageNo": "sample string 2",
          "Quantity": 3,
          "ProductName": "sample string 4",
          "Price": 5,
          "PlatformItemId": "sample string 6",
          "PlatformTransactionId": "sample string 7",
          "HsCode": "sample string 8"
        }
      ],
      "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": 4,
      "SellPriceCurrency": "sample string 5",
      "Remark": "sample string 6",
      "SalesPlatform": "sample string 7",
      "ImportTrackingNumber": "sample string 8",
      "VatCode": "sample string 9",
      "CodAmount": 10,
      "ImportLabel": "sample string 11",
      "IsCreateNewOrder": true,
      "CarrierName": "sample string 12",
      "CarrierService": "sample string 13"
    }
  ],
  "Channel": "sample string 2",
  "SubmitLater": 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"
  }
]