Skip to content

申请商家转账明细电子回单

商家转账明细电子回单申请受理接口,商户通过该接口可以申请受理商家转账明细电子回单。

请求参数类型描述
out_batch_nostring商家批次单号
out_detail_nostring商家明细单号
jsonobject声明请求的JSON数据结构
sub_mchidstring二级商户号
php
$instance->v3->platsolution->mchTransfer->batches->detailReceipts->outBatchNo->_out_batch_no_->outDetailNo->_out_detail_no_->apply->postAsync([
  'out_batch_no' => 'sjzz20230223',
  'out_detail_no' => 'x23zy545Bd5436',
  'json' => [
    'sub_mchid' => '1900102208',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/platsolution/mch-transfer/batches/detail-receipts/out-batch-no/{out_batch_no}/out-detail-no/{out_detail_no}/apply')->postAsync([
  'out_batch_no' => 'sjzz20230223',
  'out_detail_no' => 'x23zy545Bd5436',
  'json' => [
    'sub_mchid' => '1900102208',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/platsolution/mch-transfer/batches/detail-receipts/out-batch-no/{out_batch_no}/out-detail-no/{out_detail_no}/apply']->postAsync([
  'out_batch_no' => 'sjzz20230223',
  'out_detail_no' => 'x23zy545Bd5436',
  'json' => [
    'sub_mchid' => '1900102208',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->platsolution->mchTransfer->batches->detailReceipts->outBatchNo->_out_batch_no_->outDetailNo->_out_detail_no_->apply->post([
  'out_batch_no' => 'sjzz20230223',
  'out_detail_no' => 'x23zy545Bd5436',
  'json' => [
    'sub_mchid' => '1900102208',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/platsolution/mch-transfer/batches/detail-receipts/out-batch-no/{out_batch_no}/out-detail-no/{out_detail_no}/apply')->post([
  'out_batch_no' => 'sjzz20230223',
  'out_detail_no' => 'x23zy545Bd5436',
  'json' => [
    'sub_mchid' => '1900102208',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/platsolution/mch-transfer/batches/detail-receipts/out-batch-no/{out_batch_no}/out-detail-no/{out_detail_no}/apply']->post([
  'out_batch_no' => 'sjzz20230223',
  'out_detail_no' => 'x23zy545Bd5436',
  'json' => [
    'sub_mchid' => '1900102208',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sub_mchidstring二级商户号
out_batch_nostring商家批次单号
out_detail_nostring商家明细单号
receipt_statestring电子回单状态

参阅 官方文档

Published on the GitHub by TheNorthMemory