Create external beneficiary
API reference
Creates an external beneficiary record (wallet + beneficiary details) for a given account. This record functions as a sort of "contact" for a recipient, kind of like the contact list in your phone for phone numbers. Account holders use this external beneficiary record as a payment destination on supported blockchains.
Endpoint: /crypto/v1/external-addresses
POST
https://sandbox.crbcos.com/crypto/v1/external-addresses
Body Parameters
- accountNumberstringrequiredDescription
- titlestringrequiredDescription
- blockchainstringrequiredDescription
- addressstringrequiredDescription
- tagstringDescription
- beneficiaryobjectrequiredDescription
- namestringrequiredDescription
- addressLine1stringrequiredDescription
- addressLine2stringDescription
- citystringrequiredDescription
- stateProvincestringrequiredDescription
- countryCodestringrequiredDescription
- postalCodestringrequiredDescription
Response
- idstringDescription
- accountNumberstringDescription
- partnerIdstringDescription
- titlestringDescription
- blockchainstringDescription
- addressstringDescription
- tagstringDescription
- beneficiaryobjectDescription
- namestringDescription
- addressLine1stringDescription
- addressLine2stringDescription
- citystringDescription
- stateProvincestringDescription
- countryCodestringDescription
- postalCodestringDescription
- lastModifiedAtstringDescription
- hasPendingChangesbooleanDescription
curl
curl --location 'https://sandbox.crbcos.com/crypto/v1/external-addresses' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Accept: text/plain' \
--data '{
"accountNumber": "2179128455",
"title": "Jerry Penn onchain",
"blockchain": "ethereum",
"address": "0x2222222222222222222222222222222222222222",
"tag": "test_ETH",
"beneficiary": {
"name": "Jerry Penn",
"addressLine1": "34 Howe Drive",
"city": "Leawood",
"stateProvince": "KS",
"countryCode": "US",
"postalCode": "66206"
}
}'nodejs
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'sandbox.crbcos.com',
'path': '/crypto/v1/external-addresses',
'headers': {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json',
'Accept': 'text/plain'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({
"accountNumber": "2179128455",
"title": "Jerry Penn onchain",
"blockchain": "etherium",
"address": "0x2222222222222222222222222222222222222222",
"tag": "test_ETH",
"beneficiary": {
"name": "Jerry Penn",
"addressLine1": "34 Howe Drive",
"city": "Leawood",
"stateProvince": "KS",
"countryCode": "US",
"postalCode": "66206"
}
});
req.write(postData);
req.end();python
import http.client
import json
conn = http.client.HTTPSConnection("sandbox.crbcos.com")
payload = json.dumps({
"accountNumber": "2179128455",
"title": "Jerry Penn onchain",
"blockchain": "etherium",
"address": "0x2222222222222222222222222222222222222222",
"tag": "test_ETH",
"beneficiary": {
"name": "Jerry Penn",
"addressLine1": "34 Howe Drive",
"city": "Leawood",
"stateProvince": "KS",
"countryCode": "US",
"postalCode": "66206"
}
})
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json',
'Accept': 'text/plain'
}
conn.request("POST", "/crypto/v1/external-addresses", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))ruby
require "uri"
require "json"
require "net/http"
url = URI("https://sandbox.crbcos.com/crypto/v1/external-addresses")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <token>"
request["Content-Type"] = "application/json"
request["Accept"] = "text/plain"
request.body = JSON.dump({
"accountNumber": "2179128455",
"title": "Jerry Penn onchain",
"blockchain": "etherium",
"address": "0x2222222222222222222222222222222222222222",
"tag": "test_ETH",
"beneficiary": {
"name": "Jerry Penn",
"addressLine1": "34 Howe Drive",
"city": "Leawood",
"stateProvince": "KS",
"countryCode": "US",
"postalCode": "66206"
}
})
response = https.request(request)
puts response.read_body
go
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.crbcos.com/crypto/v1/external-addresses"
method := "POST"
payload := strings.NewReader(`{
"accountNumber": "2179128455",
"title": "Jerry Penn onchain",
"blockchain": "ethereum",
"address": "0x2222222222222222222222222222222222222222",
"tag": "test_ETH",
"beneficiary": {
"name": "Jerry Penn",
"addressLine1": "34 Howe Drive",
"city": "Leawood",
"stateProvince": "KS",
"countryCode": "US",
"postalCode": "66206"
}
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "text/plain")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}200
{
"id": "b4cc8ee7-ebff-4b65-875e-b4650074d081",
"accountNumber": "2179128455",
"partnerId": "cd9c12f4-7691-424a-b38b-af5b0134c611",
"title": "Jerry Penn onchain",
"blockchain": "ethereum",
"address": "0x2222222222222222222222222222222222222222",
"tag": "test_ETH",
"beneficiary": {
"name": "Jerry Penn",
"addressLine1": "34 Howe Drive",
"city": "Leawood",
"stateProvince": "KS",
"countryCode": "US",
"postalCode": "66206"
},
"lastModifiedAt": "2026-06-10T07:05:18.5089232Z",
"hasPendingChanges": false
}