发起在途异常资金付款指令
商户有在途异常资金时,可以通过该接口发起在途异常资金付款,转付给符合条件的接收方
请求参数 | 类型 | 描述 |
---|---|---|
receipt_id | string | 微信支付在途异常资金付款单号 |
json | object | 声明请求的JSON 数据结构 |
out_instruction_no | string | 商户侧指令编号 |
appid | string[] | 商户AppID |
transfer_mode | string | 付款方式TRANSFER_TO_ORIGINAL_RECEIVE_USER 枚举值 |
notify_url | string | 回调通知地址 |
php
$instance->v3->abnormalFundProcessing->receipts->_receipt_id_->transferInstructions->postAsync([
'receipt_id' => '0100011742874700562078230000',
'json' => [
'out_instruction_no' => '1200002',
'appid' => ['wxf636efh567hg4356'],
'transfer_mode' => 'TRANSFER_TO_ORIGINAL_RECEIVE_USER',
'notify_url' => 'https://weixin.qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/abnormal-fund-processing/receipts/{receipt_id}/transfer-instructions')->postAsync([
'receipt_id' => '0100011742874700562078230000',
'json' => [
'out_instruction_no' => '1200002',
'appid' => ['wxf636efh567hg4356'],
'transfer_mode' => 'TRANSFER_TO_ORIGINAL_RECEIVE_USER',
'notify_url' => 'https://weixin.qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/abnormal-fund-processing/receipts/{receipt_id}/transfer-instructions']->postAsync([
'receipt_id' => '0100011742874700562078230000',
'json' => [
'out_instruction_no' => '1200002',
'appid' => ['wxf636efh567hg4356'],
'transfer_mode' => 'TRANSFER_TO_ORIGINAL_RECEIVE_USER',
'notify_url' => 'https://weixin.qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->abnormalFundProcessing->receipts->_receipt_id_->transferInstructions->post([
'receipt_id' => '0100011742874700562078230000',
'json' => [
'out_instruction_no' => '1200002',
'appid' => ['wxf636efh567hg4356'],
'transfer_mode' => 'TRANSFER_TO_ORIGINAL_RECEIVE_USER',
'notify_url' => 'https://weixin.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/abnormal-fund-processing/receipts/{receipt_id}/transfer-instructions')->post([
'receipt_id' => '0100011742874700562078230000',
'json' => [
'out_instruction_no' => '1200002',
'appid' => ['wxf636efh567hg4356'],
'transfer_mode' => 'TRANSFER_TO_ORIGINAL_RECEIVE_USER',
'notify_url' => 'https://weixin.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/abnormal-fund-processing/receipts/{receipt_id}/transfer-instructions']->post([
'receipt_id' => '0100011742874700562078230000',
'json' => [
'out_instruction_no' => '1200002',
'appid' => ['wxf636efh567hg4356'],
'transfer_mode' => 'TRANSFER_TO_ORIGINAL_RECEIVE_USER',
'notify_url' => 'https://weixin.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
product_name | string | 产品名称C2C 枚举值 |
receipt_id | string | 微信支付在途异常资金付款单号 |
transfer_amount | object | 付款金额信息 |
total | integer | 总金额 |
currency | string | 货币类型CNY 枚举值 |
receipt_state | string | 在途异常资金付款状态RECEIPT_STATE_PENDING | RECEIPT_STATE_PROGRESS | RECEIPT_STATE_COMPLETED 枚举值之一 |
create_time | string | 在途异常资金付款单据创建时间 |
last_update_time | string | 在途异常资金付款单据更新时间 |
instruction | object | 在途异常资金付款指令信息 |
out_instruction_no | string | 商户侧指令编号 |
commander | object | 在途异常资金付款指令的发起方 |
operator | string | 发起在途异常资金付款请求的角色MERCHANT 枚举值 |
mchid | string | 微信支付商户号 |
transfer_mode | string | 付款方式TRANSFER_TO_ORIGINAL_RECEIVE_USER 枚举值 |
success_time | string | 入账成功时间 |
appid | string[] | 商户AppID |
notify_url | string | 回调通知地址 |
参阅 官方文档