商户电子凭证下载
| 请求方式 | body | 编码 | 接口地址 |
|---|---|---|---|
| POST | application/json | UTF-8 | 集测:https://mchapitest.shengpay.com/transfer/voucher/download 生产:https://mchapi.shengpay.com/transfer/voucher/download |
请求参数
| 变量名 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| mchId | String(10) | Y | 30057909 | 业务发起方商户号 |
| subMchId | String(32) | N | 账户代扣业务必须填写,账户代发业务不填 | |
| transNo | String(32) | Y | BD546705368068653056 | 业务订单号 |
| bizType | String(32) | Y | TRANS_SFT_ACC | TRANS_BANK_ACC("付款到银行卡"),TRANS_SFT_ACC("付款到盛付通商户账户"), |
| nonceStr | String | Y | nGBXiNhZjBaFrMGIJAKJQQpfNiSGVjzy | 随机字符串 |
| signType | String | Y | RSA | 签名方式 |
| sign | String | Y | 签名 (见签名介绍) |
响应参数
| 变量名 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| 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时使用) | |
| nonceStr | String | Y | nGBXiNhZjBaFrMGIJAKJQQpfNiSGVjzy | 随机字符串 |
| signType | String | Y | RSA | 签名方式 |
| sign | String | Y | 签名 |
成功时,响应头为:
Content-Type: application/octet-stream
Content-Disposition: attachment;fileName=业务订单号.pdf
失败时,响应头为:
Content-Type: application/json