Otorgar el consentimiento tras conectar el banco (publico, titular)
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"
}Otorgar el consentimiento tras conectar el banco (publico, titular)
Completa el flujo despues de que el titular conecto su banco en el widget: la plataforma intercambia el exchange_token, exige que el vinculo bancario este active (409 link_inactive) y que el documento del titular verificado por el banco calce exactamente con el documento del sujeto (409 holder_mismatch — una cuenta de OTRO documento jamas otorga el consentimiento). Al completar, el consent queda granted, se sella la evidencia legal (IP y user agent), se gatilla la derivacion de data positiva y se emite el webhook risk_consent_granted.
POST
/
consent
/
{token}
/
complete
Otorgar el consentimiento tras conectar el banco (publico, titular)
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"
}Parámetros de ruta
Respuesta
Consent otorgado.
Última modificación el 22 de agosto de 2026
⌘I