新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)小程序教程:微信小程序小程序使用·mockUpdateOrder
immediateDelivery.mockUpdateOrder
本接口應(yīng)在服務(wù)器端調(diào)用,詳細說明參見 服務(wù)端API。
模擬配送公司更新配送單狀態(tài), 該接口只用于沙盒環(huán)境,即訂單并沒有真實流轉(zhuǎn)到運力方
請求地址
POST https://api.weixin.qq.com/cgi-bin/express/local/business/test_update_order?access_token=ACCESS_TOKEN
請求參數(shù)
| 屬性 | 類型 | 默認值 | 必填 | 說明 |
|---|---|---|---|---|
| access_token | string | 是 | 接口調(diào)用憑證 | |
| shopid | string | 是 | 商家id, 必須是 "test_shop_id" | |
| shop_order_id | string | 是 | 唯一標識訂單的 ID,由商戶生成 | |
| action_time | number | 是 | 狀態(tài)變更時間點,Unix秒級時間戳 | |
| order_status | number | 是 | 配送狀態(tài),枚舉值 | |
| 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": "",
}
返回數(shù)據(jù)示例
{
"resultcode": 0,
"resultmsg": "ok"
}
網(wǎng)站標題:創(chuàng)新互聯(lián)小程序教程:微信小程序小程序使用·mockUpdateOrder
標題鏈接:http://www.dlmjj.cn/article/ccsshhp.html


咨詢
建站咨詢

