Chinese New Year will be to pay the treasure red envelopes fought a battle, micro-letter in the circle of friends to shield it from sharing, but the single defense is not enough, offensive is the best defense. Yesterday, the micro-letter payment Cash Red Envelopes officially open, just open micro-letter payment, you can access cash red envelopes. Micro-credit public number can also be issued cash red envelopes!
Through the cash red envelope, the public number developer can plan the related operation activities, give the user the micro-letter payment cash red envelopes, better achieve the brand promotion and feedback the user's effect.
1, when the merchant calls the interface, by assigning the object and sending the amount of the way to distribute red envelopes, this way, allows the merchant to flexibly apply to a variety of rich activities of the scene
2, after receiving the red envelope, the user's funds directly into the micro-letter change, avoid the complicated process of accepting the prize, to the user micro-letter to pay the original fluent experience
Brief introduction
During the Spring Festival, the micro-letter red envelopes with its unique charm, excellent user experience and secure payment environment, once launched by the vast number of users are warmly welcomed, is the micro-letter to pay cash red envelopes to micro-letter payment merchant Open
The rules for the sending of micro-letter red Envelopes
1. Send Frequency Rule
The number of packets per minute shall not exceed 1800;
Beijing time 0:00-8:00 does not trigger the donation of red envelopes (if the above rules do not meet your needs, please send email to wxhongbao@tencent.com for upgrade guidelines)
2. Red Envelope Rules
The amount of a single red envelope is between [1.00 yuan, 200.00 yuan];
The same red packet can only be sent to a user (if the above rules do not meet your needs, please email to wxhongbao@tencent.com to obtain the upgrade guidelines)
Merchant side call Red Envelope interface Process
1. Login micro-letter payment merchant Platform Download certificate and Recharge
Before calling the interface, ask the merchant to sign in to the micro-credit payment merchant platform using the micro-letter payment merchant number to complete the following tasks:
Note:
Micro-letter payment merchant platform address for pay.weixin.qq.com. The micro-letter payment merchant number will be sent to you through an account opening email after the merchant has successfully applied for a micro-letter payment. Please do not use the micro-trust public platform account or AppID login. If you are having trouble logging in, please contact the micro-letter Payment assistant Weixinpay@tencent.com
Download certificate
When the merchant invokes the micro-letter red envelope, the server will authenticate the certificate, please download the certificate on the merchant platform
Recharge
Cash bonus will be deducted from the merchant's available balance, please note that the available balance is not a micro-letter payment volume, the need to recharge, to ensure that the available balance is sufficient. View available balances, recharge, present please login micro-letter Payment merchant platform, enter the "Money Management" menu, to operate
2. Micro-Credit Red envelopes interface Call process
Background API call: To enter the process with the development of detailed communication;
Inform the server: inform the server to receive the micro-letter red envelopes of users OpenID, told the server the amount of money received by the user;
From the business number deduction: The server to obtain information from the corresponding business number deducted the corresponding amount;
Call failed: Due to the failure to meet the sending rules, the business number of the balance is not enough to cause the call failure, feedback to the caller;
Send success: to the micro-letter red Envelope public account to send the corresponding red envelopes to the corresponding users;
User interaction Process
Call cash Red envelope interface, after the successful issuance, the user receives the red envelope process as follows:
Step (a): Received a red envelope message, according to the user's micro-letter version of different, divided into:
Micro-letter version of 6.1 and more users receive the enterprise's own micro-signal (call the interface when the AppID corresponding merchant number) issued to receive information; If the user does not pay attention to the micro-signal, it will receive the "service notice" issued by the message
Micro-letter version of the user under 6.1 still receive messages according to the original process: by the micro-letter red Envelope public number issued to receive information
Step (ii): Click to pick up the message, remove the red envelope
Interface Detailed description
1. Description of Red envelope payment
For companies to send cash bonuses to micro-credit users personally
Currently supports the payment of the specified amount of red envelopes to OpenID, the designated micro-trust user. (Get OpenID See micro-trust public Platform Developer Documentation: Web page authorization to get user profile)
Interface parameters are related to the actual results of the user's collar:
Please login https://pay.weixin.qq.com/if required
2. Interface Call Request description
Request Url:https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack
Certificate Required: Yes (Please refer to Merchant Certificate for certificate and usage instructions)
Request Method: POST
3. Request parameters
Field name |
Field |
Must fill |
Sample Value |
Type |
Description |
Random string |
Nonce_str |
Is |
5k8264iltkch16cq2502si8znmtm67vs |
String (32) |
Random string, no longer than 32 bits |
Signature |
Sign |
Is |
C380bec2bfd727a4b6845133519f3ad6 |
String (32) |
See Signature generation algorithm for details |
Merchant Order Number |
Mch_billno |
Is |
10000098201411111234567890 |
String (28) |
Merchant Order Number (each order number must be unique) Composition: mch_id+yyyymmdd+10 digits that cannot be duplicated within a single day. The interface is reentrant based on the merchant order number, and can be called again if a time-out occurs. |
Merchant number |
mch_id |
Is |
10000098 |
String (32) |
The merchant number of the micro-credit payment distribution |
Sub Merchant number |
sub_mch_id |
Whether |
10000090 |
String (32) |
Sub-merchant number of micro-credit payment allocation, required in reception mode |
Public account AppID |
Wxappid |
Is |
wx8888888888888888 |
String (32) |
Merchant AppID |
Provider Name |
Nick_name |
Is |
Tian Hong Department Store |
String (32) |
Provider Name |
Merchant Name |
Send_name |
Is |
Tian Hong Department Store |
String (32) |
Name of the sender of the red envelope |
User OpenID |
Re_openid |
Is |
oxtwiugait6gtksqrlau2m0yl16e |
String (32) |
Users receiving red envelopes The user's OpenID under the Wxappid |
Payment Amount |
Total_amount |
Is |
1000 |
Int |
Payment amount, per cent |
Minimum red envelope Amount |
Min_value |
Is |
1000 |
Int |
Minimum red envelope amount, unit |
Maximum amount of red envelopes |
Max_value |
Is |
1000 |
Int |
Maximum red envelope amount, unit (Minimum amount equals maximum amount: Min_value=max_value =total_amount) |
Total number of red envelopes issued |
Total_num |
Is |
1 |
Int |
Total number of red envelopes issued Total_num=1 |
Blessing Words for red envelopes |
Wishing |
Is |
Thank you for taking part in guessing lantern riddle activities, I wish you a Happy Lantern Festival! |
String (128) |
Blessing Words for red envelopes |
IP Address |
Client_ip |
Is |
192.168.0.1 |
String (15) |
Calling the interface's machine IP address |
Activity name |
Act_name |
Is |
Guessing riddles Rob Red envelopes activities |
String (32) |
Activity name |
Note |
Remark |
Is |
The more you guess, the more you come to rob! |
String (256) |
Memo Information |
URL of the Merchant logo |
Logo_imgurl |
Whether |
Https://wx.gtimg.com/mch/img/ico-logo.png |
String (128) |
URL of the Merchant logo |
Share copy |
Share_content |
Whether |
Come and join the riddle-guessing event. |
String (256) |
Share copy |
Share Links |
Share_url |
Whether |
Http://www.qq.com |
String (128) |
Share Links |
Share the picture |
Share_imgurl |
Whether |
Https://wx.gtimg.com/mch/img/ico-logo.png |
String (128) |
Share the picture URL |
For more information please refer to Http://pay.weixin.qq.com/wiki/doc/api/cash_coupon.php?chapter=13_5
The above is about the micro-letter public number through the cash red envelopes issued micro-letter payment Cash red envelopes, follow-up continue to add, thank you for your support for this site!