获取商家名片预览二维码
本接口用于在商家名片配置申请提交后、正式发布提交前,当预览二维码链接失效时,由平台服务商重新获取有效的预览链接,以便商家验证各跳转路径是否符合业务预期。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| query | object | 声明请求的查询参数 |
| business_code | string | 业务申请编号 |
| applyment_id | string | 微信支付申请单号 |
| brand_id | string | 品牌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_code | string | 业务申请编号 |
| applyment_id | string | 微信支付申请单号 |
| brand_id | string | 品牌ID |
| card_preview_url | string | 商家名片预览二维码链接 |
| url_expired_time | string | 预览二维码链接过期时间 |
参阅 官方文档