Grant the consent after connecting the bank (public, holder)
curl --request POST \
--url https://api.qbank.cl/platform/consent/{token}/complete \
--header 'Content-Type: application/json' \
--data '
{
"exchange_token": "etok_7f3a9c1e2b4d46aa"
}
'import requests
url = "https://api.qbank.cl/platform/consent/{token}/complete"
payload = { "exchange_token": "etok_7f3a9c1e2b4d46aa" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({exchange_token: 'etok_7f3a9c1e2b4d46aa'})
};
fetch('https://api.qbank.cl/platform/consent/{token}/complete', 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}/complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'exchange_token' => 'etok_7f3a9c1e2b4d46aa'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/consent/{token}/complete"
payload := strings.NewReader("{\n \"exchange_token\": \"etok_7f3a9c1e2b4d46aa\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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}/complete")
.header("Content-Type", "application/json")
.body("{\n \"exchange_token\": \"etok_7f3a9c1e2b4d46aa\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/consent/{token}/complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"exchange_token\": \"etok_7f3a9c1e2b4d46aa\"\n}"
response = http.request(request)
puts response.read_body{
"status": "granted",
"granted_at": "2026-08-10T09:21:44Z",
"holder_name": "Maria Jose Contreras Soto"
}{
"error": "not_found",
"message": "consent not found"
}{
"error": "holder_mismatch",
"message": "the connected account belongs to a different document"
}{
"error": "rate_limited",
"message": "too many requests"
}{
"error": "provider_error",
"message": "the banking connection could not be completed"
}Grant the consent after connecting the bank (public, holder)
Completes the flow after the holder connected their bank in the widget: the platform exchanges the exchange_token, requires the banking link to be active (409 link_inactive) and requires the holder document verified by the bank to match the subject document exactly (409 holder_mismatch — an account owned by a different document can never grant the consent). On success the consent becomes granted, the legal evidence (IP and user agent) is sealed, the positive-data derivation is triggered and the risk_consent_granted webhook is emitted.
POST
/
consent
/
{token}
/
complete
Grant the consent after connecting the bank (public, holder)
curl --request POST \
--url https://api.qbank.cl/platform/consent/{token}/complete \
--header 'Content-Type: application/json' \
--data '
{
"exchange_token": "etok_7f3a9c1e2b4d46aa"
}
'import requests
url = "https://api.qbank.cl/platform/consent/{token}/complete"
payload = { "exchange_token": "etok_7f3a9c1e2b4d46aa" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({exchange_token: 'etok_7f3a9c1e2b4d46aa'})
};
fetch('https://api.qbank.cl/platform/consent/{token}/complete', 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}/complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'exchange_token' => 'etok_7f3a9c1e2b4d46aa'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/consent/{token}/complete"
payload := strings.NewReader("{\n \"exchange_token\": \"etok_7f3a9c1e2b4d46aa\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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}/complete")
.header("Content-Type", "application/json")
.body("{\n \"exchange_token\": \"etok_7f3a9c1e2b4d46aa\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/consent/{token}/complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"exchange_token\": \"etok_7f3a9c1e2b4d46aa\"\n}"
response = http.request(request)
puts response.read_body{
"status": "granted",
"granted_at": "2026-08-10T09:21:44Z",
"holder_name": "Maria Jose Contreras Soto"
}{
"error": "not_found",
"message": "consent not found"
}{
"error": "holder_mismatch",
"message": "the connected account belongs to a different document"
}{
"error": "rate_limited",
"message": "too many requests"
}{
"error": "provider_error",
"message": "the banking connection could not be completed"
}Path Parameters
Response
Consent granted.
Last modified on August 22, 2026
⌘I