Skip to content

获取商家名片预览二维码

本接口用于在商家名片配置申请提交后、正式发布提交前,当预览二维码链接失效时,由平台服务商重新获取有效的预览链接,以便商家验证各跳转路径是否符合业务预期。

请求参数类型描述
queryobject声明请求的查询参数
business_codestring业务申请编号
applyment_idstring微信支付申请单号
brand_idstring品牌ID
php
$instance->v3->brand->card->cardConfigs->previewUrl->getAsync([
  'query' => [
    'business_code' => '190001351110000',
    'applyment_id'  => '1111111111',
    'brand_id'      => '120344',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/brand/card/card-configs/preview-url')->getAsync([
  'query' => [
    'business_code' => '190001351110000',
    'applyment_id'  => '1111111111',
    'brand_id'      => '120344',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/brand/card/card-configs/preview-url']->getAsync([
  'query' => [
    'business_code' => '190001351110000',
    'applyment_id'  => '1111111111',
    'brand_id'      => '120344',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->brand->card->cardConfigs->previewUrl->get([
  'query' => [
    'business_code' => '190001351110000',
    'applyment_id'  => '1111111111',
    'brand_id'      => '120344',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/brand/card/card-configs/preview-url')->get([
  'query' => [
    'business_code' => '190001351110000',
    'applyment_id'  => '1111111111',
    'brand_id'      => '120344',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/brand/card/card-configs/preview-url']->get([
  'query' => [
    'business_code' => '190001351110000',
    'applyment_id'  => '1111111111',
    'brand_id'      => '120344',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
business_codestring业务申请编号
applyment_idstring微信支付申请单号
brand_idstring品牌ID
card_preview_urlstring商家名片预览二维码链接
url_expired_timestring预览二维码链接过期时间

参阅 官方文档

Published on the GitHub by TheNorthMemory