Create an account number
curl --request POST \
--url https://api.fintoc.com/v2/account_numbers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA",
"description": "Payouts CLABE",
"metadata": {
"invoice_id": "12345"
},
"options": {
"min_amount": 1000,
"max_amount": 1000000
}
}
'import requests
url = "https://api.fintoc.com/v2/account_numbers"
payload = {
"account_id": "acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA",
"description": "Payouts CLABE",
"metadata": { "invoice_id": "12345" },
"options": {
"min_amount": 1000,
"max_amount": 1000000
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: 'acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA',
description: 'Payouts CLABE',
metadata: {invoice_id: '12345'},
options: {min_amount: 1000, max_amount: 1000000}
})
};
fetch('https://api.fintoc.com/v2/account_numbers', 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/account_numbers",
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([
'account_id' => 'acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA',
'description' => 'Payouts CLABE',
'metadata' => [
'invoice_id' => '12345'
],
'options' => [
'min_amount' => 1000,
'max_amount' => 1000000
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/v2/account_numbers"
payload := strings.NewReader("{\n \"account_id\": \"acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA\",\n \"description\": \"Payouts CLABE\",\n \"metadata\": {\n \"invoice_id\": \"12345\"\n },\n \"options\": {\n \"min_amount\": 1000,\n \"max_amount\": 1000000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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/v2/account_numbers")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA\",\n \"description\": \"Payouts CLABE\",\n \"metadata\": {\n \"invoice_id\": \"12345\"\n },\n \"options\": {\n \"min_amount\": 1000,\n \"max_amount\": 1000000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v2/account_numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA\",\n \"description\": \"Payouts CLABE\",\n \"metadata\": {\n \"invoice_id\": \"12345\"\n },\n \"options\": {\n \"min_amount\": 1000,\n \"max_amount\": 1000000\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "acno_2daFu0zqqDtZGJaSi2TGI2Mm1nN",
"object": "account_number",
"account_id": "acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA",
"created_at": "2026-03-01T12:00:00.000Z",
"deleted_at": null,
"description": "Payouts CLABE",
"is_root": false,
"last_transfer_at": null,
"metadata": {
"invoice_id": "12345"
},
"mode": "test",
"number": "646180111800000004",
"options": {
"min_amount": 1000,
"max_amount": 1000000
},
"status": "enabled",
"updated_at": "2026-03-01T12:00:00.000Z"
}Números de cuenta
Create an account number
Creates a new account number for one of your accounts, in the live or test mode of the API key used. In Mexico, Fintoc generates 18-digit standardized Mexican bank account numbers (CLABEs) for you. In Chile, Fintoc generates the account number for you.
POST
/
v2
/
account_numbers
Create an account number
curl --request POST \
--url https://api.fintoc.com/v2/account_numbers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA",
"description": "Payouts CLABE",
"metadata": {
"invoice_id": "12345"
},
"options": {
"min_amount": 1000,
"max_amount": 1000000
}
}
'import requests
url = "https://api.fintoc.com/v2/account_numbers"
payload = {
"account_id": "acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA",
"description": "Payouts CLABE",
"metadata": { "invoice_id": "12345" },
"options": {
"min_amount": 1000,
"max_amount": 1000000
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: 'acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA',
description: 'Payouts CLABE',
metadata: {invoice_id: '12345'},
options: {min_amount: 1000, max_amount: 1000000}
})
};
fetch('https://api.fintoc.com/v2/account_numbers', 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/account_numbers",
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([
'account_id' => 'acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA',
'description' => 'Payouts CLABE',
'metadata' => [
'invoice_id' => '12345'
],
'options' => [
'min_amount' => 1000,
'max_amount' => 1000000
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/v2/account_numbers"
payload := strings.NewReader("{\n \"account_id\": \"acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA\",\n \"description\": \"Payouts CLABE\",\n \"metadata\": {\n \"invoice_id\": \"12345\"\n },\n \"options\": {\n \"min_amount\": 1000,\n \"max_amount\": 1000000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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/v2/account_numbers")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA\",\n \"description\": \"Payouts CLABE\",\n \"metadata\": {\n \"invoice_id\": \"12345\"\n },\n \"options\": {\n \"min_amount\": 1000,\n \"max_amount\": 1000000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v2/account_numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA\",\n \"description\": \"Payouts CLABE\",\n \"metadata\": {\n \"invoice_id\": \"12345\"\n },\n \"options\": {\n \"min_amount\": 1000,\n \"max_amount\": 1000000\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "acno_2daFu0zqqDtZGJaSi2TGI2Mm1nN",
"object": "account_number",
"account_id": "acc_2hQ9vBmKpR7xLtZ3sWn1fJ4dGcA",
"created_at": "2026-03-01T12:00:00.000Z",
"deleted_at": null,
"description": "Payouts CLABE",
"is_root": false,
"last_transfer_at": null,
"metadata": {
"invoice_id": "12345"
},
"mode": "test",
"number": "646180111800000004",
"options": {
"min_amount": 1000,
"max_amount": 1000000
},
"status": "enabled",
"updated_at": "2026-03-01T12:00:00.000Z"
}Cuerpo
application/json
Respuesta
The created account number.
Current state of the account number. One of enabled (can receive inbound transfers), disabled (you turned off inbound transfers), blocked (Fintoc blocked inbound transfers), or deleted (removed; see deleted_at).
Opciones disponibles:
enabled, disabled, blocked, deleted Ejemplo:
"enabled"
¿Esta página le ayudó?