May 19, 2021 WeChat Mini Program Development Document
This document describes messages or events received on the server side, see Message Push for details.
Query the merchant balance event.
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 get_quota, is case insenso sensitive |
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 app ID of the merchant applet |
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, fixed to object | |
Event | string | Is | Event type, fixed to get_quota, is case insenso sensitive | |
BizID | string | Is | Merchant ID | |
ResultCode | number | Is | Process the result error code | |
ResultMsg | string | Is | Details of the processing results | |
Quota | number | Is | Merchant available balance, 0 indicates no available balance |
The legal value of ResultCode
Value | Description | The lowest version |
---|---|---|
0 | The query was successful | |
-1 | Other errors | |
10001 | The customer code or monthly closing account does not exist | |
10002 | The 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[get_quota]]></Event>
<BizID><![CDATA[xyz]]></BizID>
<BizPwd><![CDATA[xyz123]]></BizPwd>
<ShopAppID><![CDATA[wxABCD]]></ShopAppID>
</xml>
JSON format
{
"ToUserName": "gh_abcdefg",
"FromUserName": "oABCD",
"CreateTime": 1533042556,
"MsgType": "event",
"Event": "get_quota",
"BizID": "xyz",
"BizPwd": "xyz123",
"ShopAppID": "wxABCD"
}
XML format
<xml>
<ToUserName><![CDATA[oABCD]]></ToUserName>
<FromUserName><![CDATA[gh_abcdefg]]></FromUserName>
<CreateTime>1533042556</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[get_quota]]></Event>
<BizID><![CDATA[xyz]]></BizID>
<ResultCode>0</ResultCode>
<ResultMsg><![CDATA[success]]></ResultMsg>
<Quota>0</Quota>
</xml>
JSON format
{
"ToUserName": "oABCD",
"FromUserName": "gh_abcdefg",
"CreateTime": 1533042556,
"MsgType": "event",
"Event": "get_quota",
"BizID": "xyz",
"ResultCode": 0,
"ResultMsg": "success",
"Quota": 0
}