Skip to content

解除用户授权关系(openid)

通过openid,服务商帮子商户解除用户授权关系

请求参数类型描述
jsonobject声明请求的JSON数据结构
openidstring服务商公众号下的用户标识
sub_openidstring子商户公众号下openid
service_idstring服务ID
appidstring服务商应用ID
sub_appidstring子商户应用ID
sub_mchidstring子商户号
reasonstring撤销原因
php
$instance->v3->payscore->partner->permissions->terminate->postAsync([
  'json' => [
    'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
    'sub_openid' => '',
    'service_id' => '500001',
    'appid' => 'wxd678efh567hg6787',
    'sub_appid' => 'wxd678efh567hg6787',
    'sub_mchid' => '1230000109',
    'reason' => 'reason',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/payscore/partner/permissions/terminate')->postAsync([
  'json' => [
    'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
    'sub_openid' => '',
    'service_id' => '500001',
    'appid' => 'wxd678efh567hg6787',
    'sub_appid' => 'wxd678efh567hg6787',
    'sub_mchid' => '1230000109',
    'reason' => 'reason',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/payscore/partner/permissions/terminate']->postAsync([
  'json' => [
    'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
    'sub_openid' => '',
    'service_id' => '500001',
    'appid' => 'wxd678efh567hg6787',
    'sub_appid' => 'wxd678efh567hg6787',
    'sub_mchid' => '1230000109',
    'reason' => 'reason',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->payscore->partner->permissions->terminate->post([
  'json' => [
    'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
    'sub_openid' => '',
    'service_id' => '500001',
    'appid' => 'wxd678efh567hg6787',
    'sub_appid' => 'wxd678efh567hg6787',
    'sub_mchid' => '1230000109',
    'reason' => 'reason',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/payscore/partner/permissions/terminate')->post([
  'json' => [
    'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
    'sub_openid' => '',
    'service_id' => '500001',
    'appid' => 'wxd678efh567hg6787',
    'sub_appid' => 'wxd678efh567hg6787',
    'sub_mchid' => '1230000109',
    'reason' => 'reason',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/payscore/partner/permissions/terminate']->post([
  'json' => [
    'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
    'sub_openid' => '',
    'service_id' => '500001',
    'appid' => 'wxd678efh567hg6787',
    'sub_appid' => 'wxd678efh567hg6787',
    'sub_mchid' => '1230000109',
    'reason' => 'reason',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory