URL: http://xxxxxxx/pay/sendApiRedPack (外部三方自己提供外部三方自己提供用于接收从兔展侧发起的请求)
Type: POST
Author: shangpan
Content-Type: application/jsonxml; charset=utf-8
Description: 发红包API, 付款到零钱,付款api
...
Parameter | Type | Required | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
privateKey | string | false | 私钥 | certKey | string||||||||
false | certKey | wxAppId | string | falsetruewxAppId | 微信小程序/公众号的APPID | |||||||
mchId | string | falsetrue | mchId | |||||||||
apiSecretKey | string | false | apiSecretKey | |||||||||
微信支付分配的商户号 | ||||||||||||
mchBillno | string | false | No comments found. | |||||||||
sendName | string | false | No comments found. | |||||||||
true | 商户订单号,需保持历史全局唯一性(只能是字母或者数字,不能包含有其它字符)。兔展生成的用于提交给微信的交易订单号 | |||||||||||
openid | string | false | No comments found. | true | 不是微信的openid,而是 客户企业在兔展的自定义身份字段user_id的值 | |||||||
amounttotalAmount | int32 | false | No comments found. | wishing | string | false | true | 付款金额,单位为分No comments found. | ||||
clientIp | string | false | true | 请求微信api的兔展侧服务器公网IP。建议客户侧覆盖该值No comments found. | ||||||||
actName | string | false | true | 活动名称。注意:敏感词会被转义成字符*,不超过32位长度字符。No comments found. | ||||||||
remark | string | false | No comments found. | environment | string | false | 环境true | 备注信息,不超过256位长度字符。 | notifyWay | string | false | 通知用户形式 notify_way 是 MINI_PROGRAM_JSAPI String(256) 通过JSAPI方式领取红包,小程序红包固定传MINI_PROGRAM_JSAPI |
tradeRecordId | int64 | false | true | 兔展生成的内部交易记录IDlottery库t_player_red_packet_record表主键ID |
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
returnCode | string |
SUCCESS/FAIL 。此字段是通信标识,非交易标识,交易是否成功需要查看result_code来判断 | - |
returnMsg | string |
返回信息,如非空,为错误原因。签名失败。参数格式校验错误 | - |
resultCode | string |
SUCCESS/FAIL,注意:当状态为FAIL时,存在业务结果未明确的情况。如果状态为FAIL,请务必关注错误代码(err_code字段),通过查询接口确认此次付款的结果。 | - |
errCode | string |
错误码信息,注意:出现未明确的错误码时(SYSTEMERROR等),请务必用原商户订单号重试,或通过查询接口确认此次付款的结果。 | - |
errCodeDes | string |
mchId
string
结果信息描述 | - |
mchBillno | string |
No comments found.
-
商户订单号,需保持历史全局唯一性(只能是字母或者数字,不能包含有其它字符)。兔展生成的用于提交给微信的交易订单号 |
- | |
wxappid | string |
No comments found.
-
reOpenid
string
No comments found.
-
totalAmount
string
No comments found.
-
sendListid
string
No comments found.
-
hbpackage
string
返回jaspi的入参package的值。
示例值
sendid=242e8abd163d300019b2cae74ba8e8c06e3f0e51ab84d16b3c80decd22a5b672&ver=8&sign=4110d649a5aef52dd6b95654ddf91ca7d5411ac159ace4e1a766b7d3967a1c3dfe1d256811445a4abda2d9cfa4a9b377a829258bd00d90313c6c346f2349fe5d&mchid=11475856&appid=wxd27ebc41b85ce36d
微信小程序/公众号的APPID | - | ||
mchAppid | string | 申请商户号的appid或商户号绑定的appid(号corpid即为此appId). String(128) | - |
mchid | string | 微信支付分配的商户号. String(32) | - |
partnerTradeNo | string | 商户使用查询API填写的单号的原路返回. String(32) | - |
paymentNo | string | 付款成功,返回的微信付款单号. String(64) | - |
paymentTime | string | 付款成功时间,2015-05-19 15:26:59. String(32) |