发起银行连接(公开,持有人)
curl --request POST \
--url https://api.qbank.cl/platform/consent/{token}/beginimport requests
url = "https://api.qbank.cl/platform/consent/{token}/begin"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.qbank.cl/platform/consent/{token}/begin', 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}/begin",
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}/begin"
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}/begin")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/consent/{token}/begin")
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{
"widget_token": "wtoken_2c7f9a1b4e5d40aa",
"public_key": "pk_prod_9a8f7e6d5c",
"expires_at": "2026-08-09T15:30:00Z"
}{
"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"
}发起银行连接(公开,持有人)
为持有人开启银行连接会话:返回开放金融组件渲染机构选择器所需的 widget_token 和 public_key。仅 pending 状态的授权可以发起;其他状态返回 409 already_decided。按 IP 限流。
POST
/
consent
/
{token}
/
begin
发起银行连接(公开,持有人)
curl --request POST \
--url https://api.qbank.cl/platform/consent/{token}/beginimport requests
url = "https://api.qbank.cl/platform/consent/{token}/begin"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.qbank.cl/platform/consent/{token}/begin', 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}/begin",
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}/begin"
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}/begin")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/consent/{token}/begin")
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{
"widget_token": "wtoken_2c7f9a1b4e5d40aa",
"public_key": "pk_prod_9a8f7e6d5c",
"expires_at": "2026-08-09T15:30:00Z"
}{
"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