Create Link Intent
curl --request POST \
--url https://api.fintoc.com/v1/link_intents \
--header 'Content-Type: application/json' \
--data '
{
"product": "movements",
"country": "cl",
"holder_type": "business"
}
'import requests
url = "https://api.fintoc.com/v1/link_intents"
payload = {
"product": "movements",
"country": "cl",
"holder_type": "business"
}
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({product: 'movements', country: 'cl', holder_type: 'business'})
};
fetch('https://api.fintoc.com/v1/link_intents', 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/link_intents",
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([
'product' => 'movements',
'country' => 'cl',
'holder_type' => 'business'
]),
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.fintoc.com/v1/link_intents"
payload := strings.NewReader("{\n \"product\": \"movements\",\n \"country\": \"cl\",\n \"holder_type\": \"business\"\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.fintoc.com/v1/link_intents")
.header("Content-Type", "application/json")
.body("{\n \"product\": \"movements\",\n \"country\": \"cl\",\n \"holder_type\": \"business\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/link_intents")
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 \"product\": \"movements\",\n \"country\": \"cl\",\n \"holder_type\": \"business\"\n}"
response = http.request(request)
puts response.read_body"{\n \"id\": \"li_a6WUojQ2SjSSeFjH\",\n \"object\": \"link_intent\",\n \"widget_token\": \"li_a6WUojQ2SjSSeFjH_sec_Q802GD8ZLmMuK0Atl4ucJuLp\",\n \"country\": \"cl\",\n \"holder_type\": \"individual\",\n \"product\": \"movements\",\n \"mode\": \"live\",\n \"exchange_token\": null,\n \"exchange_token_expires_at\": null,\n \"created_at\": \"2022-12-01T01:50:12Z\",\n \"status\": \"created\"\n}""{\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"Missing required param: holder_type\",\n \"code\": \"missing_parameter\",\n \"param\": \"holder_type\",\n \"doc_url\": \"https://docs.fintoc.com/reference/errors\"\n }\n}"Link Intents
Create Link Intent
Creates the resource with your user connection configurations and returns Link Intent with widget_token.
POST
/
link_intents
Create Link Intent
curl --request POST \
--url https://api.fintoc.com/v1/link_intents \
--header 'Content-Type: application/json' \
--data '
{
"product": "movements",
"country": "cl",
"holder_type": "business"
}
'import requests
url = "https://api.fintoc.com/v1/link_intents"
payload = {
"product": "movements",
"country": "cl",
"holder_type": "business"
}
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({product: 'movements', country: 'cl', holder_type: 'business'})
};
fetch('https://api.fintoc.com/v1/link_intents', 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/link_intents",
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([
'product' => 'movements',
'country' => 'cl',
'holder_type' => 'business'
]),
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.fintoc.com/v1/link_intents"
payload := strings.NewReader("{\n \"product\": \"movements\",\n \"country\": \"cl\",\n \"holder_type\": \"business\"\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.fintoc.com/v1/link_intents")
.header("Content-Type", "application/json")
.body("{\n \"product\": \"movements\",\n \"country\": \"cl\",\n \"holder_type\": \"business\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/link_intents")
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 \"product\": \"movements\",\n \"country\": \"cl\",\n \"holder_type\": \"business\"\n}"
response = http.request(request)
puts response.read_body"{\n \"id\": \"li_a6WUojQ2SjSSeFjH\",\n \"object\": \"link_intent\",\n \"widget_token\": \"li_a6WUojQ2SjSSeFjH_sec_Q802GD8ZLmMuK0Atl4ucJuLp\",\n \"country\": \"cl\",\n \"holder_type\": \"individual\",\n \"product\": \"movements\",\n \"mode\": \"live\",\n \"exchange_token\": null,\n \"exchange_token_expires_at\": null,\n \"created_at\": \"2022-12-01T01:50:12Z\",\n \"status\": \"created\"\n}""{\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"Missing required param: holder_type\",\n \"code\": \"missing_parameter\",\n \"param\": \"holder_type\",\n \"doc_url\": \"https://docs.fintoc.com/reference/errors\"\n }\n}"v1 · Base URL https://api.fintoc.com/v1Headers
Fintoc Secret Key
Body
application/json
Response
201
Example:
"li_a6WUojQ2SjSSeFjH"
Example:
"link_intent"
Example:
"li_a6WUojQ2SjSSeFjH_sec_Q802GD8ZLmMuK0Atl4ucJuLp"
Example:
"cl"
Example:
"individual"
Example:
"movements"
Example:
"live"
Example:
"2022-12-01T01:50:12Z"
Example:
"created"
Was this page helpful?
⌘I