Register External Account
curl --request POST \
--url https://mapi.boomfi.xyz/v1/accounts/external-account \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"currencies": [
"USDC"
],
"name": "Treasury (Base)",
"reference": "treasury-base",
"type": "Digital",
"account_holder_name": "<string>",
"account_number": "<string>",
"address": "<string>",
"bank_name": "<string>",
"bic": "DEUTDEFF",
"business_name": "<string>",
"chain_id": 8453,
"country": "DE",
"first_name": "<string>",
"last_name": "<string>",
"sort_code": "40-47-84"
}
'import requests
url = "https://mapi.boomfi.xyz/v1/accounts/external-account"
payload = {
"currencies": ["USDC"],
"name": "Treasury (Base)",
"reference": "treasury-base",
"type": "Digital",
"account_holder_name": "<string>",
"account_number": "<string>",
"address": "<string>",
"bank_name": "<string>",
"bic": "DEUTDEFF",
"business_name": "<string>",
"chain_id": 8453,
"country": "DE",
"first_name": "<string>",
"last_name": "<string>",
"sort_code": "40-47-84"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currencies: ['USDC'],
name: 'Treasury (Base)',
reference: 'treasury-base',
type: 'Digital',
account_holder_name: '<string>',
account_number: '<string>',
address: '<string>',
bank_name: '<string>',
bic: 'DEUTDEFF',
business_name: '<string>',
chain_id: 8453,
country: 'DE',
first_name: '<string>',
last_name: '<string>',
sort_code: '40-47-84'
})
};
fetch('https://mapi.boomfi.xyz/v1/accounts/external-account', 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://mapi.boomfi.xyz/v1/accounts/external-account",
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([
'currencies' => [
'USDC'
],
'name' => 'Treasury (Base)',
'reference' => 'treasury-base',
'type' => 'Digital',
'account_holder_name' => '<string>',
'account_number' => '<string>',
'address' => '<string>',
'bank_name' => '<string>',
'bic' => 'DEUTDEFF',
'business_name' => '<string>',
'chain_id' => 8453,
'country' => 'DE',
'first_name' => '<string>',
'last_name' => '<string>',
'sort_code' => '40-47-84'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mapi.boomfi.xyz/v1/accounts/external-account"
payload := strings.NewReader("{\n \"currencies\": [\n \"USDC\"\n ],\n \"name\": \"Treasury (Base)\",\n \"reference\": \"treasury-base\",\n \"type\": \"Digital\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"address\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bic\": \"DEUTDEFF\",\n \"business_name\": \"<string>\",\n \"chain_id\": 8453,\n \"country\": \"DE\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"sort_code\": \"40-47-84\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<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://mapi.boomfi.xyz/v1/accounts/external-account")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currencies\": [\n \"USDC\"\n ],\n \"name\": \"Treasury (Base)\",\n \"reference\": \"treasury-base\",\n \"type\": \"Digital\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"address\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bic\": \"DEUTDEFF\",\n \"business_name\": \"<string>\",\n \"chain_id\": 8453,\n \"country\": \"DE\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"sort_code\": \"40-47-84\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mapi.boomfi.xyz/v1/accounts/external-account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currencies\": [\n \"USDC\"\n ],\n \"name\": \"Treasury (Base)\",\n \"reference\": \"treasury-base\",\n \"type\": \"Digital\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"address\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bic\": \"DEUTDEFF\",\n \"business_name\": \"<string>\",\n \"chain_id\": 8453,\n \"country\": \"DE\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"sort_code\": \"40-47-84\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"account_holder_name_hint": "<string>",
"account_number_hint": "<string>",
"address": "<string>",
"bank_name": "<string>",
"beneficiary_type": "individual",
"bic": "<string>",
"chain_id": 123,
"country": "<string>",
"created_at": "<string>",
"currencies": [
"<string>"
],
"enabled": true,
"id": 123,
"name": "<string>",
"payment_rail": "SEPA",
"reference": "<string>",
"sort_code": "<string>",
"type": "Digital"
},
"error": true,
"message": "<string>"
}{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}External Accounts
Register External Account
Register a payout destination the merchant controls: a wallet address (type Digital) or a bank account (type Fiat). Registering is the whitelisting step — /accounts/virtual/payout only sends to accounts created here — so this endpoint requires X-Step-Up-Token when authenticated with a Bearer session.
POST
/
accounts
/
external-account
Register External Account
curl --request POST \
--url https://mapi.boomfi.xyz/v1/accounts/external-account \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"currencies": [
"USDC"
],
"name": "Treasury (Base)",
"reference": "treasury-base",
"type": "Digital",
"account_holder_name": "<string>",
"account_number": "<string>",
"address": "<string>",
"bank_name": "<string>",
"bic": "DEUTDEFF",
"business_name": "<string>",
"chain_id": 8453,
"country": "DE",
"first_name": "<string>",
"last_name": "<string>",
"sort_code": "40-47-84"
}
'import requests
url = "https://mapi.boomfi.xyz/v1/accounts/external-account"
payload = {
"currencies": ["USDC"],
"name": "Treasury (Base)",
"reference": "treasury-base",
"type": "Digital",
"account_holder_name": "<string>",
"account_number": "<string>",
"address": "<string>",
"bank_name": "<string>",
"bic": "DEUTDEFF",
"business_name": "<string>",
"chain_id": 8453,
"country": "DE",
"first_name": "<string>",
"last_name": "<string>",
"sort_code": "40-47-84"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currencies: ['USDC'],
name: 'Treasury (Base)',
reference: 'treasury-base',
type: 'Digital',
account_holder_name: '<string>',
account_number: '<string>',
address: '<string>',
bank_name: '<string>',
bic: 'DEUTDEFF',
business_name: '<string>',
chain_id: 8453,
country: 'DE',
first_name: '<string>',
last_name: '<string>',
sort_code: '40-47-84'
})
};
fetch('https://mapi.boomfi.xyz/v1/accounts/external-account', 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://mapi.boomfi.xyz/v1/accounts/external-account",
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([
'currencies' => [
'USDC'
],
'name' => 'Treasury (Base)',
'reference' => 'treasury-base',
'type' => 'Digital',
'account_holder_name' => '<string>',
'account_number' => '<string>',
'address' => '<string>',
'bank_name' => '<string>',
'bic' => 'DEUTDEFF',
'business_name' => '<string>',
'chain_id' => 8453,
'country' => 'DE',
'first_name' => '<string>',
'last_name' => '<string>',
'sort_code' => '40-47-84'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mapi.boomfi.xyz/v1/accounts/external-account"
payload := strings.NewReader("{\n \"currencies\": [\n \"USDC\"\n ],\n \"name\": \"Treasury (Base)\",\n \"reference\": \"treasury-base\",\n \"type\": \"Digital\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"address\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bic\": \"DEUTDEFF\",\n \"business_name\": \"<string>\",\n \"chain_id\": 8453,\n \"country\": \"DE\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"sort_code\": \"40-47-84\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<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://mapi.boomfi.xyz/v1/accounts/external-account")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currencies\": [\n \"USDC\"\n ],\n \"name\": \"Treasury (Base)\",\n \"reference\": \"treasury-base\",\n \"type\": \"Digital\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"address\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bic\": \"DEUTDEFF\",\n \"business_name\": \"<string>\",\n \"chain_id\": 8453,\n \"country\": \"DE\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"sort_code\": \"40-47-84\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mapi.boomfi.xyz/v1/accounts/external-account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currencies\": [\n \"USDC\"\n ],\n \"name\": \"Treasury (Base)\",\n \"reference\": \"treasury-base\",\n \"type\": \"Digital\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"address\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bic\": \"DEUTDEFF\",\n \"business_name\": \"<string>\",\n \"chain_id\": 8453,\n \"country\": \"DE\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"sort_code\": \"40-47-84\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"account_holder_name_hint": "<string>",
"account_number_hint": "<string>",
"address": "<string>",
"bank_name": "<string>",
"beneficiary_type": "individual",
"bic": "<string>",
"chain_id": 123,
"country": "<string>",
"created_at": "<string>",
"currencies": [
"<string>"
],
"enabled": true,
"id": 123,
"name": "<string>",
"payment_rail": "SEPA",
"reference": "<string>",
"sort_code": "<string>",
"type": "Digital"
},
"error": true,
"message": "<string>"
}{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}{
"error": {
"code": 400,
"errors": [
{
"domain": "orders",
"reason": "InsufficientQuantity"
}
],
"message": "Insufficient quantity"
}
}Headers
Body
application/json
body