本接口应在服务器端调用,详细说明参见服务端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"
} 备案信息: 粤ICP备15087711号-2
Copyright © 2008-2025 啊嘎哇在线工具箱 All Rights.
本站所有资料来源于网络,版权归原作者所有,仅作学习交流使用,如不慎侵犯了您的权利,请联系我们。