创建中国直发订单,同步接口


POST http://openapi.ck1info.com/v1/directExpressOrders?sync={sync}
接口说明: 创建中国直发订单
Http 200 - 订单创建成功
Http 400 - 提交的数据有误,请检查

输入参数

URI Parameters
名称类型格式要求是否必须描述示例值
sync integer

None.

必须

同步标识,值为:1

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",
      "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
  },
  "Remark": "sample string 2",
  "SubmitLater": true
}

返回结果

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

None.

初始包裹重量(g)

600

PackingInit Packing

None.

初始包装尺寸(cm)

Weight integer

None.

核实包裹重量(g)

600

Packing Packing

None.

核实包装尺寸(cm)

ChargedWeight integer

None.

计费重量(g)

600

ServiceCode string

None.

产品代码

MailingDate string

None.

发件地当地发货日期

2024-11-08

PackageId string

None.

出库包裹ID

SMT23015236489

Ck1PackageId string

None.

处理号

EUU20160808TST00001

Status CreateStatus

None.

状态

Creating

HandleStatus DirectExpressOrderStatus

None.

处理状态

Submitted

TrackingNumber string

None.

跟踪号

T024963157

ExtraTrackNumber string

None.

副跟踪号

AZ123456QW

IsFinalTrackingNumber boolean

None.

是否是最终跟踪号,部分渠道是到仓后才会有最终跟踪号的

true

ShippingProvider string

None.

承运商

DHL

CreateFailedReason UnShippedReason

None.

创建失败原因

ShippingCosts Collection of ShippingCost

None.

费用列表,已完成出库才会返回费用信息

HasRemoteFee boolean

None.

是否产生偏远地区费用

WarehouseReceivedTime string

None.

分拣仓收到货物时间 yyyy/MM/dd HH:mm:ss

WarehouseDepartedTime string

None.

从分拣仓出库时间 yyyy/MM/dd HH:mm:ss

CreatedTime date

None.

包裹创建时间

返回结果的json形式
{
  "WeightInit": 1,
  "PackingInit": {
    "Length": 1,
    "Width": 2,
    "Height": 3
  },
  "Weight": 2,
  "Packing": {
    "Length": 1,
    "Width": 2,
    "Height": 3
  },
  "ChargedWeight": 3,
  "ServerSource": "sample string 4",
  "Country": "sample string 5",
  "ServiceCode": "sample string 6",
  "MailingDate": "sample string 7",
  "PackageId": "sample string 8",
  "Ck1PackageId": "sample string 9",
  "Status": "Creating",
  "HandleStatus": "Initial",
  "TrackingNumber": "sample string 10",
  "ExtraTrackNumber": "sample string 11",
  "IsFinalTrackingNumber": true,
  "ShippingProvider": "sample string 13",
  "RetryCount": 14,
  "CreateFailedReason": {
    "ReasonCode": "sample string 1",
    "ReasonText": "sample string 2",
    "ExtendMessage": "sample string 3"
  },
  "ShippingCosts": [
    {
      "Money": 1,
      "Currency": "sample string 2",
      "Type": "None",
      "Remark": "sample string 3"
    },
    {
      "Money": 1,
      "Currency": "sample string 2",
      "Type": "None",
      "Remark": "sample string 3"
    }
  ],
  "HasRemoteFee": true,
  "WarehouseReceivedTime": "sample string 16",
  "WarehouseDepartedTime": "sample string 17",
  "CreatedTime": "2025-01-18T10:05:15.751+08:00"
}