Create Refresh Intent
curl --request POST \
--url https://api.fintoc.com/v1/refresh_intentsimport requests
url = "https://api.fintoc.com/v1/refresh_intents"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.fintoc.com/v1/refresh_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/refresh_intents",
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.fintoc.com/v1/refresh_intents"
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.fintoc.com/v1/refresh_intents")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/refresh_intents")
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"{\n \"id\": \"ri_2dXqkOKkS9mOvnaW\",\n \"object\": \"refresh_intent\",\n \"refreshed_object\": \"link\",\n \"refreshed_object_id\": \"link_6n12zLmai3lLE9Dq\",\n \"status\": \"created\",\n \"created_at\": \"2021-08-23T18:22:46.792Z\",\n \"type\": \"only_last\"\n}""{\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"This Link was recently refreshed.You have to wait at least 5 minutes between refresh intents\",\n \"code\": \"rate_limit_exceeded\",\n \"param\": null,\n \"doc_url\": \"https://docs.fintoc.com/reference#errores\"\n }\n}"Refresh intents
Create Refresh Intent
POST
/
refresh_intents
Create Refresh Intent
curl --request POST \
--url https://api.fintoc.com/v1/refresh_intentsimport requests
url = "https://api.fintoc.com/v1/refresh_intents"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.fintoc.com/v1/refresh_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/refresh_intents",
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.fintoc.com/v1/refresh_intents"
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.fintoc.com/v1/refresh_intents")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/refresh_intents")
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"{\n \"id\": \"ri_2dXqkOKkS9mOvnaW\",\n \"object\": \"refresh_intent\",\n \"refreshed_object\": \"link\",\n \"refreshed_object_id\": \"link_6n12zLmai3lLE9Dq\",\n \"status\": \"created\",\n \"created_at\": \"2021-08-23T18:22:46.792Z\",\n \"type\": \"only_last\"\n}""{\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"This Link was recently refreshed.You have to wait at least 5 minutes between refresh intents\",\n \"code\": \"rate_limit_exceeded\",\n \"param\": null,\n \"doc_url\": \"https://docs.fintoc.com/reference#errores\"\n }\n}"v1 · Base URL https://api.fintoc.com/v1Encabezados
Fintoc Secret Key
Parámetros de consulta
The access token of the Link that wants to be updated, returned when creating said Link.
In test mode it allows you to decide the result of the Refresh Intent. In live mode it is ignored.
Opciones disponibles:
succeeded, failed, rejected The statement we are refreshing. only_last retrieves the provisional statement. historical retrieves the historical statement.
¿Esta página le ayudó?