May 19, 2021 WeChat Mini Program Development Document
This document describes messages or events received on the server side, see Message Push for details.
Audit merchant events.
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 check_biz, is case insensescies |
BizID | string | Merchant ID, that is, the customer code or monthly closing account name registered by the merchant in Express |
BizPwd | string | The password for the bizID |
ShopAppID | string | The merchant's applet appID |
ShopName | string | Merchant name, i.e. small program nickname (EMS only available) |
ShopTelphone | string | Merchant contact number (EMS only available) |
ShopContact | string | Merchant contact name (EMS only available) |
ServiceName | string | Pre-opened service type name (EMS only available) |
SenderAddress | string | Merchant shipping address (EMS only available) |
SenderProvince | string | Merchant shipping province (EMS only available) |
SenderCity | string | Merchant shipping city (EMS only available) |
SenderArea | string | Merchant shipping area (EMS only available) |
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 | Yes | Event time, UNIX timestamp | |
MsgType | string | Yes | Message type, fixed to EVENT | |
Event | string | Yes | Event type, fixed to Check_biz, not case sensitive | |
BizID | string | Yes | Merchant ID | |
ResultCode | number | Yes | Processing result error code | |
ResultMsg | string | Yes | Processing result details | |
Quota | number | Yes | Merchants can use the balance, 0 means no balance |
Resultcode legal value
value | illustrate | Minimum version |
---|---|---|
0 | examination passed | |
-1 | Other errors | |
10001 | Customer coding or monthly account does not exist | |
10002 | Customer password is incorrect |
XML format
<xml>
<ToUserName><![CDATA[gh_abcdefg]]></ToUserName>
<FromUserName><![CDATA[oABCD]]></FromUserName>
<CreateTime>1533042556</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[check_biz]]></Event>
<BizID><![CDATA[xyz]]></BizID>
<BizPwd><![CDATA[xyz123]]></BizPwd>
<ShopAppID><![CDATA[wxABCD]]></ShopAppID>
<ShopName><![CDATA[商户名称]]></ShopName>
<ShopTelphone><![CDATA[18677778888]]></ShopTelphone>
<ShopContact><![CDATA[村正]]></ShopContact>
<ServiceName><![CDATA[标准快递]]></ServiceName>
<SenderProvince><![CDATA[广东省]]></SenderProvince>
<SenderCity><![CDATA[广州市]]></SenderCity>
<SenderArea><![CDATA[海珠区]]></SenderArea>
<SenderAddress><![CDATA[新港中路397号]]></SenderAddress>
</xml>
JSON format
{
"ToUserName": "gh_abcdefg",
"FromUserName": "oABCD",
"CreateTime": 1533042556,
"MsgType": "event",
"Event": "check_biz",
"BizID": "xyz",
"BizPwd": "xyz123",
"ShopAppID": "wxABCD",
"ShopName": "商户名称",
"ShopTelphone": "18677778888",
"ShopContact": "村正",
"ServiceName": "标准快递",
"SenderProvince": "广东省"
"SenderCity": "广州市"
"SenderArea": "海珠区"
"SenderAddress": "新港中路397号"
}
XML format
<xml>
<ToUserName><![CDATA[oABCD]]></ToUserName>
<FromUserName><![CDATA[gh_abcdefg]]></FromUserName>
<CreateTime>1533042556</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[check_biz]]></Event>
<BizID><![CDATA[xyz]]></BizID>
<ResultCode>0</ResultCode>
<ResultMsg><![CDATA[success]]></ResultMsg>
</xml>
JSON format
{
"ToUserName": "oABCD",
"FromUserName": "gh_abcdefg",
"CreateTime": 1533042556,
"MsgType": "event",
"Event": "check_biz",
"BizID": "xyz",
"ResultCode": 0,
"ResultMsg": "success"
}