Skip to content

申请及查询预算出资的电子回单

申请预算出资的电子回单

申请预算出资的电子回单。指定了收款商户号,表示获取按日及按收款方汇总的电子回单,否则表示获取仅按日汇总的电子回单。前置条件:只支持查询T-1的最近180天内的汇总电子回单。 注:单个服务商商户的接口频率限制为20次/s

请求参数类型描述
out_budget_nostring商户预算单号
jsonobject声明请求的JSON数据结构
start_datestring开始日期
end_datestring结束日期
sponsor_mchidstring出资商户号
receiver_mchidstring收款商户号
php
$instance->v3->fundApp->mchTransfer->partner->budget->_out_budget_no_->electronicReceipts->postAsync([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'start_date'     => '2025-09-01',
    'end_date'       => '2025-09-30',
    'sponsor_mchid'  => '1900001109',
    'receiver_mchid' => '1900102209',
  ],
])
->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/budget/{out_budget_no}/electronic-receipts')->postAsync([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'start_date'     => '2025-09-01',
    'end_date'       => '2025-09-30',
    'sponsor_mchid'  => '1900001109',
    'receiver_mchid' => '1900102209',
  ],
])
->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/budget/{out_budget_no}/electronic-receipts']->postAsync([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'start_date'     => '2025-09-01',
    'end_date'       => '2025-09-30',
    'sponsor_mchid'  => '1900001109',
    'receiver_mchid' => '1900102209',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundApp->mchTransfer->partner->budget->_out_budget_no_->electronicReceipts->post([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'start_date'     => '2025-09-01',
    'end_date'       => '2025-09-30',
    'sponsor_mchid'  => '1900001109',
    'receiver_mchid' => '1900102209',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/fund-app/mch-transfer/partner/budget/{out_budget_no}/electronic-receipts')->post([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'start_date'     => '2025-09-01',
    'end_date'       => '2025-09-30',
    'sponsor_mchid'  => '1900001109',
    'receiver_mchid' => '1900102209',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/fund-app/mch-transfer/partner/budget/{out_budget_no}/electronic-receipts']->post([
  'out_budget_no' => 'budget202506300102',
  'json' => [
    'start_date'     => '2025-09-01',
    'end_date'       => '2025-09-30',
    'sponsor_mchid'  => '1900001109',
    'receiver_mchid' => '1900102209',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
out_budget_nostring商户预算单号
start_datestring开始日期
end_datestring结束日期
sponsor_mchidstring出资商户号
receiver_mchidstring收款商户号
receipt_statestring电子回单状态
ACCEPTED | FINISHED 枚举值之一
accept_idstring受理凭证
hash_typestring电子回单文件的hash方法
SHA256 | SM3 枚举值之一
hash_valuestring电子回单文件的hash值
download_urlstring电子回单下载地址

参阅 官方文档

查询预算出资的电子回单

查询预算出资的电子回单。 注:单个服务商商户的接口频率限制为50次/s

请求参数类型描述
out_budget_nostring商户预算单号
queryobject声明请求的查询参数
accept_idstring受理凭证
php
$instance->v3->fundApp->mchTransfer->partner->budget->_out_budget_no_->electronicReceipts->getAsync([
  'out_budget_no' => 'budget202506300102',
  'query' => [
    'accept_id' => 'c2RmYWtqampqampsZmFza2xmanNhbGZqc2FrZmpzbGZqc2tsZmp',
  ],
])
->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/budget/{out_budget_no}/electronic-receipts')->getAsync([
  'out_budget_no' => 'budget202506300102',
  'query' => [
    'accept_id' => 'c2RmYWtqampqampsZmFza2xmanNhbGZqc2FrZmpzbGZqc2tsZmp',
  ],
])
->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/budget/{out_budget_no}/electronic-receipts']->getAsync([
  'out_budget_no' => 'budget202506300102',
  'query' => [
    'accept_id' => 'c2RmYWtqampqampsZmFza2xmanNhbGZqc2FrZmpzbGZqc2tsZmp',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundApp->mchTransfer->partner->budget->_out_budget_no_->electronicReceipts->get([
  'out_budget_no' => 'budget202506300102',
  'query' => [
    'accept_id' => 'c2RmYWtqampqampsZmFza2xmanNhbGZqc2FrZmpzbGZqc2tsZmp',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/fund-app/mch-transfer/partner/budget/{out_budget_no}/electronic-receipts')->get([
  'out_budget_no' => 'budget202506300102',
  'query' => [
    'accept_id' => 'c2RmYWtqampqampsZmFza2xmanNhbGZqc2FrZmpzbGZqc2tsZmp',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/fund-app/mch-transfer/partner/budget/{out_budget_no}/electronic-receipts']->get([
  'out_budget_no' => 'budget202506300102',
  'query' => [
    'accept_id' => 'c2RmYWtqampqampsZmFza2xmanNhbGZqc2FrZmpzbGZqc2tsZmp',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
out_budget_nostring商户预算单号
start_datestring开始日期
end_datestring结束日期
sponsor_mchidstring出资商户号
receiver_mchidstring收款商户号
receipt_statestring电子回单状态
ACCEPTED | FINISHED 枚举值之一
accept_idstring受理凭证
hash_typestring电子回单文件的hash方法
SHA256 | SM3 枚举值之一
hash_valuestring电子回单文件的hash值
download_urlstring电子回单下载地址

参阅 官方文档

Published on the GitHub by TheNorthMemory