xiaodian.logistics.online.send

  • 免费
  • 需要授权
  • 结果不加密
发货接口,支持拆单,可以多次调用api进行不同商品发货,物流expressCode一般为快递对应公司的拼音,例如快递顺心捷达的expressCode是shunxinjieda,如果接口返回物流公司不存在等信息可在答疑群中反馈:QQ群:421068367

公共参数

名称 类型 必选 描述
app_key Long 接入时申请的app_key
method String 接口名称
access_token String Oauth2.0授权获得的access_token
sign String 对 API 调用参数(除sign外)进行 md5 加密获得。参数的顺序为字母表的顺序
timestamp Long 时间戳,使用Unix时间戳格式
format String 响应格式。默认为json格式,固定
sign_method String 参数的加密方法选择,当前只支持Md5
version String API协议版本,固定值为:1.0

输入参数

名称 类型 必选 描述 示例值
openAPIOrderConsignReqDTO
Object  {
    "shipType":0,//固定值,写死传入0 
    needSplit:true,//是否需要拆单。false的时候忽略传入itemOrderList,会把shopOrderId传入的这笔订单发货。true只发货itemOrderList传入订单 
    itemOrderList:[34343,1333],//拆单的商品级子订单,在needSplit=true起效 
    shopOrderId:1111, //店铺订单id 
    expressCode:"",//物流公司编码 
    expressId:"",//运单号 
}
shipType
Number 发货类型(物流发货:0,虚拟发货:1) 0
itemOrderList
Number[] 子订单ID(不拆单发货时不用填写)
shopOrderId
Number 店铺订单ID
expressCode
String [{
    "expressName": "中通快递",
    "expressCode": "zhongtong"
}, {
    "expressName": "中通快递(国际件)",
    "expressCode": "zhongtongguoji"
}, {
    "expressName": "中通快运【大件、重货】",
    "expressCode": "zhongtongkuaiyun"
}, {
    "expressName": "圆通速递",
    "expressCode": "yuantong"
}, {
    "expressName": "申通快递",
    "expressCode": "shentong"
}, {
    "expressName": "韵达快递",
    "expressCode": "yunda"
}, {
    "expressName": "百世快递",
    "expressCode": "huitongkuaidi"
}, {
    "expressName": "百世快运【大件、重货】",
    "expressCode": "baishikuaiyun"
}, {
    "expressName": "京广速递",
    "expressCode": "jingguangsudi"
}, {
    "expressName": "天天快递",
    "expressCode": "tiantian"
}, {
    "expressName": "顺丰速运",
    "expressCode": "shunfeng"
}, {
    "expressName": "EMS",
    "expressCode": "ems"
}, {
    "expressName": "快捷速递",
    "expressCode": "kuaijiesudi"
}, {
    "expressName": "邮政包裹",
    "expressCode": "youzhengguonei"
}, {
    "expressName": "优速快递",
    "expressCode": "youshuwuliu"
}, {
    "expressName": "国通快递",
    "expressCode": "guotongkuaidi"
}, {
    "expressName": "德邦物流",
    "expressCode": "debangwuliu"
}, {
    "expressName": "宅急送",
    "expressCode": "zhaijisong"
}, {
    "expressName": "全峰快递",
    "expressCode": "quanfengkuaidi"
}, {
    "expressName": "USPS",
    "expressCode": "usps"
}, {
    "expressName": "中铁物流",
    "expressCode": "zhongtielogistic"
}, {
    "expressName": "明大快递",
    "expressCode": "adaexpress"
}, {
    "expressName": "PCA",
    "expressCode": "pcaexpress"
}, {
    "expressName": "cnpex中邮快递",
    "expressCode": "cnpex"
}, {
    "expressName": "安能物流",
    "expressCode": "annengwuliu"
}, {
    "expressName": "Australia post",
    "expressCode": "auspost"
}, {
    "expressName": "Parcel force",
    "expressCode": "parcelforce"
}, {
    "expressName": "dhl",
    "expressCode": "dhlen"
}, {
    "expressName": "法国邮局",
    "expressCode": "chronopostfren"
}, {
    "expressName": "colissimo",
    "expressCode": "colissimo"
}, {
    "expressName": "美国顺达快递",
    "expressCode": "sundarexpress"
}, {
    "expressName": "捷记方舟",
    "expressCode": "ajexpress"
}, {
    "expressName": "方舟速递",
    "expressCode": "arkexpress"
}, {
    "expressName": "长江国际速递",
    "expressCode": "changjiang"
}, {
    "expressName": "CJ物流",
    "expressCode": "doortodoor"
}, {
    "expressName": "logen路坚",
    "expressCode": "ilogen"
}, {
    "expressName": "日本郵便",
    "expressCode": "japanposten"
}, {
    "expressName": "ヤマト運輸",
    "expressCode": "yamato"
}, {
    "expressName": "佐川急便",
    "expressCode": "sagawa"
}, {
    "expressName": "西濃運輸",
    "expressCode": "seino"
}, {
    "expressName": "贝海国际速递",
    "expressCode": "xlobo"
}, {
    "expressName": "韩国邮政",
    "expressCode": "koreapost"
}, {
    "expressName": "联邦快递",
    "expressCode": "lianbangkuaidi"
}, {
    "expressName": "UPS",
    "expressCode": "ups"
}, {
    "expressName": "佳吉快运",
    "expressCode": "jiajiwuliu"
}, {
    "expressName": "EMS国际",
    "expressCode": "emsguoji"
}, {
    "expressName": "民航快递",
    "expressCode": "minghangkuaidi"
}, {
    "expressName": "中邮物流",
    "expressCode": "zhongyouwuliu"
}, {
    "expressName": "风行天下",
    "expressCode": "fengxingtianxia"
}, {
    "expressName": "默认快递",
    "expressCode": "defaultlogistics"
}, {
    "expressName": "泛远国际保税仓",
    "expressCode": "fargroup"
}, {
    "expressName": "仓库WMS",
    "expressCode": "warehouse"
}, {
    "expressName": "安鲜达",
    "expressCode": "exfresh"
}, {
    "expressName": "跨越速运",
    "expressCode": "kuayue"
}, {
    "expressName": "京东快递",
    "expressCode": "jd"
}, {
    "expressName": "品骏快递",
    "expressCode": "pjbest"
}, {
    "expressName": "速尔物流",
    "expressCode": "suer"
}, {
    "expressName": "如风达",
    "expressCode": "rufengda"
}, {
    "expressName": "苏宁",
    "expressCode": "suning"
}, {
    "expressName": "全一快递",
    "expressCode": "quanyikuaidi"
}, {
    "expressName": "龙邦物流",
    "expressCode": "longbanwuliu"
}, {
    "expressName": "联昊通",
    "expressCode": "lianhaowuliu"
}, {
    "expressName": "芝麻开门",
    "expressCode": "zhimakaimen"
}, {
    "expressName": "东骏快捷物流",
    "expressCode": "dj56"
}, {
    "expressName": "龙邦快递",
    "expressCode": "longbangkuaidi"
}, {
    "expressName": "联昊通速递",
    "expressCode": "lianhaotongsudi"
}, {
    "expressName": "卓志速运",
    "expressCode": "esdex"
}, {
    "expressName": "韵达快运【大件、重货】",
    "expressCode": "yundakuaiyun"
}, {
    "expressName": "其它",
    "expressCode": "others"
}, {
    "expressName": "壹米滴答",
    "expressCode": "ymdd"
}, {
    "expressName": "安迅物流",
    "expressCode": "AX"
}, {
    "expressName": "日日顺物流",
    "expressCode": "rrs"
}, {
    "expressName": "D速物流",
    "expressCode": "disuwuliu"
}, {
    "expressName": "九曳供应链",
    "expressCode": "jiuyescm"
}, {
    "expressName": "极兔速递",
    "expressCode": "jtsd"
}, {
    "expressName": "丹鸟快递",
    "expressCode": "danniao"
}, {
    "expressName": "远成物流",
    "expressCode": "YCWL"
}, {
    "expressName": "安得物流",
    "expressCode": "annto"
}, {
    "expressName": "众邮快递",
    "expressCode": "zhongyouex"
}, {
    "expressName": "平安达腾飞",
    "expressCode": "pingandatengfei"
}, {
    "expressName": "丰网速运",
    "expressCode": "fengwang"
}, {
    "expressName": "加运美速递",
    "expressCode": "jiayunmeiwuliu"
}, {
    "expressName": "顺心捷达",
    "expressCode": "shunxinjieda"
}, {
    "expressName": "德邦物流(大件)",
    "expressCode": "debangwuliudajian"
}]
expressId
String 运单号
needSplit
Boolean 是否需要拆单

返回参数

名称 类型 描述 默认值
result
Object 发货返回结果
data
String 发货是否成功 true
status
Object 返回状态描述
code
String 状态码 0000000
msg
String 描述 操作成功

请求参数示例

1).
{ "shipType": 0, "itemOrderList": [80510144545394], "shopOrderId": 80510144535394, "expressCode": "", "expressId": "", "sellerUserId": 152694870, "needSplit": false }

返回示例

1).
{ "result": { "data": {hasShipSuccess:true} }, "status": { "code": "0000000", "msg": "发货成功 " } }

异常示例

1).
{ "result": { "data": {“hasShipSuccess”:false } }, "status": { "code": "0000000", "msg": "发货失败 " } }