本文整理自网络,侵删。
immediateDelivery.mockUpdateOrder
本接口应在服务器端调用,详细说明参见服务端API。模拟配送公司更新配送单状态, 该接口只用于沙盒环境,即订单并没有真实流转到运力方
请求地址
POST https://api.weixin.qq.com/cgi-bin/express/local/business/test_update_order?access_token=ACCESS_TOKEN
请求参数
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
access_token | string | 是 | 接口调用凭证 | |
shopid | string | 是 | 商家id, 必须是 "test_shop_id" | |
shop_order_id | string | 是 | 唯一标识订单的 ID,由商户生成 | |
action_time | number | 是 | 状态变更时间点,Unix秒级时间戳 | |
order_status | number | 是 | 配送状态,枚举值 | |
action_msg | string | 否 | 附加信息 |
返回值
Object
属性 | 类型 | 说明 |
---|---|---|
errcode | number | 错误码, 当errcode==0或者不存在还需要看resultcode |
errmsg | string | 错误描述 |
resultcode | number | 运力返回的错误码 |
resultmsg | string | 运力返回的错误描述 |
使用场景
该接口只能用于测试
请求示例
{
"shopid": "test_shop_id",
"shop_order_id": "xxxxxxxxxxx",
"waybill_id": "xxxxxxxxxxxxx",
"action_time": 12345678,
"order_status": 101,
"action_msg": "",
}
返回数据示例
{
"resultcode": 0,
"resultmsg": "ok"
}
标签:微信小程序
相关阅读 >>
微信小程序api 绘图strokerect(画一个矩形,非填充)
更多相关阅读请进入《微信小程序》频道 >>

Vue.js 设计与实现 基于Vue.js 3 深入解析Vue.js 设计细节
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者