Skip to content

商家明细单号查询明细单

普通直连商户可以通过该接口查询单笔品牌红包明细单。建议商户发放品牌红包后,间隔1分钟以上再调用该接口查单,避免查询失败

请求参数类型描述
batch_nostring微信支付品牌红包批次单号
detail_nostring商家品牌红包明细单号
php
$instance->v3->fundApp->brandRedpacket->brandMerchantBatches->_batch_no_->details->_detail_no_->getAsync([
  'batch_no' => '1030000071100999991182020050700019480001',
  'detail_no' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/fund-app/brand-redpacket/brand-merchant-batches/{batch_no}/details/{detail_no}')->getAsync([
  'batch_no' => '1030000071100999991182020050700019480001',
  'detail_no' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/fund-app/brand-redpacket/brand-merchant-batches/{batch_no}/details/{detail_no}']->getAsync([
  'batch_no' => '1030000071100999991182020050700019480001',
  'detail_no' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundApp->brandRedpacket->brandMerchantBatches->_batch_no_->details->_detail_no_->get([
  'batch_no' => '1030000071100999991182020050700019480001',
  'detail_no' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/fund-app/brand-redpacket/brand-merchant-batches/{batch_no}/details/{detail_no}')->get([
  'batch_no' => '1030000071100999991182020050700019480001',
  'detail_no' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/fund-app/brand-redpacket/brand-merchant-batches/{batch_no}/details/{detail_no}']->get([
  'batch_no' => '1030000071100999991182020050700019480001',
  'detail_no' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
brand_mchidstring品牌主商户号
out_batch_nostring商家品牌红包批次单号
batch_nostring微信支付品牌红包批次单号
out_detail_nostring商家品牌红包明细单号
detail_nostring微信支付品牌红包明细单号
detail_statestring品牌红包明细单状态
DETAIL_INIT | DETAIL_WAIT_PAY | DETAIL_PROCESSING | DETAIL_SUCCESS | DETAIL_FAIL 枚举值之一
amountnumber红包金额
remarkstring红包备注
fail_reasonstring失败原因
ACCOUNT_FROZEN | REAL_NAME_CHECK_FAIL | NAME_NOT_CORRECT | OPENID_INVALID | TRANSFER_QUOTA_EXCEED | DAY_RECEIVED_QUOTA_EXCEED | DAY_RECEIVED_COUNT_EXCEED | PRODUCT_AUTH_CHECK_FAIL | OVERDUE_CLOSE | ACCOUNT_NOT_EXIST | TRANSFER_RISK | USER_ACCOUNT_LIMIT | FAIL_REASON_UNKNOWN | PAYER_ACCOUNT_ABNORMAL | PAYEE_ACCOUNT_ABNORMAL | USER_RECEIVE_OVERDUE | REMARK_NOT_CORRECT | MERCHANT_REJECT | MERCHANT_NOT_CONFIRM | BLOCK_B2C_USERLIMITAMOUNT_BSRULE_MONTH 枚举值之一
openidstring接收红包用户OpenID
user_namestring接收红包用户姓名
initiate_timestring品牌红包发起时间
update_timestring品牌红包更新时间
brand_idnumber品牌ID
template_idstring品牌红包模板ID
brand_appidstring品牌AppID

参阅 官方文档

Published on the GitHub by TheNorthMemory