curl --request GET \
--url https://api.fintoc.com/v2/accounts/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.fintoc.com/v2/accounts/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.fintoc.com/v2/accounts/{id}', 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/v2/accounts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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/v2/accounts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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/v2/accounts/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v2/accounts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "acc_2daFu0zqqDtZGJaSi2TGI2Mm1nN",
"object": "account",
"available_balance": 1050000,
"currency": "MXN",
"description": "Main collection account",
"entity": {
"id": "ent_2eGhTp1rLqWnXkZbYc4JsKmAvD9",
"holder_id": "000000000",
"holder_name": "Test Customer 1",
"is_root": true
},
"is_root": true,
"mode": "test",
"root_account_number": "646180111800000004",
"root_account_number_id": "acno_2fJkRm7tBvQxNzYpLc5WsHaDfT3",
"status": "active"
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API Key: invalid-*oken"
}
}{
"error": {
"code": "missing_resource",
"message": "Account not found: acc_2daFu0zqqDtZGJaSi2TGI2Mm1nN"
}
}Get an account
Returns the details of an account of your organization, identified by its ID.
curl --request GET \
--url https://api.fintoc.com/v2/accounts/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.fintoc.com/v2/accounts/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.fintoc.com/v2/accounts/{id}', 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/v2/accounts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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/v2/accounts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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/v2/accounts/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v2/accounts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "acc_2daFu0zqqDtZGJaSi2TGI2Mm1nN",
"object": "account",
"available_balance": 1050000,
"currency": "MXN",
"description": "Main collection account",
"entity": {
"id": "ent_2eGhTp1rLqWnXkZbYc4JsKmAvD9",
"holder_id": "000000000",
"holder_name": "Test Customer 1",
"is_root": true
},
"is_root": true,
"mode": "test",
"root_account_number": "646180111800000004",
"root_account_number_id": "acno_2fJkRm7tBvQxNzYpLc5WsHaDfT3",
"status": "active"
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API Key: invalid-*oken"
}
}{
"error": {
"code": "missing_resource",
"message": "Account not found: acc_2daFu0zqqDtZGJaSi2TGI2Mm1nN"
}
}Autorizaciones
Parámetros de ruta
Unique identifier of the account to retrieve.
Respuesta
The requested account.
Unique identifier of the account.
"acc_2daFu0zqqDtZGJaSi2TGI2Mm1nN"
Type of the object. Always account.
Available balance of the account, in the smallest currency unit. For MXN the smallest unit is the centavo; for CLP it is the peso, which has no minor unit.
1050000
ISO 4217 currency code of the account. One of CLP, MXN.
CLP, MXN "MXN"
Free-text description of the account, or null when none is set.
"Main collection account"
Owner entity of the account.
Show child attributes
Show child attributes
Whether this account is the organization's root account.
true
Whether the account holds live or test data.
live, test "test"
Default account number of the account. In Mexico, the 18-digit standardized bank account number (CLABE); in Chile, the bank account number.
"646180111800000004"
Identifier of the default account number.
"acno_2fJkRm7tBvQxNzYpLc5WsHaDfT3"
Status of the account. One of active, blocked, closed.
active, blocked, closed "active"
¿Esta página le ayudó?