Skip to content

个人收款-申请批量结算

申请个人收款批量结算

请求参数类型描述
jsonobject声明请求的JSON数据结构
appidstring发起方AppID
out_settle_batch_nostring商户结算批次单号
individual_auth_idstring商品单个人收款方受理授权ID
notify_urlstring通知地址
descriptionstring收款方描述
trade_scenariostring交易场景
RECOMMERCE 枚举值
settle_info_listobject[]结算信息列表
out_settle_nostring商户结算单号
transaction_idstring微信支付订单号
settle_detail_info_listobject[]结算明细单列表
out_settle_detail_nostring商户结算明细单号
settle_typestring结算类型
receiver_typestring接收方类型
receiver_accountstring接收方账号
amountobject金额
amountnumber金额
currencystring币种
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_nostring商户结算批次单号
settle_batch_nostring微信支付结算批次单号
individual_auth_idstring商品单个人收款方受理授权ID
descriptionstring收款方描述
statestring批次状态
trade_scenariostring交易场景
create_timestring批次创建时间
finish_timestring批次完成时间

参阅 官方文档

Published on the GitHub by TheNorthMemory