Create Virtual Account
curl --request POST \
--url https://staging.crossmint.com/api/2026-09-16/virtual-accounts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"destination": {
"tokenLocator": "solana:eurc",
"walletAddress": "7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px"
},
"label": "EUR deposits",
"source": {
"currency": "eur"
},
"userLocator": "email:jane@example.com"
}
'import requests
url = "https://staging.crossmint.com/api/2026-09-16/virtual-accounts"
payload = {
"destination": {
"tokenLocator": "solana:eurc",
"walletAddress": "7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px"
},
"label": "EUR deposits",
"source": { "currency": "eur" },
"userLocator": "email:jane@example.com"
}
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({
destination: {
tokenLocator: 'solana:eurc',
walletAddress: '7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px'
},
label: 'EUR deposits',
source: {currency: 'eur'},
userLocator: 'email:jane@example.com'
})
};
fetch('https://staging.crossmint.com/api/2026-09-16/virtual-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://staging.crossmint.com/api/2026-09-16/virtual-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([
'destination' => [
'tokenLocator' => 'solana:eurc',
'walletAddress' => '7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px'
],
'label' => 'EUR deposits',
'source' => [
'currency' => 'eur'
],
'userLocator' => 'email:jane@example.com'
]),
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://staging.crossmint.com/api/2026-09-16/virtual-accounts"
payload := strings.NewReader("{\n \"destination\": {\n \"tokenLocator\": \"solana:eurc\",\n \"walletAddress\": \"7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px\"\n },\n \"label\": \"EUR deposits\",\n \"source\": {\n \"currency\": \"eur\"\n },\n \"userLocator\": \"email:jane@example.com\"\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://staging.crossmint.com/api/2026-09-16/virtual-accounts")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination\": {\n \"tokenLocator\": \"solana:eurc\",\n \"walletAddress\": \"7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px\"\n },\n \"label\": \"EUR deposits\",\n \"source\": {\n \"currency\": \"eur\"\n },\n \"userLocator\": \"email:jane@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.crossmint.com/api/2026-09-16/virtual-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 \"destination\": {\n \"tokenLocator\": \"solana:eurc\",\n \"walletAddress\": \"7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px\"\n },\n \"label\": \"EUR deposits\",\n \"source\": {\n \"currency\": \"eur\"\n },\n \"userLocator\": \"email:jane@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-11-16T10:00:00.000Z",
"depositInstructions": {
"bankAccount": {
"accountHolder": {
"name": "Jane Doe"
},
"bic": "EXAMPLEXXX",
"country": "MT",
"currency": "eur",
"entityType": "individual",
"iban": "MT00EXAMPLE0000000000000000000",
"institutionAddress": "Level 3, 137 Spinola Road, St Julian's STJ 3011, Malta",
"institutionName": "OpenPayd Financial Services Malta Limited",
"rails": {
"supported": [
"sct",
"sct-inst"
]
}
}
},
"destination": {
"tokenLocator": "solana:eurc",
"walletAddress": "7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px"
},
"label": "EUR deposits",
"status": "active",
"statusReason": null,
"updatedAt": "2026-11-16T10:00:04.000Z",
"userLocator": "email:jane@example.com",
"virtualAccountId": "7c2e9a41-3b5d-4f8e-a6c1-2d9b0e4f7a35"
}Virtual Accounts
Create Virtual Account
Opens a virtual account for a verified user. Bank transfers to its bank details arrive in the user’s wallet as stablecoins
POST
/
2026-09-16
/
virtual-accounts
Create Virtual Account
curl --request POST \
--url https://staging.crossmint.com/api/2026-09-16/virtual-accounts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"destination": {
"tokenLocator": "solana:eurc",
"walletAddress": "7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px"
},
"label": "EUR deposits",
"source": {
"currency": "eur"
},
"userLocator": "email:jane@example.com"
}
'import requests
url = "https://staging.crossmint.com/api/2026-09-16/virtual-accounts"
payload = {
"destination": {
"tokenLocator": "solana:eurc",
"walletAddress": "7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px"
},
"label": "EUR deposits",
"source": { "currency": "eur" },
"userLocator": "email:jane@example.com"
}
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({
destination: {
tokenLocator: 'solana:eurc',
walletAddress: '7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px'
},
label: 'EUR deposits',
source: {currency: 'eur'},
userLocator: 'email:jane@example.com'
})
};
fetch('https://staging.crossmint.com/api/2026-09-16/virtual-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://staging.crossmint.com/api/2026-09-16/virtual-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([
'destination' => [
'tokenLocator' => 'solana:eurc',
'walletAddress' => '7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px'
],
'label' => 'EUR deposits',
'source' => [
'currency' => 'eur'
],
'userLocator' => 'email:jane@example.com'
]),
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://staging.crossmint.com/api/2026-09-16/virtual-accounts"
payload := strings.NewReader("{\n \"destination\": {\n \"tokenLocator\": \"solana:eurc\",\n \"walletAddress\": \"7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px\"\n },\n \"label\": \"EUR deposits\",\n \"source\": {\n \"currency\": \"eur\"\n },\n \"userLocator\": \"email:jane@example.com\"\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://staging.crossmint.com/api/2026-09-16/virtual-accounts")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination\": {\n \"tokenLocator\": \"solana:eurc\",\n \"walletAddress\": \"7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px\"\n },\n \"label\": \"EUR deposits\",\n \"source\": {\n \"currency\": \"eur\"\n },\n \"userLocator\": \"email:jane@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.crossmint.com/api/2026-09-16/virtual-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 \"destination\": {\n \"tokenLocator\": \"solana:eurc\",\n \"walletAddress\": \"7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px\"\n },\n \"label\": \"EUR deposits\",\n \"source\": {\n \"currency\": \"eur\"\n },\n \"userLocator\": \"email:jane@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-11-16T10:00:00.000Z",
"depositInstructions": {
"bankAccount": {
"accountHolder": {
"name": "Jane Doe"
},
"bic": "EXAMPLEXXX",
"country": "MT",
"currency": "eur",
"entityType": "individual",
"iban": "MT00EXAMPLE0000000000000000000",
"institutionAddress": "Level 3, 137 Spinola Road, St Julian's STJ 3011, Malta",
"institutionName": "OpenPayd Financial Services Malta Limited",
"rails": {
"supported": [
"sct",
"sct-inst"
]
}
}
},
"destination": {
"tokenLocator": "solana:eurc",
"walletAddress": "7vQ3mXk2Lp9RtYw4NcB8sHd6JfGa1ZeUoTq5Vr3k9Px"
},
"label": "EUR deposits",
"status": "active",
"statusReason": null,
"updatedAt": "2026-11-16T10:00:04.000Z",
"userLocator": "email:jane@example.com",
"virtualAccountId": "7c2e9a41-3b5d-4f8e-a6c1-2d9b0e4f7a35"
}Virtual Accounts are gated in both staging and production. Contact Crossmint to get access, then follow the quickstart to open a first account.
Body
application/json
Response
The open account for the same user, currency and destination, returned as it is.
Was this page helpful?

