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 | true | 微信小程序/公众号的APPID | ||||
mchId | string | true | 微信支付分配的商户号 | apiSecretKey | string | false | apiSecretKey |
mchBillno | string | true | 商户订单号,需保持历史全局唯一性(只能是字母或者数字,不能包含有其它字符)。兔展生成的用于提交给微信的交易订单号 | ||||
openid | string | true | 不是微信的openid,而是 客户企业在兔展的自定义身份字段user_id的值 | ||||
amount | int32 | true | 付款金额,单位为分 | ||||
clientIp | string | true | 请求微信api的兔展侧服务器公网IP。建议客户侧覆盖该值 | ||||
actName | string | trueNo comments found. | 活动名称。注意:敏感词会被转义成字符*,不超过32位长度字符。 | ||||
remark | string | true | No comments found. | environment | string | false | 环境备注信息,不超过256位长度字符。 |
notifyWay | string | false | 通知用户形式 notify_way 是 MINI_PROGRAM_JSAPI String(256) 通过JSAPI方式领取红包,小程序红包固定传MINI_PROGRAM_JSAPI tradeRecordId | int64 | true | 兔展生成的内部订单号兔展生成的内部交易记录ID |
Response-fields:
Field | Type | Description | Since | ||||
---|---|---|---|---|---|---|---|
returnCode | stringNo comments found. | SUCCESS/FAIL 。此字段是通信标识,非交易标识,交易是否成功需要查看result_code来判断 | - | ||||
returnMsg | string | No comments found.返回信息,如非空,为错误原因。签名失败。参数格式校验错误 | - | ||||
resultCode | stringNo comments found. | SUCCESS/FAIL,注意:当状态为FAIL时,存在业务结果未明确的情况。如果状态为FAIL,请务必关注错误代码(err_code字段),通过查询接口确认此次付款的结果。 | - | ||||
errCode | stringNo comments found. | 错误码信息,注意:出现未明确的错误码时(SYSTEMERROR等),请务必用原商户订单号重试,或通过查询接口确认此次付款的结果。 | - | ||||
errCodeDes | string | No comments found.结果信息描述 | - | ||||
mchBillno | string | No comments found. | - | mchId | string | No comments found.商户订单号,需保持历史全局唯一性(只能是字母或者数字,不能包含有其它字符)。兔展生成的用于提交给微信的交易订单号 | - |
wxappid | string | No comments found. | - | ||||
reOpenid | string | No comments found. | - | ||||
totalAmount | string | No comments found. | - | ||||
sendListid | string | No comments found.微信小程序/公众号的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) |
...