Skip to content

从业机构解除用户授权关系(授权协议号)

从业机构通过调用该接口,使用authorization_code解除用户授权关系

请求参数类型描述
authorization_codestring授权协议号
jsonobject声明请求的JSON数据结构
service_idstring服务ID
channel_idstring渠道商商户号
sub_mchidstring子商户号
reasonstring撤销原因
php
$instance->v3->payscore->acquiringbank->permissions->authorizationCode->_authorization_code_->terminate->postAsync([
  'authorization_code' => '1275342195190894594',
  'json' => [
    'service_id' => '500001',
    'channel_id' => '1230000109',
    'sub_mchid'  => '1230000109',
    'reason'     => '撤销原因',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/payscore/acquiringbank/permissions/authorization-code/{authorization_code}/terminate')->postAsync([
  'authorization_code' => '1275342195190894594',
  'json' => [
    'service_id' => '500001',
    'channel_id' => '1230000109',
    'sub_mchid'  => '1230000109',
    'reason'     => '撤销原因',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/payscore/acquiringbank/permissions/authorization-code/{authorization_code}/terminate']->postAsync([
  'authorization_code' => '1275342195190894594',
  'json' => [
    'service_id' => '500001',
    'channel_id' => '1230000109',
    'sub_mchid'  => '1230000109',
    'reason'     => '撤销原因',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->payscore->acquiringbank->permissions->authorizationCode->_authorization_code_->terminate->post([
  'authorization_code' => '1275342195190894594',
  'json' => [
    'service_id' => '500001',
    'channel_id' => '1230000109',
    'sub_mchid'  => '1230000109',
    'reason'     => '撤销原因',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/payscore/acquiringbank/permissions/authorization-code/{authorization_code}/terminate')->post([
  'authorization_code' => '1275342195190894594',
  'json' => [
    'service_id' => '500001',
    'channel_id' => '1230000109',
    'sub_mchid'  => '1230000109',
    'reason'     => '撤销原因',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/payscore/acquiringbank/permissions/authorization-code/{authorization_code}/terminate']->post([
  'authorization_code' => '1275342195190894594',
  'json' => [
    'service_id' => '500001',
    'channel_id' => '1230000109',
    'sub_mchid'  => '1230000109',
    'reason'     => '撤销原因',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory