新聞中心
這里有您想知道的互聯網營銷解決方案
創(chuàng)新互聯小程序教程:微信小程序小程序使用·testUpdateOrder
logistics.testUpdateOrder
本接口應在服務器端調用,詳細說明參見 服務端API。
模擬快遞公司更新訂單狀態(tài), 該接口只能用戶測試
請求地址
POST https://api.weixin.qq.com/cgi-bin/express/business/test_update_order?access_token=ACCESS_TOKEN
請求參數
| 屬性 | 類型 | 默認值 | 必填 | 說明 |
|---|---|---|---|---|
| access_token | string | 是 | 接口調用憑證 | |
| biz_id | string | 是 | 商戶id,需填test_biz_id | |
| order_id | string | 是 | 訂單號 | |
| delivery_id | string | 是 | 快遞公司id,需填TEST | |
| waybill_id | string | 是 | 運單號 | |
| action_time | number | 是 | 軌跡變化 Unix 時間戳 | |
| action_type | number | 是 | 軌跡變化類型 | |
| action_msg | string | 是 | 軌跡變化具體信息說明,使用UTF-8編碼 |
action_type 的合法值
| 值 | 說明 | 最低版本 |
|---|---|---|
| 100001 | 攬件階段-攬件成功 | |
| 100002 | 攬件階段-攬件失敗 | |
| 100003 | 攬件階段-分配業(yè)務員 | |
| 200001 | 運輸階段-更新運輸軌跡 | |
| 300002 | 派送階段-開始派送 | |
| 300003 | 派送階段-簽收成功 | |
| 300004 | 派送階段-簽收失敗 | |
| 400001 | 異常階段-訂單取消 | |
| 400002 | 異常階段-訂單滯留 |
返回值
Object
| 屬性 | 類型 | 說明 |
|---|---|---|
| errcode | number | 錯誤碼 |
| errmsg | string | 錯誤信息 |
errcode 的合法值
| 值 | 說明 | 最低版本 |
|---|---|---|
| 0 | 成功 | |
| -1 | 系統(tǒng)失敗 |
請求數據示例
{
"biz_id": "test_biz_id",
"order_id": "xxxxxxxxxxxx",
"delivery_id": "TEST",
"waybill_id": "xxxxxxxxxx",
"action_time": 123456789,
"action_type": 100001,
"action_msg": "攬件階段"
}
返回數據示例
{
"errcode": 0,
"errmsg": "ok"
} 分享題目:創(chuàng)新互聯小程序教程:微信小程序小程序使用·testUpdateOrder
當前地址:http://www.dlmjj.cn/article/dpjdpoi.html


咨詢
建站咨詢

