appId,完成 RSA2 密钥配置;分账接收方须已完成分账关系绑定;appChannelSn(应用通道编码)由平台在开通应用通道后分配。mchBatchNo 为商户自定义分账订单号,需全局唯一,长度 18~64 字符accountNo 为渠道分配的付款方账号,资金从该账 号扣划acctInfos 分账明细列表至少包含 1 条记录,每条记录中 accountNo 和 amount 为必填status 确认最终状态{
"appId": "APP20250101001",
"version": "1.0",
"timestamp": 1700000000000,
"requestId": "REQ20250101001",
"sign": "base64encodedSignature==",
"signType": "RSA2",
"charset": "UTF-8",
"bizContent": {
"mchBatchNo": "BAL_BATCH_20250101000001",
"appChannelSn": "AC20250101001",
"accountNo": "PAY_ACCOUNT_001",
"notifyUrl": "https://example.com/notify/balance",
"acctInfos": [
{
"accountNo": "RECV_ACCOUNT_001",
"amount": 100,
"description": "余额分账-服务费",
"feeRate": 0
}
]
}
}curl --location 'https://openapi.3ypay.com/mchShare/balance/share' \
--header 'Content-Type: application/json' \
--data '{
"appId": "APP20250101001",
"version": "1.0",
"timestamp": 1700000000000,
"requestId": "REQ20250101001",
"sign": "base64encodedSignature==",
"signType": "RSA2",
"charset": "UTF-8",
"bizContent": {
"mchBatchNo": "BAL_BATCH_20250101000001",
"appChannelSn": "AC20250101001",
"accountNo": "PAY_ACCOUNT_001",
"notifyUrl": "https://example.com/notify/balance",
"acctInfos": [
{
"accountNo": "RECV_ACCOUNT_001",
"amount": 100,
"description": "余额分账-服务费",
"feeRate": 0
}
]
}
}'{
"code": 200,
"msg": "请求成功",
"appId": "APP20250101001",
"signType": "RSA2",
"timestamp": 1700000001000,
"data": {
"mchBatchNo": "BAL_BATCH_20250101000001",
"batchNo": "1000000000001",
"accountNo": "PAY_ACCOUNT_001",
"appChannelSn": "AC20250101001",
"acctInfos": [
{
"accOrderNo": "ACC_ORDER_001",
"accountNo": "RECV_ACCOUNT_001",
"amount": 100,
"description": "余额分账-服务费",
"feeRate": 0,
"isRtc": 0,
"status": 2,
"failMsg": "",
"successTime": null
}
]
}
}