status=3)。batchNo(分账批次号)与 mchBatchNo(商户分账订单号)二选一必填mchRefundOrderNo 为商户自定义退款订单号,需全局唯一,长度 18~64 字符acctInfos 退款明细列表至少包含 1 条记录,accOrderNo(分账明细单号)和 amount 为必填refundStatus 确认最终状态{
"appId": "APP20250101001",
"version": "1.0",
"timestamp": 1700000000000,
"requestId": "REQ20250101003",
"sign": "base64encodedSignature==",
"signType": "RSA2",
"charset": "UTF-8",
"bizContent": {
"batchNo": "1000000000001",
"mchBatchNo": "",
"mchRefundOrderNo": "BAL_REFUND_20250101000001",
"notifyUrl": "https://example.com/notify/refund",
"acctInfos": [
{
"accOrderNo": "ACC_ORDER_001",
"amount": 100,
"description": "余额分账退款"
}
]
}
}curl --location 'https://openapi.3ypay.com/mchShare/balance/refund' \
--header 'Content-Type: application/json' \
--data '{
"appId": "APP20250101001",
"version": "1.0",
"timestamp": 1700000000000,
"requestId": "REQ20250101003",
"sign": "base64encodedSignature==",
"signType": "RSA2",
"charset": "UTF-8",
"bizContent": {
"batchNo": "1000000000001",
"mchBatchNo": "",
"mchRefundOrderNo": "BAL_REFUND_20250101000001",
"notifyUrl": "https://example.com/notify/refund",
"acctInfos": [
{
"accOrderNo": "ACC_ORDER_001",
"amount": 100,
"description": "余额分账退款"
}
]
}
}'{
"code": 200,
"msg": "请求成功",
"appId": "APP20250101001",
"signType": "RSA2",
"timestamp": 1700000001000,
"data": {
"mchBatchNo": "BAL_BATCH_20250101000001",
"batchNo": "1000000000001",
"mchRefundOrderNo": "BAL_REFUND_20250101000001",
"acctInfos": [
{
"accOrderNo": "ACC_ORDER_001",
"accountNo": "RECV_ACCOUNT_001",
"amount": 100,
"description": "余额分账退款",
"refundStatus": 0,
"failMsg": "",
"successTime": null
}
]
}
}