Update an account number
curl --request PATCH \
--url https://api.fintoc.com/v2/account_numbers/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "Updated description",
"status": "disabled",
"metadata": {
"invoice_id": "12345"
},
"options": {
"min_amount": 1000,
"max_amount": 1000000
}
}
'import requests
url = "https://api.fintoc.com/v2/account_numbers/{id}"
payload = {
"description": "Updated description",
"status": "disabled",
"metadata": { "invoice_id": "12345" },
"options": {
"min_amount": 1000,
"max_amount": 1000000
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'Updated description',
status: 'disabled',
metadata: {invoice_id: '12345'},
options: {min_amount: 1000, max_amount: 1000000}
})
};
fetch('https://api.fintoc.com/v2/account_numbers/{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/account_numbers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'Updated description',
'status' => 'disabled',
'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/{id}"
payload := strings.NewReader("{\n \"description\": \"Updated description\",\n \"status\": \"disabled\",\n \"metadata\": {\n \"invoice_id\": \"12345\"\n },\n \"options\": {\n \"min_amount\": 1000,\n \"max_amount\": 1000000\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.fintoc.com/v2/account_numbers/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"Updated description\",\n \"status\": \"disabled\",\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/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"Updated description\",\n \"status\": \"disabled\",\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": "Updated description",
"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"
}{
"error": {
"code": "invalid_enum",
"message": "Invalid status 'deleted'. Must be one of ['enabled', 'disabled']"
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API Key: invalid-*oken"
}
}{
"error": {
"code": "missing_resource",
"message": "Account Number not found: acno_2daFu0zqqDtZGJaSi2TGI2Mm1nN"
}
}Números de cuenta
Update an account number
Updates the editable fields of an account number of your organization: description, status, metadata, and inbound options.
PATCH
/
v2
/
account_numbers
/
{id}
Update an account number
curl --request PATCH \
--url https://api.fintoc.com/v2/account_numbers/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "Updated description",
"status": "disabled",
"metadata": {
"invoice_id": "12345"
},
"options": {
"min_amount": 1000,
"max_amount": 1000000
}
}
'import requests
url = "https://api.fintoc.com/v2/account_numbers/{id}"
payload = {
"description": "Updated description",
"status": "disabled",
"metadata": { "invoice_id": "12345" },
"options": {
"min_amount": 1000,
"max_amount": 1000000
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'Updated description',
status: 'disabled',
metadata: {invoice_id: '12345'},
options: {min_amount: 1000, max_amount: 1000000}
})
};
fetch('https://api.fintoc.com/v2/account_numbers/{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/account_numbers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'Updated description',
'status' => 'disabled',
'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/{id}"
payload := strings.NewReader("{\n \"description\": \"Updated description\",\n \"status\": \"disabled\",\n \"metadata\": {\n \"invoice_id\": \"12345\"\n },\n \"options\": {\n \"min_amount\": 1000,\n \"max_amount\": 1000000\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.fintoc.com/v2/account_numbers/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"Updated description\",\n \"status\": \"disabled\",\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/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"Updated description\",\n \"status\": \"disabled\",\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": "Updated description",
"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"
}{
"error": {
"code": "invalid_enum",
"message": "Invalid status 'deleted'. Must be one of ['enabled', 'disabled']"
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API Key: invalid-*oken"
}
}{
"error": {
"code": "missing_resource",
"message": "Account Number not found: acno_2daFu0zqqDtZGJaSi2TGI2Mm1nN"
}
}Cuerpo
application/json
Respuesta
The updated 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ó?