Exchange
curl --request GET \
--url https://api.fintoc.com/v1/links/exchangeimport requests
url = "https://api.fintoc.com/v1/links/exchange"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fintoc.com/v1/links/exchange', 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.fintoc.com/v1/links/exchange",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.fintoc.com/v1/links/exchange"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fintoc.com/v1/links/exchange")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/links/exchange")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"{\n \"id\": \"link_XjJXdkxukfbd8PYC\",\n \"holder_id\": \"123456789\",\n \"username\": \"123456789\",\n \"holder_type\": \"individual\",\n \"created_at\": \"2022-11-29T17:44:13.963Z\",\n \"institution\": {\n \"id\": \"cl_banco_estado\",\n \"name\": \"Banco Estado\",\n \"country\": \"cl\"\n },\n \"link_token\": \"link_XjJXdkxukfbd8PYC_token_tkPy4WHSLHp1oiKVItONG0Uq\",\n \"mode\": \"live\",\n \"active\": true,\n \"status\": \"active\",\n \"object\": \"link\",\n \"accounts\": [\n {\n \"id\": \"acc_a6WUojQ2SjSSeFjH\",\n \"type\": \"sight_account\",\n \"number\": \"12345678\",\n \"name\": \"Cuenta Vista\",\n \"official_name\": \"CuentaRUT\",\n \"balance\": {\n \"available\": 5000,\n \"current\": 5000,\n \"limit\": 5000\n },\n \"holder_id\": \"123456789\",\n \"holder_name\": \"JON SNOW\",\n \"currency\": \"CLP\",\n \"refreshed_at\": \"2022-11-29T18:51:04.026Z\",\n \"object\": \"account\"\n }\n ]\n}""{\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"Expired exchange_token. This token cannot be used again because it's valid time has passed.\",\n \"code\": \"expired_exchange_token\",\n \"param\": \"exchange_token\",\n \"doc_url\": \"https://docs.fintoc.com/reference/errors\"\n }\n}"Links
Exchange
Exchange your exchange_token for the Link.
GET
/
links
/
exchange
Exchange
curl --request GET \
--url https://api.fintoc.com/v1/links/exchangeimport requests
url = "https://api.fintoc.com/v1/links/exchange"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fintoc.com/v1/links/exchange', 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.fintoc.com/v1/links/exchange",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.fintoc.com/v1/links/exchange"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fintoc.com/v1/links/exchange")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/links/exchange")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"{\n \"id\": \"link_XjJXdkxukfbd8PYC\",\n \"holder_id\": \"123456789\",\n \"username\": \"123456789\",\n \"holder_type\": \"individual\",\n \"created_at\": \"2022-11-29T17:44:13.963Z\",\n \"institution\": {\n \"id\": \"cl_banco_estado\",\n \"name\": \"Banco Estado\",\n \"country\": \"cl\"\n },\n \"link_token\": \"link_XjJXdkxukfbd8PYC_token_tkPy4WHSLHp1oiKVItONG0Uq\",\n \"mode\": \"live\",\n \"active\": true,\n \"status\": \"active\",\n \"object\": \"link\",\n \"accounts\": [\n {\n \"id\": \"acc_a6WUojQ2SjSSeFjH\",\n \"type\": \"sight_account\",\n \"number\": \"12345678\",\n \"name\": \"Cuenta Vista\",\n \"official_name\": \"CuentaRUT\",\n \"balance\": {\n \"available\": 5000,\n \"current\": 5000,\n \"limit\": 5000\n },\n \"holder_id\": \"123456789\",\n \"holder_name\": \"JON SNOW\",\n \"currency\": \"CLP\",\n \"refreshed_at\": \"2022-11-29T18:51:04.026Z\",\n \"object\": \"account\"\n }\n ]\n}""{\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"Expired exchange_token. This token cannot be used again because it's valid time has passed.\",\n \"code\": \"expired_exchange_token\",\n \"param\": \"exchange_token\",\n \"doc_url\": \"https://docs.fintoc.com/reference/errors\"\n }\n}"v1 · Base URL https://api.fintoc.com/v1Encabezados
Fintoc Secret Key
Parámetros de consulta
Temporary token to get Link resource of your users connections.
Respuesta
200
Ejemplo:
"link_XjJXdkxukfbd8PYC"
Ejemplo:
"123456789"
Ejemplo:
"123456789"
Ejemplo:
"individual"
Ejemplo:
"2022-11-29T17:44:13.963Z"
Show child attributes
Show child attributes
Ejemplo:
"link_XjJXdkxukfbd8PYC_token_tkPy4WHSLHp1oiKVItONG0Uq"
Ejemplo:
"live"
Ejemplo:
true
Ejemplo:
"active"
Ejemplo:
"link"
Show child attributes
Show child attributes
¿Esta página le ayudó?
⌘I