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

WeChat Small Programs Small Programs Use realMockUpdateOrder


May 19, 2021 WeChat Mini Program Development Document



immediateDelivery.realMockUpdateOrder

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

The simulated distribution company updates the status of the distribution order, which is used to test the order under the account and forward the request to the capacity test environment

The request address

POST https://api.weixin.qq.com/cgi-bin/express/local/business/realmock_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
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
delivery_sign string Is A check string description encrypted with appSecret provided by the distribution company

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, requests are forwarded to the capacity test environment, currently supported by Shunfeng Tongcheng and Dada

  1. Shunfeng Tongcheng Test No
  • shopid: 1534713176
  • appsecret: d80400f91e156f63b38886e616d84590
  • shopno: 3243279847393
  • Support for change status: 102 202 202 302
  1. Dada Test No
  • shopid: dadaaee18818d97e236
  • appsecret: 1c6f40492d6d89caaad80b85f7d31670
  • shopno: 77071-47913
  • Support for change status: 102 201 202 301 302 304 305

Request example

{
   "shopid": "xxxxxxx",
   "shop_order_id": "xxxxxxxxxxx",
   "action_time": 1584145981,
   "order_status": 101,
   "action_msg": "",
   "delivery_sign": "xxxxxxx",
}

Return an example of the data

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