拒绝授权请求(公开,持有人)
curl --request POST \
--url https://api.qbank.cl/platform/consent/{token}/declineimport requests
url = "https://api.qbank.cl/platform/consent/{token}/decline"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.qbank.cl/platform/consent/{token}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qbank.cl/platform/consent/{token}/decline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/consent/{token}/decline"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qbank.cl/platform/consent/{token}/decline")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/consent/{token}/decline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"status": "revoked"
}{
"error": "not_found",
"message": "consent not found"
}{
"error": "already_decided",
"message": "this consent link is no longer pending"
}{
"error": "rate_limited",
"message": "too many requests"
}拒绝授权请求(公开,持有人)
持有人拒绝请求:授权变为 revoked,封存法律证据并发出 risk_consent_revoked webhook。已被决定的授权返回 409 already_decided。
POST
/
consent
/
{token}
/
decline
拒绝授权请求(公开,持有人)
curl --request POST \
--url https://api.qbank.cl/platform/consent/{token}/declineimport requests
url = "https://api.qbank.cl/platform/consent/{token}/decline"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.qbank.cl/platform/consent/{token}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qbank.cl/platform/consent/{token}/decline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/consent/{token}/decline"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qbank.cl/platform/consent/{token}/decline")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/consent/{token}/decline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"status": "revoked"
}{
"error": "not_found",
"message": "consent not found"
}{
"error": "already_decided",
"message": "this consent link is no longer pending"
}{
"error": "rate_limited",
"message": "too many requests"
}路径参数
响应
授权已拒绝。
最后修改于 2026年8月22日
⌘I