Check Payment Eligibility
curl --request POST \
--url https://api.fintoc.com/v1/payment_intents/check_eligibility \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"currency": "CLP",
"sender_account": {
"holder_id": "195669317",
"institution_id": "cl_banco_de_chile"
},
"recipient_account": {
"holder_id": "183917137",
"number": "123456",
"type": "checking_account",
"institution_id": "cl_banco_de_chile"
}
}
'import requests
url = "https://api.fintoc.com/v1/payment_intents/check_eligibility"
payload = {
"amount": 1000,
"currency": "CLP",
"sender_account": {
"holder_id": "195669317",
"institution_id": "cl_banco_de_chile"
},
"recipient_account": {
"holder_id": "183917137",
"number": "123456",
"type": "checking_account",
"institution_id": "cl_banco_de_chile"
}
}
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({
amount: 1000,
currency: 'CLP',
sender_account: {holder_id: '195669317', institution_id: 'cl_banco_de_chile'},
recipient_account: {
holder_id: '183917137',
number: '123456',
type: 'checking_account',
institution_id: 'cl_banco_de_chile'
}
})
};
fetch('https://api.fintoc.com/v1/payment_intents/check_eligibility', 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/payment_intents/check_eligibility",
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([
'amount' => 1000,
'currency' => 'CLP',
'sender_account' => [
'holder_id' => '195669317',
'institution_id' => 'cl_banco_de_chile'
],
'recipient_account' => [
'holder_id' => '183917137',
'number' => '123456',
'type' => 'checking_account',
'institution_id' => 'cl_banco_de_chile'
]
]),
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/payment_intents/check_eligibility"
payload := strings.NewReader("{\n \"amount\": 1000,\n \"currency\": \"CLP\",\n \"sender_account\": {\n \"holder_id\": \"195669317\",\n \"institution_id\": \"cl_banco_de_chile\"\n },\n \"recipient_account\": {\n \"holder_id\": \"183917137\",\n \"number\": \"123456\",\n \"type\": \"checking_account\",\n \"institution_id\": \"cl_banco_de_chile\"\n }\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/payment_intents/check_eligibility")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000,\n \"currency\": \"CLP\",\n \"sender_account\": {\n \"holder_id\": \"195669317\",\n \"institution_id\": \"cl_banco_de_chile\"\n },\n \"recipient_account\": {\n \"holder_id\": \"183917137\",\n \"number\": \"123456\",\n \"type\": \"checking_account\",\n \"institution_id\": \"cl_banco_de_chile\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/payment_intents/check_eligibility")
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 \"amount\": 1000,\n \"currency\": \"CLP\",\n \"sender_account\": {\n \"holder_id\": \"195669317\",\n \"institution_id\": \"cl_banco_de_chile\"\n },\n \"recipient_account\": {\n \"holder_id\": \"183917137\",\n \"number\": \"123456\",\n \"type\": \"checking_account\",\n \"institution_id\": \"cl_banco_de_chile\"\n }\n}"
response = http.request(request)
puts response.read_body"{}""{}"Checkout Sessions
Check Payment Eligibility
POST
/
payment_intents
/
check_eligibility
Check Payment Eligibility
curl --request POST \
--url https://api.fintoc.com/v1/payment_intents/check_eligibility \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"currency": "CLP",
"sender_account": {
"holder_id": "195669317",
"institution_id": "cl_banco_de_chile"
},
"recipient_account": {
"holder_id": "183917137",
"number": "123456",
"type": "checking_account",
"institution_id": "cl_banco_de_chile"
}
}
'import requests
url = "https://api.fintoc.com/v1/payment_intents/check_eligibility"
payload = {
"amount": 1000,
"currency": "CLP",
"sender_account": {
"holder_id": "195669317",
"institution_id": "cl_banco_de_chile"
},
"recipient_account": {
"holder_id": "183917137",
"number": "123456",
"type": "checking_account",
"institution_id": "cl_banco_de_chile"
}
}
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({
amount: 1000,
currency: 'CLP',
sender_account: {holder_id: '195669317', institution_id: 'cl_banco_de_chile'},
recipient_account: {
holder_id: '183917137',
number: '123456',
type: 'checking_account',
institution_id: 'cl_banco_de_chile'
}
})
};
fetch('https://api.fintoc.com/v1/payment_intents/check_eligibility', 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/payment_intents/check_eligibility",
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([
'amount' => 1000,
'currency' => 'CLP',
'sender_account' => [
'holder_id' => '195669317',
'institution_id' => 'cl_banco_de_chile'
],
'recipient_account' => [
'holder_id' => '183917137',
'number' => '123456',
'type' => 'checking_account',
'institution_id' => 'cl_banco_de_chile'
]
]),
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/payment_intents/check_eligibility"
payload := strings.NewReader("{\n \"amount\": 1000,\n \"currency\": \"CLP\",\n \"sender_account\": {\n \"holder_id\": \"195669317\",\n \"institution_id\": \"cl_banco_de_chile\"\n },\n \"recipient_account\": {\n \"holder_id\": \"183917137\",\n \"number\": \"123456\",\n \"type\": \"checking_account\",\n \"institution_id\": \"cl_banco_de_chile\"\n }\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/payment_intents/check_eligibility")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000,\n \"currency\": \"CLP\",\n \"sender_account\": {\n \"holder_id\": \"195669317\",\n \"institution_id\": \"cl_banco_de_chile\"\n },\n \"recipient_account\": {\n \"holder_id\": \"183917137\",\n \"number\": \"123456\",\n \"type\": \"checking_account\",\n \"institution_id\": \"cl_banco_de_chile\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/payment_intents/check_eligibility")
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 \"amount\": 1000,\n \"currency\": \"CLP\",\n \"sender_account\": {\n \"holder_id\": \"195669317\",\n \"institution_id\": \"cl_banco_de_chile\"\n },\n \"recipient_account\": {\n \"holder_id\": \"183917137\",\n \"number\": \"123456\",\n \"type\": \"checking_account\",\n \"institution_id\": \"cl_banco_de_chile\"\n }\n}"
response = http.request(request)
puts response.read_body"{}""{}"v1 · Base URL https://api.fintoc.com/v1Headers
Fintoc API Secret Key
Body
application/json
Amount to pay, represented as an integer [blocked]. This value must always be greater than 0
Currency ISO code. For now, we only support CLP and MXN.
Account information to validate payment
Show child attributes
Show child attributes
Recipient account to validate payments with. Only send this if you're using Direct Payments
Show child attributes
Show child attributes
Response
200
The response is of type object.
Was this page helpful?
⌘I