Skip to content

为用户发银行提现免费券

为用户发银行提现免费券

请求参数类型描述
openidstring用户标识
jsonobject声明请求的JSON数据结构
mchidstring银行提现免费券批次创建方商户号
stock_idstring银行提现免费券批次ID
appidstring应用ID
send_request_nostring商户单据号
php
$instance->v3->marketing->withdrawFavor->users->_openid_->coupons->postAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'mchid'           => '1230000109',
    'stock_id'        => '1304490000000059',
    'appid'           => 'wxd678efh567hg6787',
    'send_request_no' => '89560002019101000121',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/withdraw-favor/users/{openid}/coupons')->postAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'mchid'           => '1230000109',
    'stock_id'        => '1304490000000059',
    'appid'           => 'wxd678efh567hg6787',
    'send_request_no' => '89560002019101000121',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/withdraw-favor/users/{openid}/coupons']->postAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'mchid'           => '1230000109',
    'stock_id'        => '1304490000000059',
    'appid'           => 'wxd678efh567hg6787',
    'send_request_no' => '89560002019101000121',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->withdrawFavor->users->_openid_->coupons->post([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'mchid'           => '1230000109',
    'stock_id'        => '1304490000000059',
    'appid'           => 'wxd678efh567hg6787',
    'send_request_no' => '89560002019101000121',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/withdraw-favor/users/{openid}/coupons')->post([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'mchid'           => '1230000109',
    'stock_id'        => '1304490000000059',
    'appid'           => 'wxd678efh567hg6787',
    'send_request_no' => '89560002019101000121',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/withdraw-favor/users/{openid}/coupons']->post([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'mchid'           => '1230000109',
    'stock_id'        => '1304490000000059',
    'appid'           => 'wxd678efh567hg6787',
    'send_request_no' => '89560002019101000121',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
coupon_idstring银行提现免费券ID
expire_timestring银行提现免费券过期时间

参阅 官方文档

查询批次下用户银行提现免费券列表

查询批次下用户银行提现免费券列表

请求参数类型描述
openidstring用户标识
queryobject声明请求的查询参数
mchidstring银行提现免费券批次创建方商户号
stock_idstring银行提现免费券批次ID
appidstring应用ID
offsetinteger分页页码
limitinteger分页大小
php
$instance->v3->marketing->withdrawFavor->users->_openid_->coupons->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'mchid'    => '1230000109',
    'stock_id' => '1304490000000059',
    'appid'    => 'wxd678efh567hg6787',
    'offset'   => 1,
    'limit'    => 10,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/withdraw-favor/users/{openid}/coupons')->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'mchid'    => '1230000109',
    'stock_id' => '1304490000000059',
    'appid'    => 'wxd678efh567hg6787',
    'offset'   => 1,
    'limit'    => 10,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/withdraw-favor/users/{openid}/coupons']->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'mchid'    => '1230000109',
    'stock_id' => '1304490000000059',
    'appid'    => 'wxd678efh567hg6787',
    'offset'   => 1,
    'limit'    => 10,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->withdrawFavor->users->_openid_->coupons->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'mchid'    => '1230000109',
    'stock_id' => '1304490000000059',
    'appid'    => 'wxd678efh567hg6787',
    'offset'   => 1,
    'limit'    => 10,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/withdraw-favor/users/{openid}/coupons')->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'mchid'    => '1230000109',
    'stock_id' => '1304490000000059',
    'appid'    => 'wxd678efh567hg6787',
    'offset'   => 1,
    'limit'    => 10,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/withdraw-favor/users/{openid}/coupons']->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'mchid'    => '1230000109',
    'stock_id' => '1304490000000059',
    'appid'    => 'wxd678efh567hg6787',
    'offset'   => 1,
    'limit'    => 10,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
dataobject[]银行提现免费券列表
send_timestring发放时间
send_quotainteger发放额度
coupon_idstring银行提现免费券的券ID
use_quotainteger使用额度
coupon_statestring银行提现免费券券状态
offsetinteger分页页码
limitinteger分页大小
total_countinteger查询结果总数

参阅 官方文档

Published on the GitHub by TheNorthMemory