Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small programs Small programs use mockUpdateOrder


May 19, 2021 WeChat Mini Program Development Document



immediateDelivery.mockUpdateOrder

This interface should be called on the server side, as detailed in the Service Side API.

The analog distribution company updates the status of the distribution order, which is used only in the sandbox environment, i.e. the order does not flow to the capacity side

The request address

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

Request parameters

Property Type The default Required Description
access_token string Is The interface calls the credentials
shopid string Is Merchant id, must be "test_shop_id"
shop_order_id string Is The ID that uniquely identifies the order and is generated by the merchant
action_time number Is State change point in time, Unix second timestamp
order_status number Is Distribution status, enumeration values
action_msg string Whether Additional information

Returns a value

Object

Property Type Description
errcode number Error code, when errcode is 0 or does not exist also need to see resultcode
errmsg string The error description
resultcode number The error code returned by the capacity
resultmsg string The error description returned by the capacity

Use the scene

This interface can only be used for testing

An example of a request

{
   "shopid": "test_shop_id",
   "shop_order_id": "xxxxxxxxxxx",
   "waybill_id": "xxxxxxxxxxxxx",
   "action_time": 12345678,
   "order_status": 101,
   "action_msg": "",
}

Return an example of the data

{
  "resultcode": 0,
  "resultmsg": "ok"
}