跳转至

子商户提现

请求方式 body 编码 接口地址
POST application/json UTF-8 集测:https://mchapitest.shengpay.com/pmtmch/sub/withdraw/query
生产:https://mchapi.shengpay.com/pmtmch/sub/withdraw/query

请求参数

变量名 类型 必填 示例值 描述
mchId String(10) Y 30057909
subMchId String(32) Y
mchOrderNo String(32) N mchOrderNo和acquireOrderNo不能同时为空
acquireOrderNo String(64) N mchOrderNo和acquireOrderNo不能同时为空
nonceStr String Y nGBXiNhZjBaFrMGIJAKJQQpfNiSGVjzy 随机字符串
signType String Y RSA 签名方式
sign String Y 签名 (见签名介绍)

请求示例

1
2
3
4
5
6
7
8
9
{
    "mchId": "540506",
    "subMchId": "88888888",
    "mchOrderNo": "656870251896205312",
    "acquireOrderNo": "SFT656870251896205312",
    "nonceStr": "nGBXiNhZjBaFrMGIJAKJQQpfNiSGVjzy",
    "signType": "RSA",
    "sign": "VJwA2kXDnLiC8bH7Ywzc/fktd5zITLi9d5dobzaf3PCKy7hMecg1zqQz9X9GhqLMj5e2dOeDI2mrF06EJZdugcD+5BW2MA+MK32eMuwoRAh510HSusN2HaE4ser99rLJSvMPn5bEqNdDX83XixGePa4iyFiV0YdOfDu0T6VgDBFwbO0St73j0NxgPrIVM/tTmax1jwsAUl60BG4N+LKZxQYH0whsUOE9jgAjhcX8BD0GC3BMzNaEZyrn6noWvA6Ir95f/ZXww07rp8vPPzn99LtNzBFczx3k3H9o4e4K5BL+d+bzULMm9VvWrSObBri+wMy+VB978wGVftobFUkn/Q=="
}

响应参数

变量名 类型 必填 示例值 描述
returnCode String Y SUCCESS 返回码(SUCCESS/FAIL)
returnMsg String N 返回消息(当returnCode为FAIL时使用)
resultCode String Y SUCCESS 业务结果(SUCCESS/FAIL)
errorCode String N 错误代码(当resultCode为FAIL时使用)
errorCodeDes String N 错误描述(当resultCode为FAIL时使用)
orderStatus String(16) N SUCCESS 提现状态, SUCCESS("成功"),FAIL("失败"),ING("处理中")
mchOrderNo String(32) N 商户提现订单号
acquireOrderNo String(64) N 提现受理订单号
amount int N 提现金额,单位分
bankAccount String(32) N 提现账户,掩码银行卡号
bankAccountName String(64) N 提现账户名称
bankName String(64) N 提现银行名称
nonceStr String Y nGBXiNhZjBaFrMGIJAKJQQpfNiSGVjzy 随机字符串
signType String Y RSA 签名方式
sign String Y 签名

响应示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
{
    "returnCode": "SUCCESS",
    "resultCode": "SUCCESS",
    "mchOrderNo": "656870251896205312",
    "acquireOrderNo": "SFT656870251896205312",
    "amount": 1000,
    "bankAccount": "62257687012273865",
    "bankAccountName": "张三",
    "orderStatus": "SUCCESS",
    "sign": "XyIoxGodrNZqsPE6xut9Yd0Pq5sk1VBkKAb7McrBgRtJr7R83u3n5ckTZByn4rxXUglViO3EYA8sYCWl54nNQf+5AVluJIZu5BmO6rZLxtgcCE2ismw3nqTX880RK/E+HtFHnpBqyf14ua5+MQ1gvt0r+klql7/+Osu3QF9LtGk=",
    "signType": "RSA",
    "nonceStr": "iuwYIztuezXtzoJmRfsDZKhsFTxOuznj"
}
Back to top