May 19, 2021 WeChat Mini Program Development Document
This document describes messages or events received on the server side, see Message Push for details.
The shipping order status update notification interface
Property | Type | Description |
---|---|---|
ToUserName | string | Express company small program UserName |
FromUserName | string | WeChat team's OpenID (fixed value) |
CreateTime | number | Event time, Unix timestamp |
MsgType | string | Message type, pinned to event |
Event | string | The event type, fixed to update_waybill_status, is case insenso sensitive |
shopid | string | Merchant id, appkey assigned by the distribution company |
shop_order_id | string | The ID that uniquely identifies the order and is generated by the merchant |
shop_no | string | Merchant store number, registered on the distribution company side |
waybill_id | string | Delivery order id |
action_time | number | Unix timestamp |
order_status | number | Distribution status, enumeration values |
action_msg | string | Additional information |
agent | Object | Rider information |
The structure of the agent
Property | Type | Description |
---|---|---|
name | string | The rider's name |
phone | string | Rider's phone |
reach_time | number | Expected delivery timestamp, returned in delivery |
Property | Type | The default | Required | Description |
---|---|---|---|---|
ToUserName | string | Is | Return as is fromUserName in the request | |
FromUserName | string | Is | Express company small program UserName | |
CreateTime | number | Is | Event time, Unix timestamp | |
MsgType | string | Is | Message type, pinned to event | |
Event | string | Is | The event type, fixed to update_waybill_status, is case insenso sensitive | |
resultcode | number | Yes | error code | |
resultmsg | string | Yes | wrong description |
When the distribution company updates the order distribution status, the WeChat will synchronize the merchant through this interface.
JSON format
{
"ToUserName": "toUser",
"FromUserName": "fromUser",
"CreateTime": 1546924844,
"MsgType": "event",
"Event": "update_waybill_status",
"shopid": "123456",
"shop_order_id": "123456",
"waybill_id": "123456",
"action_time": 1546924844,
"order_status": 102,
"action_msg": "",
"shop_no": "123456",
"agent": {
"name": "xxx",
"phone": "1234567"
}
}