个人收款-申请批量结算
申请个人收款批量结算
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
appid | string | 发起方AppID |
out_settle_batch_no | string | 商户结算批次单号 |
individual_auth_id | string | 商品单个人收款方受理授权ID |
notify_url | string | 通知地址 |
description | string | 收款方描述 |
trade_scenario | string | 交易场景RECOMMERCE 枚举值 |
settle_info_list | object[] | 结算信息列表 |
out_settle_no | string | 商户结算单号 |
transaction_id | string | 微信支付订单号 |
settle_detail_info_list | object[] | 结算明细单列表 |
out_settle_detail_no | string | 商户结算明细单号 |
settle_type | string | 结算类型 |
receiver_type | string | 接收方类型 |
receiver_account | string | 接收方账号 |
amount | object | 金额 |
amount | number | 金额 |
currency | string | 币种 |
php
$instance->v3->platsolution->ecommerce->settle->prepaySettleOrders->postAsync([
'json' => [
'appid' => 'WXA12368855126622',
'out_settle_batch_no' => '1236698745558870',
'individual_auth_id' => '256322110225',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
'description' => '共计2笔订单,订单金额xxx元,平台服务费xxx元,合计收款xxx元',
'trade_scenario' => 'RECOMMERCE',
'settle_info_list' => [[
'out_settle_no' => '12369666555136622',
'transaction_id' => '4207752501201407033233368018',
'settle_detail_info_list' => [[
'out_settle_detail_no' => '123688556699666554',
'settle_type' => 'RECEIVE',
'receiver_type' => 'MERCHANT',
'receiver_account' => '1234567890',
'amount' => [
'amount' => 11000,
'currency' => 'CNY',
],
],],
],],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/platsolution/ecommerce/settle/prepay-settle-orders')->postAsync([
'json' => [
'appid' => 'WXA12368855126622',
'out_settle_batch_no' => '1236698745558870',
'individual_auth_id' => '256322110225',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
'description' => '共计2笔订单,订单金额xxx元,平台服务费xxx元,合计收款xxx元',
'trade_scenario' => 'RECOMMERCE',
'settle_info_list' => [[
'out_settle_no' => '12369666555136622',
'transaction_id' => '4207752501201407033233368018',
'settle_detail_info_list' => [[
'out_settle_detail_no' => '123688556699666554',
'settle_type' => 'RECEIVE',
'receiver_type' => 'MERCHANT',
'receiver_account' => '1234567890',
'amount' => [
'amount' => 11000,
'currency' => 'CNY',
],
],],
],],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/platsolution/ecommerce/settle/prepay-settle-orders']->postAsync([
'json' => [
'appid' => 'WXA12368855126622',
'out_settle_batch_no' => '1236698745558870',
'individual_auth_id' => '256322110225',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
'description' => '共计2笔订单,订单金额xxx元,平台服务费xxx元,合计收款xxx元',
'trade_scenario' => 'RECOMMERCE',
'settle_info_list' => [[
'out_settle_no' => '12369666555136622',
'transaction_id' => '4207752501201407033233368018',
'settle_detail_info_list' => [[
'out_settle_detail_no' => '123688556699666554',
'settle_type' => 'RECEIVE',
'receiver_type' => 'MERCHANT',
'receiver_account' => '1234567890',
'amount' => [
'amount' => 11000,
'currency' => 'CNY',
],
],],
],],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->platsolution->ecommerce->settle->prepaySettleOrders->post([
'json' => [
'appid' => 'WXA12368855126622',
'out_settle_batch_no' => '1236698745558870',
'individual_auth_id' => '256322110225',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
'description' => '共计2笔订单,订单金额xxx元,平台服务费xxx元,合计收款xxx元',
'trade_scenario' => 'RECOMMERCE',
'settle_info_list' => [[
'out_settle_no' => '12369666555136622',
'transaction_id' => '4207752501201407033233368018',
'settle_detail_info_list' => [[
'out_settle_detail_no' => '123688556699666554',
'settle_type' => 'RECEIVE',
'receiver_type' => 'MERCHANT',
'receiver_account' => '1234567890',
'amount' => [
'amount' => 11000,
'currency' => 'CNY',
],
],],
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/platsolution/ecommerce/settle/prepay-settle-orders')->post([
'json' => [
'appid' => 'WXA12368855126622',
'out_settle_batch_no' => '1236698745558870',
'individual_auth_id' => '256322110225',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
'description' => '共计2笔订单,订单金额xxx元,平台服务费xxx元,合计收款xxx元',
'trade_scenario' => 'RECOMMERCE',
'settle_info_list' => [[
'out_settle_no' => '12369666555136622',
'transaction_id' => '4207752501201407033233368018',
'settle_detail_info_list' => [[
'out_settle_detail_no' => '123688556699666554',
'settle_type' => 'RECEIVE',
'receiver_type' => 'MERCHANT',
'receiver_account' => '1234567890',
'amount' => [
'amount' => 11000,
'currency' => 'CNY',
],
],],
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/platsolution/ecommerce/settle/prepay-settle-orders']->post([
'json' => [
'appid' => 'WXA12368855126622',
'out_settle_batch_no' => '1236698745558870',
'individual_auth_id' => '256322110225',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
'description' => '共计2笔订单,订单金额xxx元,平台服务费xxx元,合计收款xxx元',
'trade_scenario' => 'RECOMMERCE',
'settle_info_list' => [[
'out_settle_no' => '12369666555136622',
'transaction_id' => '4207752501201407033233368018',
'settle_detail_info_list' => [[
'out_settle_detail_no' => '123688556699666554',
'settle_type' => 'RECEIVE',
'receiver_type' => 'MERCHANT',
'receiver_account' => '1234567890',
'amount' => [
'amount' => 11000,
'currency' => 'CNY',
],
],],
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
out_settle_batch_no | string | 商户结算批次单号 |
settle_batch_no | string | 微信支付结算批次单号 |
individual_auth_id | string | 商品单个人收款方受理授权ID |
description | string | 收款方描述 |
state | string | 批次状态 |
trade_scenario | string | 交易场景 |
create_time | string | 批次创建时间 |
finish_time | string | 批次完成时间 |
参阅 官方文档