十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
本接口应在服务器端调用,详细说明参见 服务端API。
创新互联坚持“要么做到,要么别承诺”的工作理念,服务领域包括:网站设计制作、成都网站制作、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的卫滨网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!
取消配送单接口
POST https://api.weixin.qq.com/cgi-bin/express/local/business/order/cancel?access_token=ACCESS_TOKEN
| 属性 | 类型 | 默认值 | 必填 | 说明 | 
|---|---|---|---|---|
| access_token | string | 是 | 接口调用凭证 | |
| shopid | string | 是 | 商家id, 由配送公司分配的appkey | |
| shop_order_id | string | 是 | 唯一标识订单的 ID,由商户生成 | |
| shop_no | string | 是 | 商家门店编号,如果只有一个门店,闪送shop_no必填,值为店铺id | |
| delivery_sign | string | 是 | 用配送公司提供的appSecret加密的校验串说明 | |
| delivery_id | string | 是 | 快递公司ID | |
| waybill_id | string | 否 | 配送单id | |
| cancel_reason_id | number | 是 | 取消原因Id | |
| cancel_reason | string | 否 | 取消原因 | 
cancel_reason_id 的合法值
| 值 | 说明 | 最低版本 | 
|---|---|---|
| 1 | 暂时不需要邮寄 | |
| 2 | 价格不合适 | |
| 3 | 订单信息有误,重新下单 | |
| 4 | 骑手取货不及时 | |
| 5 | 骑手配送不及时 | |
| 6 | 其他原因( 如果选择6,需要填写取消原因,否则不需要填写 ) | 
| 属性 | 类型 | 说明 | 
|---|---|---|
| errcode | number | 错误码, 当errcode==0或者不存在还需要看resultcode | 
| errmsg | string | 错误描述 | 
| resultcode | number | 运力返回的错误码 | 
| resultmsg | string | 运力返回的错误描述 | 
| deduct_fee | number | 扣除的违约金(单位:元),精确到分 | 
| desc | string | 说明 | 
调用本接口可向配送公司请求取消配送单,各家取消规则如下:
| 配送公司 | 取消规则 | 
|---|---|
| 顺丰同城急送 | 配送完成前任意节点可取消配送单 | 
| 闪送 | 配送完成前任意节点可取消配送单 | 
| 美团配送 | 配送完成前任意节点可取消配送单 | 
| 达达 | 骑手取货之前可取消配送单 | 
{
   "shopid": "123456",
   "shop_order_id": "123456",
   "waybill_id": "123456",
   "delivery_id": "123456",
   "cancel_reason_id": 1,
   "cancel_reason": "",
   "delivery_sign": "123456",
   "shop_no": "shop_no_111"
}
{
  "resultcode": 0,
  "resultmsg": "ok",
  "deduct_fee": 5,
  "desc": "blabla"
}