解除用户授权关系(授权协议号)
通过authorization_code,商户解除用户授权关系
请求参数 | 类型 | 描述 |
---|---|---|
authorization_code | string | 授权协议号 |
json | object | 声明请求的JSON 数据结构 |
service_id | string | 服务id |
reason | string | 撤销原因 |
php
$instance->v3->payscore->permissions->authorizationCode->_authorization_code_->terminate->postAsync([
'authorization_code' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '500001',
'reason' => '撤销原因',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$instance->chain('v3/payscore/permissions/authorization-code/{authorization_code}/terminate')->postAsync([
'authorization_code' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '500001',
'reason' => '撤销原因',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$instance['v3/payscore/permissions/authorization-code/{authorization_code}/terminate']->postAsync([
'authorization_code' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '500001',
'reason' => '撤销原因',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$response = $instance->v3->payscore->permissions->authorizationCode->_authorization_code_->terminate->post([
'authorization_code' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '500001',
'reason' => '撤销原因',
],
]);
print_r($response->getStatusCode() === 204);
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
php
$response = $instance->chain('v3/payscore/permissions/authorization-code/{authorization_code}/terminate')->post([
'authorization_code' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '500001',
'reason' => '撤销原因',
],
]);
print_r($response->getStatusCode() === 204);
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
php
$response = $instance['v3/payscore/permissions/authorization-code/{authorization_code}/terminate']->post([
'authorization_code' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '500001',
'reason' => '撤销原因',
],
]);
print_r($response->getStatusCode() === 204);
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |