Skip to content

商户单号查询转账单

商家转账用户确认模式下,根据商户单号查询转账单的详细信息

请求参数类型描述
out_bill_nostring商户单号
php
$instance->v3->fundApp->mchTransfer->transferBills->outBillNo->_out_bill_no_->getAsync([
  'out_bill_no' => 'plfk2020042013',
])
->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/transfer-bills/out-bill-no/{out_bill_no}')->getAsync([
  'out_bill_no' => 'plfk2020042013',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}']->getAsync([
  'out_bill_no' => 'plfk2020042013',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundApp->mchTransfer->transferBills->outBillNo->_out_bill_no_->get([
  'out_bill_no' => 'plfk2020042013',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}')->get([
  'out_bill_no' => 'plfk2020042013',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}']->get([
  'out_bill_no' => 'plfk2020042013',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
mch_idstring商户号
out_bill_nostring商户单号
transfer_bill_nostring商家转账订单号
appidstring商户AppID
statestring单据状态
transfer_amountnumber转账金额
transfer_remarkstring转账备注
fail_reasonstring失败原因
openidstring收款用户OpenID
user_namestring收款用户姓名
create_timestring单据创建时间
update_timestring最后一次状态变更时间

参阅 官方文档

Published on the GitHub by TheNorthMemory