跳转至

批量转账

请求方式 body 编码 接口地址
POST application/json UTF-8 集测:https://wmgwtest.shengpay.com/wifi-batch-payment/cloud/v1/payment/batch
生产:https://wmgw.shengpay.com/wifi-batch-payment/cloud/v1/payment/batch

请求参数

变量名 类型 必填 示例值 描述
merchantNo String(16) Y 93751497 商户号
merchantOrderNo String(32) Y 1602835300345 商户批次订单号
devId String(32) Y 32142521525125 盛付通颁发给接入方的开发者账号
appId String(32) Y 2398724h98y912 盛付通颁发给接入方应用appId
batchTotalAmount int Y 1000 批次总金额(单位:分)
batchPaymentInfo String(1024) N [{"serialNum":"20211016090429","unionId":"unionId18221623702","realNaInfo":"123456","amount":"1000","payerShowInfo":"XX游戏","transferDesc":"系统奖励"}] 批次明细信息(JSON字符串)
serialNum String(32) Y 1602835300345 转账流水号
unionId String(32) Y 453fsfes3454353 账户体系内用户唯一标识
amount int Y 1000 转账金额(单位:分)
realNaInfo String(6) Y 124816 收款方身份证后6位
payerShowInfo String(16) Y 124816 转出方描述
transferDesc String(32) Y xx转账 转账描述
notifyUrl String(300) Y https://notify.shengpay.com/notify 商户通知回调地址
nonceStr String(32) Y pWUVWVYWNQhnTXpQzhIzMGCwqBkZclzg 随机字符串
signType String(8) Y RSA 签名类型
sign String (1024) Y 签名

请求示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
    "merchantNo":"88003227",
    "merchantOrderNo":"WIFI20211016090429",
    "devId":"218350785007976448",
    "batchPaymentInfo":"[{\"serialNum\":\"20211016090429\",\"unionId\":\"unionId18221623702\",\"realNaInfo\":\"123456\",\"amount\":\"1000\",\"payerShowInfo\":\"XX游戏\",\"transferDesc\":\"系统奖励\"}]",
    "batchTotalAmount":"1000",
    "notifyUrl":"https://wmgwtest.shengpay.com/wifi-batch-payment/receiveBatchNotify",
    "appId":"test-merchantYZP",
    "nonceStr":"123",
    "signType":"RSA",
    "sign":"Md1PQBe1oJHuBHhPvnKJfiFzZsphLqa4s24kSwajSb/lbaBNr7v6iAEWimYOCJVCCt72sfgUe+35yxRMRJ+ram4YAAbTDipl6v/2nLJ0LRvAOHBxdrRBaJnLxoOX+tKl0V1c6lrrmoSIVOk40yXLxJ1DN+THnVeeDvbLd0zWbOGuObwor1m01bW8Es9i6aUt7DSsVKsP7jXieA6LvvWu+CmwnEf4FarwehyXfQq1LV5Metd3yAKrnNB0e1yoWbdrU4UssuBiQNvcQ2+5nT/KE5UFlWtROxyy9tT7hP3AaZnKAZBY2neggUCLHi/Uscw7NbDBz2KfpX/S2R33iFSWIA=="
}

响应参数

变量名 类型 必填 示例值 描述
success boolean Y true 处理结果
resultCode String(16) Y 0 处理结果码
resultMessage String(64) Y 处理成功 异常描述
resultObject String(1024) N {"details":[{"serialNum":"20211016090429","status":"ING"}],"merchantNo":"88003227","merchantOrderNo":"WIFI20211016090429"} 业务结果(JSON字符串)
merchantNo String(16) N 商户号
merchantOrderNo String(32) N 商户批次订单号
details String(2048) N [{"serialNum":"20211016090429","status":"ING"}] 明细结果(JSON字符串)
serialNum String(32) N WIFI20211016090424 转账流水号
status String(32) N ING 转账状态(ING,SUCCESS,FAIL)
nonceStr String(32) Y 随机字符串
signType String(8) Y RSA 签名方式
sign String (1024) Y 签名

响应示例

1
2
3
4
5
6
7
8
9
{
    "nonceStr":"TFqUhESPky2Sdzu50l",
    "resultCode":"0",
    "resultMessage":"处理成功",
    "resultObject":"{\"details\":[{\"serialNum\":\"20211016090429\",\"status\":\"ING\"}],\"merchantNo\":\"88003227\",\"merchantOrderNo\":\"WIFI20211016090429\"}",
    "sign":"R0GBmXP28WYe0caiphiDUxYDBs6wvfbgonS6OdXebrExwZgokLyC0G4HU0loqPJXP4ce5TW/H9i43SFOYukG3ABevLhJ56OWpsKbK7bCrBUMxupyi5QpaZpDkki9JTUjORFH/x7ra8biv5ik969eThjgXYDCotAqYRA4P3wfSw8=",
    "signType":"RSA",
    "success":true
}
Back to top