申请单笔转账电子回单
商户可以 指定商户单号通过该接口申请 商家转账用户确认模式转账单据 对应的电子回单。微信支付会在校验满足回单申请条件后受理回单的申请,商户后续可以通过电子回单查询接口查询回单处理进度。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| json | object | 声明请求的JSON数据结构 |
| sub_mchid | string | 二级商户号 |
| out_bill_no | string | 商户转账单号 |
php
$instance->v3->fundApp->mchTransfer->partner->electronicReceipts->postAsync([
'json' => [
'sub_mchid' => '1900001121',
'out_bill_no' => 'plfk2020042013',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/fund-app/mch-transfer/partner/electronic-receipts')->postAsync([
'json' => [
'sub_mchid' => '1900001121',
'out_bill_no' => 'plfk2020042013',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/fund-app/mch-transfer/partner/electronic-receipts']->postAsync([
'json' => [
'sub_mchid' => '1900001121',
'out_bill_no' => 'plfk2020042013',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->fundApp->mchTransfer->partner->electronicReceipts->post([
'json' => [
'sub_mchid' => '1900001121',
'out_bill_no' => 'plfk2020042013',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/fund-app/mch-transfer/partner/electronic-receipts')->post([
'json' => [
'sub_mchid' => '1900001121',
'out_bill_no' => 'plfk2020042013',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/fund-app/mch-transfer/partner/electronic-receipts']->post([
'json' => [
'sub_mchid' => '1900001121',
'out_bill_no' => 'plfk2020042013',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| sub_mchid | string | 二级商户号 |
| out_bill_no | string | 商户转账单号 |
| state | string | 申请单状态GENERATING | FINISHED 枚举值之一 |
| create_time | string | 申请单创建时间 |
| update_time | string | 申请单更新时间 |
| hash_type | string | 回单文件摘要类型SM3 枚举值 |
| hash_value | string | 回单文件摘要值 |
| download_url | string | 回单文件下载地址 |
参阅 官方文档