curl -X POST https://api.relayer.fi/v1/payout/onramp/deposit-accounts \
-H "Authorization: ApiKey $RELAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"currency": "mxn",
"country": "MX",
"stablecoin": "usdc",
"chain": "base",
"destinationAddress": "0xYourWallet..."
}'const response = await fetch("https://api.relayer.fi/v1/payout/onramp/deposit-accounts", {
method: "POST",
headers: {
Authorization: `ApiKey ${process.env.RELAYER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
currency: "mxn",
country: "MX",
stablecoin: "usdc",
chain: "base",
destinationAddress: yourWalletAddress,
}),
});
const { data } = await response.json();
// data.clabe — the fiat deposit account. Idempotent.
// data.id — pass to GET /payout/onramp/deposit-accounts/{id}/events for tracking.import requests
url = "https://testnet.relayer.fi/v1/payout/onramp/deposit-accounts"
payload = {
"wallet_id": "wallet-abc123def456",
"source_currency": "usd",
"destination_currency": "usdc",
"chain": "avalanche_c_chain"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
wallet_id: 'wallet-abc123def456',
source_currency: 'usd',
destination_currency: 'usdc',
chain: 'avalanche_c_chain'
})
};
fetch('https://testnet.relayer.fi/v1/payout/onramp/deposit-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://testnet.relayer.fi/v1/payout/onramp/deposit-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([
'wallet_id' => 'wallet-abc123def456',
'source_currency' => 'usd',
'destination_currency' => 'usdc',
'chain' => 'avalanche_c_chain'
]),
CURLOPT_HTTPHEADER => [
"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://testnet.relayer.fi/v1/payout/onramp/deposit-accounts"
payload := strings.NewReader("{\n \"wallet_id\": \"wallet-abc123def456\",\n \"source_currency\": \"usd\",\n \"destination_currency\": \"usdc\",\n \"chain\": \"avalanche_c_chain\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://testnet.relayer.fi/v1/payout/onramp/deposit-accounts")
.header("Content-Type", "application/json")
.body("{\n \"wallet_id\": \"wallet-abc123def456\",\n \"source_currency\": \"usd\",\n \"destination_currency\": \"usdc\",\n \"chain\": \"avalanche_c_chain\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://testnet.relayer.fi/v1/payout/onramp/deposit-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet_id\": \"wallet-abc123def456\",\n \"source_currency\": \"usd\",\n \"destination_currency\": \"usdc\",\n \"chain\": \"avalanche_c_chain\"\n}"
response = http.request(request)
puts response.read_body{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"reference": "ONR-20260505-0001",
"integrator_id": "7f1c5fc8-2a45-4cb0-9d3a-9b9c5b9a9b9c",
"wallet_id": "6f1c5fc8-2a45-4cb0-9d3a-9b9c5b9a9b9c",
"source_currency": "usd",
"bridge_virtual_account_id": "va_01h5x...",
"destination_payment_rail": "base",
"destination_currency": "usdc",
"destination_address": "0xAbC...123",
"source_deposit_instructions": {},
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Create or get a deposit account (idempotent)
Idempotent on (integrator_id, wallet_id, source_currency, destination_currency). Returns the existing deposit account if one matches, otherwise provisions a Bridge Virtual Account whose destination = the requested wallet and persists the result. Per ONR-04 + Phase 11 polish (multi-stablecoin).
curl -X POST https://api.relayer.fi/v1/payout/onramp/deposit-accounts \
-H "Authorization: ApiKey $RELAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"currency": "mxn",
"country": "MX",
"stablecoin": "usdc",
"chain": "base",
"destinationAddress": "0xYourWallet..."
}'const response = await fetch("https://api.relayer.fi/v1/payout/onramp/deposit-accounts", {
method: "POST",
headers: {
Authorization: `ApiKey ${process.env.RELAYER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
currency: "mxn",
country: "MX",
stablecoin: "usdc",
chain: "base",
destinationAddress: yourWalletAddress,
}),
});
const { data } = await response.json();
// data.clabe — the fiat deposit account. Idempotent.
// data.id — pass to GET /payout/onramp/deposit-accounts/{id}/events for tracking.import requests
url = "https://testnet.relayer.fi/v1/payout/onramp/deposit-accounts"
payload = {
"wallet_id": "wallet-abc123def456",
"source_currency": "usd",
"destination_currency": "usdc",
"chain": "avalanche_c_chain"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
wallet_id: 'wallet-abc123def456',
source_currency: 'usd',
destination_currency: 'usdc',
chain: 'avalanche_c_chain'
})
};
fetch('https://testnet.relayer.fi/v1/payout/onramp/deposit-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://testnet.relayer.fi/v1/payout/onramp/deposit-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([
'wallet_id' => 'wallet-abc123def456',
'source_currency' => 'usd',
'destination_currency' => 'usdc',
'chain' => 'avalanche_c_chain'
]),
CURLOPT_HTTPHEADER => [
"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://testnet.relayer.fi/v1/payout/onramp/deposit-accounts"
payload := strings.NewReader("{\n \"wallet_id\": \"wallet-abc123def456\",\n \"source_currency\": \"usd\",\n \"destination_currency\": \"usdc\",\n \"chain\": \"avalanche_c_chain\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://testnet.relayer.fi/v1/payout/onramp/deposit-accounts")
.header("Content-Type", "application/json")
.body("{\n \"wallet_id\": \"wallet-abc123def456\",\n \"source_currency\": \"usd\",\n \"destination_currency\": \"usdc\",\n \"chain\": \"avalanche_c_chain\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://testnet.relayer.fi/v1/payout/onramp/deposit-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet_id\": \"wallet-abc123def456\",\n \"source_currency\": \"usd\",\n \"destination_currency\": \"usdc\",\n \"chain\": \"avalanche_c_chain\"\n}"
response = http.request(request)
puts response.read_body{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"reference": "ONR-20260505-0001",
"integrator_id": "7f1c5fc8-2a45-4cb0-9d3a-9b9c5b9a9b9c",
"wallet_id": "6f1c5fc8-2a45-4cb0-9d3a-9b9c5b9a9b9c",
"source_currency": "usd",
"bridge_virtual_account_id": "va_01h5x...",
"destination_payment_rail": "base",
"destination_currency": "usdc",
"destination_address": "0xAbC...123",
"source_deposit_instructions": {},
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Body
Wallet identifier. Accepts either the local UUID v4 (signing.wallets.id) OR the Turnkey wallet id (e.g. "wallet-abc123def456"). The on-ramp service resolves both forms via the wallet repository.
"wallet-abc123def456"
Source fiat currency the depositor will send
usd, eur, mxn, brl, gbp "usd"
Destination stablecoin to receive in the wallet. Defaults to "usdc" if omitted (Phase 10 contract). Allowed: usdc, usdt — the rest of the Bridge stablecoin set is deferred until liquidity / icon coverage justifies it.
usdc, usdt "usdc"
Target chain for on-ramp destination. When supplied, the deposit account is scoped to this network. Omit to use the wallet's default (back-compat with pre-Phase-39 callers).
base, polygon, avalanche_c_chain, optimism, arbitrum, ethereum, solana "avalanche_c_chain"
Response
Deposit account created (or already existed for this integrator/wallet/currency)
Deposit account UUID (payout.deposit_accounts.id)
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Friendly URL-safe reference (ONR-YYYYMMDD-XXXX). Backs /orders/ lookups via OrdersService.parseOrderId. Populated since migration 0053.
"ONR-20260505-0001"
Owning integrator UUID (always equals the authenticated caller)
"7f1c5fc8-2a45-4cb0-9d3a-9b9c5b9a9b9c"
Destination wallet UUID (signing.wallets.id)
"6f1c5fc8-2a45-4cb0-9d3a-9b9c5b9a9b9c"
Source fiat currency the depositor will send
usd, eur, mxn, brl, gbp "usd"
Bridge Virtual Account id — used by webhooks to route lifecycle events
"va_01h5x..."
Crypto rail the funds settle on (e.g. base, solana)
"base"
Crypto destination currency (e.g. usdc)
"usdc"
On-chain destination address (the wallet account address)
"0xAbC...123"
Bank rails / routing / clabe / iban — varies per source_currency. Raw Bridge source_deposit_instructions payload. May be null if Bridge has not yet returned instructions.
Lifecycle status. active = ready to receive deposits.
active, deactivated "active"