解除已生效交易连接名片场景
接口适用场景:当服务商配置交易连接名片后,交易连接名片配置状态为“已生效”时,可调用该接口请求解除连接关系。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| json | object | 声明请求的JSON数据结构 |
| brand_id | string | 品牌ID |
| payment_scene | string | 交易场景类型MINI_PROGRAM | APP | PAYMENT_SCORE | PAYMENT_CODE 枚举值之一 |
| appid | string | 公众账号ID |
| card_link_mchid | string | 商户号 |
| service_id | string | 服务ID |
php
$instance->v3->brand->card->cardLinks->unbindCardLink->postAsync([
'json' => [
'brand_id' => '1004',
'payment_scene' => 'MINI_PROGRAM',
'appid' => 'wxea9c30890f48d5ae',
'card_link_mchid' => '111222333',
'service_id' => '00005000000000548218251086296300',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/brand/card/card-links/unbind-card-link')->postAsync([
'json' => [
'brand_id' => '1004',
'payment_scene' => 'MINI_PROGRAM',
'appid' => 'wxea9c30890f48d5ae',
'card_link_mchid' => '111222333',
'service_id' => '00005000000000548218251086296300',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/brand/card/card-links/unbind-card-link']->postAsync([
'json' => [
'brand_id' => '1004',
'payment_scene' => 'MINI_PROGRAM',
'appid' => 'wxea9c30890f48d5ae',
'card_link_mchid' => '111222333',
'service_id' => '00005000000000548218251086296300',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->brand->card->cardLinks->unbindCardLink->post([
'json' => [
'brand_id' => '1004',
'payment_scene' => 'MINI_PROGRAM',
'appid' => 'wxea9c30890f48d5ae',
'card_link_mchid' => '111222333',
'service_id' => '00005000000000548218251086296300',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/brand/card/card-links/unbind-card-link')->post([
'json' => [
'brand_id' => '1004',
'payment_scene' => 'MINI_PROGRAM',
'appid' => 'wxea9c30890f48d5ae',
'card_link_mchid' => '111222333',
'service_id' => '00005000000000548218251086296300',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/brand/card/card-links/unbind-card-link']->post([
'json' => [
'brand_id' => '1004',
'payment_scene' => 'MINI_PROGRAM',
'appid' => 'wxea9c30890f48d5ae',
'card_link_mchid' => '111222333',
'service_id' => '00005000000000548218251086296300',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| brand_id | string | 品牌ID |
| payment_scene | string | 交易场景类型MINI_PROGRAM | APP | PAYMENT_SCORE | PAYMENT_CODE 枚举值之一 |
| appid | string | 公众账号ID |
| card_link_mchid | string | 商户号 |
| service_id | string | 服务ID |
参阅 官方文档