Skip to content

老会员卡模板升级

商户可调用此api将微信公众平台创建微信会员卡升级为微信支付新版会员卡,将老会员卡card_id绑定品牌id,完成会员卡升级后可以使用新版特性,包括会员权益、会员服务、会员有礼等功能。

请求参数类型描述
card_idstring会员卡id
jsonobject声明请求的JSON数据结构
brand_idstring品牌id
appidstring商户AppId
php
$instance->v3->marketing->membercardOpen->cards->_card_id_->upgrade->postAsync([
  'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
  'json' => [
    'brand_id' => '1001622624',
    'appid'    => 'wxea9c30890f48d5ae',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/marketing/membercard-open/cards/{card_id}/upgrade')->postAsync([
  'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
  'json' => [
    'brand_id' => '1001622624',
    'appid'    => 'wxea9c30890f48d5ae',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/marketing/membercard-open/cards/{card_id}/upgrade']->postAsync([
  'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
  'json' => [
    'brand_id' => '1001622624',
    'appid'    => 'wxea9c30890f48d5ae',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->marketing->membercardOpen->cards->_card_id_->upgrade->post([
  'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
  'json' => [
    'brand_id' => '1001622624',
    'appid'    => 'wxea9c30890f48d5ae',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/marketing/membercard-open/cards/{card_id}/upgrade')->post([
  'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
  'json' => [
    'brand_id' => '1001622624',
    'appid'    => 'wxea9c30890f48d5ae',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/marketing/membercard-open/cards/{card_id}/upgrade']->post([
  'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
  'json' => [
    'brand_id' => '1001622624',
    'appid'    => 'wxea9c30890f48d5ae',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory