Create Account
curl --request POST \
--url https://mapi.zbx.boomfi.xyz/v1/accounts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"currencies": [
"USDC",
"ETH"
],
"reference": "treasury",
"type": "CryptoPayIn",
"address": "<string>",
"chain_id": 8453,
"name": "Treasury",
"parent_account_id": "42"
}
'import requests
url = "https://mapi.zbx.boomfi.xyz/v1/accounts"
payload = {
"currencies": ["USDC", "ETH"],
"reference": "treasury",
"type": "CryptoPayIn",
"address": "<string>",
"chain_id": 8453,
"name": "Treasury",
"parent_account_id": "42"
}
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', 'ETH'],
reference: 'treasury',
type: 'CryptoPayIn',
address: '<string>',
chain_id: 8453,
name: 'Treasury',
parent_account_id: '42'
})
};
fetch('https://mapi.zbx.boomfi.xyz/v1/accounts', 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.zbx.boomfi.xyz/v1/accounts",
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',
'ETH'
],
'reference' => 'treasury',
'type' => 'CryptoPayIn',
'address' => '<string>',
'chain_id' => 8453,
'name' => 'Treasury',
'parent_account_id' => '42'
]),
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.zbx.boomfi.xyz/v1/accounts"
payload := strings.NewReader("{\n \"currencies\": [\n \"USDC\",\n \"ETH\"\n ],\n \"reference\": \"treasury\",\n \"type\": \"CryptoPayIn\",\n \"address\": \"<string>\",\n \"chain_id\": 8453,\n \"name\": \"Treasury\",\n \"parent_account_id\": \"42\"\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.zbx.boomfi.xyz/v1/accounts")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currencies\": [\n \"USDC\",\n \"ETH\"\n ],\n \"reference\": \"treasury\",\n \"type\": \"CryptoPayIn\",\n \"address\": \"<string>\",\n \"chain_id\": 8453,\n \"name\": \"Treasury\",\n \"parent_account_id\": \"42\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mapi.zbx.boomfi.xyz/v1/accounts")
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 \"ETH\"\n ],\n \"reference\": \"treasury\",\n \"type\": \"CryptoPayIn\",\n \"address\": \"<string>\",\n \"chain_id\": 8453,\n \"name\": \"Treasury\",\n \"parent_account_id\": \"42\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"account_number": [
"<string>"
],
"address": "<string>",
"chain": {
"id": 123,
"name": "<string>",
"native_currency_symbol": "<string>"
},
"chain_id": 123,
"created_at": "<string>",
"created_by": "<string>",
"currencies": [
"<string>"
],
"deleted_at": "<string>",
"deposit_splits": [
{
"account_id": 123,
"account_ref": "<string>",
"address": "<string>",
"pct": "<string>"
}
],
"enabled": true,
"id": 123,
"name": "<string>",
"org_id": "<string>",
"parent": "<unknown>",
"parent_id": 123,
"payin_fee_pct": 123,
"payout_fee_pct": 123,
"properties": {},
"reference": "<string>",
"sort_code": [
"<string>"
],
"sub_accounts": "<array>",
"updated_at": "<string>"
},
"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"
}
}Accounts
Create Account
Create an account
POST
/
accounts
Create Account
curl --request POST \
--url https://mapi.zbx.boomfi.xyz/v1/accounts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"currencies": [
"USDC",
"ETH"
],
"reference": "treasury",
"type": "CryptoPayIn",
"address": "<string>",
"chain_id": 8453,
"name": "Treasury",
"parent_account_id": "42"
}
'import requests
url = "https://mapi.zbx.boomfi.xyz/v1/accounts"
payload = {
"currencies": ["USDC", "ETH"],
"reference": "treasury",
"type": "CryptoPayIn",
"address": "<string>",
"chain_id": 8453,
"name": "Treasury",
"parent_account_id": "42"
}
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', 'ETH'],
reference: 'treasury',
type: 'CryptoPayIn',
address: '<string>',
chain_id: 8453,
name: 'Treasury',
parent_account_id: '42'
})
};
fetch('https://mapi.zbx.boomfi.xyz/v1/accounts', 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.zbx.boomfi.xyz/v1/accounts",
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',
'ETH'
],
'reference' => 'treasury',
'type' => 'CryptoPayIn',
'address' => '<string>',
'chain_id' => 8453,
'name' => 'Treasury',
'parent_account_id' => '42'
]),
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.zbx.boomfi.xyz/v1/accounts"
payload := strings.NewReader("{\n \"currencies\": [\n \"USDC\",\n \"ETH\"\n ],\n \"reference\": \"treasury\",\n \"type\": \"CryptoPayIn\",\n \"address\": \"<string>\",\n \"chain_id\": 8453,\n \"name\": \"Treasury\",\n \"parent_account_id\": \"42\"\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.zbx.boomfi.xyz/v1/accounts")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currencies\": [\n \"USDC\",\n \"ETH\"\n ],\n \"reference\": \"treasury\",\n \"type\": \"CryptoPayIn\",\n \"address\": \"<string>\",\n \"chain_id\": 8453,\n \"name\": \"Treasury\",\n \"parent_account_id\": \"42\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mapi.zbx.boomfi.xyz/v1/accounts")
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 \"ETH\"\n ],\n \"reference\": \"treasury\",\n \"type\": \"CryptoPayIn\",\n \"address\": \"<string>\",\n \"chain_id\": 8453,\n \"name\": \"Treasury\",\n \"parent_account_id\": \"42\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"account_number": [
"<string>"
],
"address": "<string>",
"chain": {
"id": 123,
"name": "<string>",
"native_currency_symbol": "<string>"
},
"chain_id": 123,
"created_at": "<string>",
"created_by": "<string>",
"currencies": [
"<string>"
],
"deleted_at": "<string>",
"deposit_splits": [
{
"account_id": 123,
"account_ref": "<string>",
"address": "<string>",
"pct": "<string>"
}
],
"enabled": true,
"id": 123,
"name": "<string>",
"org_id": "<string>",
"parent": "<unknown>",
"parent_id": 123,
"payin_fee_pct": 123,
"payout_fee_pct": 123,
"properties": {},
"reference": "<string>",
"sort_code": [
"<string>"
],
"sub_accounts": "<array>",
"updated_at": "<string>"
},
"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"
}
}Authorizations
Body
application/json
Create account request
Supported currency symbols on this account.
Example:
["USDC", "ETH"]
Bundling key: one chain_id per account per reference.
Example:
"treasury"
Account type. Create currently accepts CryptoPayIn only.
Available options:
CryptoPayIn Example:
"CryptoPayIn"
Self-custody wallet address (required when ManagedAccount is false).
Chain ID for the wallet/account.
Example:
8453
Human-readable account name.
Example:
"Treasury"
Optional parent settlement account ID.
Example:
"42"
⌘I