微信小程序 小程序使用·mockUpdateOrder

2020-07-31 14:05 更新

immediateDelivery.mockUpdateOrder

本接口應(yīng)在服務(wù)器端調(diào)用,詳細(xì)說明參見服務(wù)端API。

模擬配送公司更新配送單狀態(tài), 該接口只用于沙盒環(huán)境,即訂單并沒有真實(shí)流轉(zhuǎn)到運(yùn)力方

請求地址

POST https://api.weixin.qq.com/cgi-bin/express/local/business/test_update_order?access_token=ACCESS_TOKEN

請求參數(shù)

屬性類型默認(rèn)值必填說明
access_tokenstring接口調(diào)用憑證
shopidstring商家id, 必須是 "test_shop_id"
shop_order_idstring唯一標(biāo)識訂單的 ID,由商戶生成
action_timenumber狀態(tài)變更時間點(diǎn),Unix秒級時間戳
order_statusnumber配送狀態(tài),枚舉值
action_msgstring附加信息

返回值

Object

屬性類型說明
errcodenumber錯誤碼, 當(dāng)errcode==0或者不存在還需要看resultcode
errmsgstring錯誤描述
resultcodenumber運(yùn)力返回的錯誤碼
resultmsgstring運(yùn)力返回的錯誤描述

使用場景

該接口只能用于測試

請求示例

{
   "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"
}


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號