Build payouts, ramps and wallets on Onboard
Add stablecoin ramps, payouts, dollar wallets and collections to your product with the Onboard Business API. See what each flow does, then try it in the demo.
What you can build
Six flows on the Onboard Business API. Try one in the demo, then read its guide. Building with an AI coding tool? Point it at docs.onboard.xyz/llms.txt.
Offramp
Crypto in, local currency out: users send USDT or USDC and get paid straight to their bank or mobile money, without leaving your app.
Steps and API calls
Your user: Adds the bank account they want paid to
- POST
/ledger/ fiat-beneficiaries - POST
/ledger/ offramp-accounts
- POST
Your app: Sends their USDT to that account's address
- GET
/ledger/ offramp-accounts/ {id}/ funding-address - Your appYour app sends 100 USDT to the address
- GET
Onboard: Converts it and pays them in local currency
- Webhook
transaction_activity. offramp_ deposit. completed
- Webhook
Guides (Stablecoin offramp): Offramp accounts, Stablecoin offramp
Sample requests and responses
POST /ledger/fiat-beneficiaries- Request
{ "accountNumber": "0123456789", "accountName": "Ada Obi", "currency": "NGN", "accountHolderType": "INDIVIDUAL", "beneficiaryType": "CreateLocalBankAccountBeneficiary", "paymentChannelId": "BANK_TRANSFER_NIGERIA", "bankCode": "058" } - Response
{ "id": "5a83377d-7c57-4725-992f-9c50349af917", "accountNumber": "0123456789", "accountName": "Ada Obi", "currency": "NGN", "beneficiaryType": "BeneficiaryLocalBankAccount", "bankCode": "058" } POST /ledger/offramp-accounts- Request
{ "beneficiaryId": "5a83377d-7c57-4725-992f-9c50349af917", "payoutCurrency": "NGN" } - Response
{ "id": "60037f44-9094-4bd5-a316-21995e8985c9", "beneficiary": { "id": "5a83377d-7c57-4725-992f-9c50349af917", "accountName": "Ada Obi" }, "payoutCurrency": "NGN", "status": "ACTIVE" } GET /ledger/offramp-accounts/{id}/funding-address- Response
{ "address": "0x7BCc5bCBa19DE3C903F062D8fB5fF8d9f818173E", "network": { "id": "ETH", "name": "Ethereum" }, "supportedTokens": [{ "symbol": "USDT" }] } Webhook transaction_activity.offramp_deposit.completed- Webhook body
{ "event": "transaction_activity.offramp_deposit.completed", "data": { "type": "OFFRAMP_DEPOSIT", "direction": "CREDIT", "amount": 100.00, "currency": "USD", "status": "SUCCESS", "accountType": "OFFRAMP_ACCOUNT", "activityData": { "reference": "0173270620673048624933", "payoutCurrency": "NGN", "rate": 1450.00, "payoutAmount": 145000.00, "recipient": { "accountName": "Ada Obi", "bankName": "GTBank", "paymentChannelId": "BANK_TRANSFER_NIGERIA" }, "offrampAccountId": "60037f44-9094-4bd5-a316-21995e8985c9" } }, "timestamp": 1784805877 }
Prompt for Claude or Cursor
Read https://docs.onboard.xyz/llms.txt first. I run a business. Build a small working app that lets me let users cash out crypto to their bank, using the Onboard Business API in sandbox (base URL https://external.dev.onboardpay.co). Start from these guides: - https://docs.onboard.xyz/guides/product-features/offramp-accounts/process - https://docs.onboard.xyz/guides/use-cases/stablecoin-offramp The flow: 1. Your user: Adds the bank account they want paid to - POST /ledger/fiat-beneficiaries - POST /ledger/offramp-accounts 2. Your app: Sends their USDT to that account's address - GET /ledger/offramp-accounts/{id}/funding-address - Your app Your app sends 100 USDT to the address 3. Onboard: Converts it and pays them in local currency - Webhook transaction_activity.offramp_deposit.completed Sign every request with HMAC as described in https://docs.onboard.xyz/api-reference/authentication, verify webhook signatures, and show pending and failed states. Keep my API key and secret on the server. Keys that send payouts or crypto transfers must be restricted to my server's IP addresses.Onramp
Local currency in, crypto out: users pay in naira by bank transfer and the USDT or USDC lands in their wallet.
Steps and API calls
Your user: Chooses how much to buy
- GET
/ledger/ cash-deposits/ rates - POST
/ledger/ cash-deposits/ quotes
- GET
Your user: Pays by bank transfer
- POST
/ledger/ cash-deposits - Webhook
transaction_activity. cash_ deposit. completed
- POST
Your app: Sends the stablecoin to their wallet
- POST
/ledger/ crypto-transfer - Webhook
transaction_activity. crypto_ withdrawal. completed
- POST
Guides (Stablecoin onramp): Stablecoin onramp, Cash deposit flow
Sample requests and responses
GET /ledger/cash-deposits/rates- Response
{ "accountCurrency": "USD", "cashCurrency": "NGN", "rate": 1450.75 } POST /ledger/cash-deposits/quotes- Request
{ "payinCurrency": "NGN", "accountCurrency": "USD", "amount": 100 } - Response
{ "id": "7b1d4e92-3c5a-4f60-8d21-9a6e0c3b5f17", "payinCurrency": "NGN", "accountCurrency": "USD", "rate": 1450.75, "expiresAt": "2026-07-22T13:59:12.140Z" } POST /ledger/cash-deposits- Request
{ "quoteId": "7b1d4e92-3c5a-4f60-8d21-9a6e0c3b5f17", "accountId": "d9e9f9c1-6a3b-4b2e-8b3a-2f1e4d5c6b7a", "amount": 100, "reference": "DEP-2026-0001" } - Response
{ "id": "1b3e6c2a-9f41-4b8e-8a2d-5c7f9e1a3b04", "reference": "DEP-2026-0001", "status": "PENDING", "payinCurrency": "NGN", "payinAmount": 145075, "paymentDetails": { "payinCurrency": "NGN", "details": { "accountName": "John Doe", "accountNumber": "230101010" } } } Webhook transaction_activity.cash_deposit.completed- Webhook body
{ "event": "transaction_activity.cash_deposit.completed", "data": { "type": "CASH_DEPOSIT", "direction": "CREDIT", "amount": 100.00, "currency": "USD", "status": "SUCCESS", "reference": "DEP-2026-0001", "activityData": { "payinCurrency": "NGN", "rate": 1450.75, "payinAmount": 145075.00 } }, "timestamp": 1784728752 } POST /ledger/crypto-transfer- Request
{ "sourceAccountId": "d9e9f9c1-6a3b-4b2e-8b3a-2f1e4d5c6b7a", "amount": 1500, "destination": { "tokenNetworkCode": "USDT_ETH", "address": "0x7BCc5bCBa19DE3C903F062D8fB5fF8d9f818173E" } } - Response
{ "id": "P12005E1DV", "status": "PENDING", "awaiting2fA": false } Webhook transaction_activity.crypto_withdrawal.completed- Webhook body
{ "event": "transaction_activity.crypto_withdrawal.completed", "data": { "type": "CRYPTO_WITHDRAWAL", "direction": "DEBIT", "amount": 1500.00, "currency": "USD", "status": "SUCCESS", "activityData": { "reference": "REF9F41B3E6C2A", "type": "WITHDRAWAL", "amount": -1500.00 } }, "timestamp": 1784887205 }
Prompt for Claude or Cursor
Read https://docs.onboard.xyz/llms.txt first. I run a business. Build a small working app that lets me let users buy crypto with naira, using the Onboard Business API in sandbox (base URL https://external.dev.onboardpay.co). Start from these guides: - https://docs.onboard.xyz/guides/use-cases/stablecoin-onramp - https://docs.onboard.xyz/guides/product-features/cash-deposits/flow The flow: 1. Your user: Chooses how much to buy - GET /ledger/cash-deposits/rates - POST /ledger/cash-deposits/quotes 2. Your user: Pays by bank transfer - POST /ledger/cash-deposits - Webhook transaction_activity.cash_deposit.completed 3. Your app: Sends the stablecoin to their wallet - POST /ledger/crypto-transfer - Webhook transaction_activity.crypto_withdrawal.completed Sign every request with HMAC as described in https://docs.onboard.xyz/api-reference/authentication, verify webhook signatures, and show pending and failed states. Keep my API key and secret on the server. Keys that send payouts or crypto transfers must be restricted to my server's IP addresses.
Cross-border payouts
Pay recipients in their local currency, to a bank or mobile money wallet, from one USD balance.
Steps and API calls
Your app: Saves the recipient
- POST
/ledger/ fiat-beneficiaries
- POST
Your app: Gets a quote
- POST
/ledger/ cash-payments/ quotes
- POST
Recipient: Gets paid locally
- POST
/ledger/ cash-payments - Webhook
transaction_activity. cash_ payment. completed
- POST
Guides (Cross-border payment): Cross-border payment, Cash payout flow
Sample requests and responses
POST /ledger/fiat-beneficiaries- Request
{ "accountNumber": "233241234567", "accountName": "Kwame Mensah", "currency": "GHS", "accountHolderType": "INDIVIDUAL", "beneficiaryType": "CreateMobileWalletAccountBeneficiary", "paymentChannelId": "MTN_MOBILE_MONEY_GH", "mobileNetwork": "MTN" } - Response
{ "id": "8e2b4c61-0f3a-4d7e-9b15-2a6c8d4e0f93", "accountNumber": "233241234567", "accountName": "Kwame Mensah", "currency": "GHS", "beneficiaryType": "BeneficiaryMobileWalletAccount", "mobileNetwork": "MTN" } POST /ledger/cash-payments/quotes- Request
{ "payoutCurrency": "GHS", "accountCurrency": "USD", "amount": 200 } - Response
{ "id": "c4a8e1d7-2b93-4a56-9f08-6d1e3b7a9c25", "payoutCurrency": "GHS", "accountCurrency": "USD", "rate": 12.00, "expiresAt": "2026-07-23T11:27:00.000Z" } POST /ledger/cash-payments- Request
{ "quoteId": "c4a8e1d7-2b93-4a56-9f08-6d1e3b7a9c25", "accountId": "d9e9f9c1-6a3b-4b2e-8b3a-2f1e4d5c6b7a", "amount": 200, "beneficiaryId": "8e2b4c61-0f3a-4d7e-9b15-2a6c8d4e0f93", "reference": "PAY-2026-0001", "paymentReason": "Supplier payment" } - Response
{ "id": "P12005E1DV", "status": "PENDING", "awaiting2fA": false } Webhook transaction_activity.cash_payment.completed- Webhook body
{ "event": "transaction_activity.cash_payment.completed", "data": { "type": "CASH_PAYMENT", "direction": "DEBIT", "amount": 200.00, "currency": "USD", "status": "SUCCESS", "reference": "PAY-2026-0001", "activityData": { "payoutCurrency": "GHS", "rate": 12.00, "payoutAmount": 2400.00, "recipient": { "accountName": "Kwame Mensah", "beneficiaryType": "BeneficiaryMobileWalletAccount", "accountIdentifier": "233241234567", "paymentChannelId": "MTN_MOBILE_MONEY_GH" } } }, "timestamp": 1784805877 }
Prompt for Claude or Cursor
Read https://docs.onboard.xyz/llms.txt first. I run a business. Build a small working app that lets me pay people in other countries, using the Onboard Business API in sandbox (base URL https://external.dev.onboardpay.co). Start from these guides: - https://docs.onboard.xyz/guides/use-cases/cross-border-payment - https://docs.onboard.xyz/guides/product-features/cash-payouts/flow The flow: 1. Your app: Saves the recipient - POST /ledger/fiat-beneficiaries 2. Your app: Gets a quote - POST /ledger/cash-payments/quotes 3. Recipient: Gets paid locally - POST /ledger/cash-payments - Webhook transaction_activity.cash_payment.completed Sign every request with HMAC as described in https://docs.onboard.xyz/api-reference/authentication, verify webhook signatures, and show pending and failed states. Keep my API key and secret on the server. Keys that send payouts or crypto transfers must be restricted to my server's IP addresses.
Dollar wallets
Give each user a USD balance in your app.
Users fund it with USDT or USDC, or with naira by bank transfer, converted to USD at the live rate.
Steps and API calls
Your app: Creates a wallet for each user
- POST
/ledger/ subaccounts
- POST
Your user: Funds it with USDC
- POST
/ledger/ subaccounts/ {subAccountIdRef}/ funding-address?tokenNetworkCode=USDC_ BASE - Webhook
transaction_activity. crypto_ deposit. completed
- POST
Your user: Holds, sends or cashes out
- POST
/send, from the sub-accountledger/ crypto-transfer - Webhook
transaction_activity. crypto_ withdrawal. completed - POST
/cash out, from the sub-accountledger/ cash-payments - Webhook
transaction_activity. cash_ payment. completed
- POST
Guides (Stablecoin account): Stablecoin account, Sub-accounts
Sample requests and responses
POST /ledger/subaccounts- Request
{ "accountId": "d9e9f9c1-6a3b-4b2e-8b3a-2f1e4d5c6b7a", "reference": "customer-8841", "displayName": "Customer 8841" } - Response
{ "id": "6f9d3a2e-1b5c-4e88-9a2f-3c7d5e9b1a04", "accountId": "d9e9f9c1-6a3b-4b2e-8b3a-2f1e4d5c6b7a", "reference": "customer-8841", "currency": "USD", "accountBalance": { "balance": 0, "availableBalance": 0 }, "frozen": false } POST /ledger/subaccounts/{subAccountIdRef}/funding-address?tokenNetworkCode=USDC_BASE- Response
{ "address": "0x7BCc5bCBa19DE3C903F062D8fB5fF8d9f818173E", "tokenInfo": { "code": "USDC_BASE", "decimals": 6 } } Webhook transaction_activity.crypto_deposit.completed- Webhook body
{ "event": "transaction_activity.crypto_deposit.completed", "data": { "type": "CRYPTO_DEPOSIT", "direction": "CREDIT", "amount": 250.00, "currency": "USD", "status": "SUCCESS", "activityData": { "reference": "REF9F41B3E6C2A", "type": "DEPOSIT", "amount": 250.00 } }, "timestamp": 1784887205 } POST /ledger/crypto-transfer- Request
{ "sourceAccountId": "6f9d3a2e-1b5c-4e88-9a2f-3c7d5e9b1a04", "amount": 50, "destination": { "tokenNetworkCode": "USDC_BASE", "address": "0x7BCc5bCBa19DE3C903F062D8fB5fF8d9f818173E" } } - Response
{ "id": "P12005E1DV", "status": "PENDING", "awaiting2fA": false } Webhook transaction_activity.crypto_withdrawal.completed- Webhook body
{ "event": "transaction_activity.crypto_withdrawal.completed", "data": { "type": "CRYPTO_WITHDRAWAL", "direction": "DEBIT", "amount": 1500.00, "currency": "USD", "status": "SUCCESS", "activityData": { "reference": "REF9F41B3E6C2A", "type": "WITHDRAWAL", "amount": -1500.00 } }, "timestamp": 1784887205 } POST /ledger/cash-payments- Request
{ "quoteId": "c4a8e1d7-2b93-4a56-9f08-6d1e3b7a9c25", "accountId": "d9e9f9c1-6a3b-4b2e-8b3a-2f1e4d5c6b7a", "amount": 100, "beneficiaryId": "5a83377d-7c57-4725-992f-9c50349af917", "reference": "PAY-2026-0001", "paymentReason": "Supplier payment" } - Response
{ "id": "P12005E1DV", "status": "PENDING", "awaiting2fA": false } Webhook transaction_activity.cash_payment.completed- Webhook body
{ "event": "transaction_activity.cash_payment.completed", "data": { "type": "CASH_PAYMENT", "direction": "DEBIT", "amount": 100.00, "currency": "USD", "status": "SUCCESS", "reference": "PAY-2026-0001", "activityData": { "payoutCurrency": "GHS", "rate": 15.20, "payoutAmount": 1520.00, "recipient": { "accountName": "Kwame Mensah", "beneficiaryType": "BeneficiaryLocalBankAccount", "bankName": "GCB Bank", "paymentChannelId": "BANK_TRANSFER_GHANA" } } }, "timestamp": 1784805877 }
Prompt for Claude or Cursor
Read https://docs.onboard.xyz/llms.txt first. I run a business. Build a small working app that lets me give each user a dollar wallet, using the Onboard Business API in sandbox (base URL https://external.dev.onboardpay.co). Start from these guides: - https://docs.onboard.xyz/guides/use-cases/stablecoin-account - https://docs.onboard.xyz/guides/product-features/virtual-account/sub-accounts The flow: 1. Your app: Creates a wallet for each user - POST /ledger/subaccounts 2. Your user: Funds it with USDC - POST /ledger/subaccounts/{subAccountIdRef}/funding-address?tokenNetworkCode=USDC_BASE - Webhook transaction_activity.crypto_deposit.completed 3. Your user: Holds, sends or cashes out - POST /ledger/crypto-transfer (send, from the sub-account) - Webhook transaction_activity.crypto_withdrawal.completed - POST /ledger/cash-payments (cash out, from the sub-account) - Webhook transaction_activity.cash_payment.completed Sign every request with HMAC as described in https://docs.onboard.xyz/api-reference/authentication, verify webhook signatures, and show pending and failed states. Keep my API key and secret on the server. Keys that send payouts or crypto transfers must be restricted to my server's IP addresses.Collect local currency
Collect naira by bank transfer and receive it in your Onboard USD balance.
Steps and API calls
Your app: Shows each customer a bank account
- POST
/ledger/ subaccounts/ {subAccountIdRef}/ account-details?currency=NGN
- POST
Your customer: Pays by transfer
- Webhook
transaction_activity. account_ number_ deposit. completed
- Webhook
Onboard: Converts it to USD in that customer's balance
- GET
/balanceledger/ subaccounts/ {subAccountIdRef}
- GET
Guides (Collections from local currency): Account numbers, Collections
Sample requests and responses
POST /ledger/subaccounts/{subAccountIdRef}/account-details?currency=NGN- Request
{ "accountName": "ACME Collections" } - Response
{ "payinCurrency": "NGN", "details": { "accountInfoType": "CashLocalBankAccount", "accountName": "ACME Collections", "accountNumber": "0123456789" } } Webhook transaction_activity.account_number_deposit.completed- Webhook body
{ "event": "transaction_activity.account_number_deposit.completed", "data": { "type": "ACCOUNT_NUMBER_DEPOSIT", "direction": "CREDIT", "amount": 100.00, "currency": "USD", "status": "SUCCESS", "activityData": { "amount": 145000.00, "currency": "NGN", "accountCurrency": "USD", "settlementAmount": 100.00 } }, "timestamp": 1784535405 } GET /ledger/subaccounts/{subAccountIdRef}- Response
{ "id": "6f9d3a2e-1b5c-4e88-9a2f-3c7d5e9b1a04", "accountId": "d9e9f9c1-6a3b-4b2e-8b3a-2f1e4d5c6b7a", "reference": "customer-8841", "currency": "USD", "accountBalance": { "balance": 100, "availableBalance": 100 }, "frozen": false }
Prompt for Claude or Cursor
Read https://docs.onboard.xyz/llms.txt first. I run a business. Build a small working app that lets me collect local currency from customers, using the Onboard Business API in sandbox (base URL https://external.dev.onboardpay.co). Start from these guides: - https://docs.onboard.xyz/guides/product-features/virtual-account/account-number - https://docs.onboard.xyz/guides/use-cases/collections-local-currency The flow: 1. Your app: Shows each customer a bank account - POST /ledger/subaccounts/{subAccountIdRef}/account-details?currency=NGN 2. Your customer: Pays by transfer - Webhook transaction_activity.account_number_deposit.completed 3. Onboard: Converts it to USD in that customer's balance - GET /ledger/subaccounts/{subAccountIdRef} (balance) Sign every request with HMAC as described in https://docs.onboard.xyz/api-reference/authentication, verify webhook signatures, and show pending and failed states. Keep my API key and secret on the server. Keys that send payouts or crypto transfers must be restricted to my server's IP addresses.Stablecoin payouts
Pay suppliers, staff or users in USDT or USDC on the network they use.
Steps and API calls
Your app: Saves the recipient wallet
- POST
/ledger/ crypto-beneficiaries
- POST
Onboard: Sends the transfer
- POST
/ledger/ crypto-transfer
- POST
Your app: Confirms it landed
- Webhook
transaction_activity. crypto_ withdrawal. completed - GET
/ledger/ crypto-transfer/ {transferReference}
- Webhook
Guides (Crypto payouts): Crypto payouts, Withdrawals
Sample requests and responses
POST /ledger/crypto-beneficiaries- Request
{ "address": "0x7BCc5bCBa19DE3C903F062D8fB5fF8d9f818173E", "network": "BASE", "name": "Lagos supplier" } - Response
{ "success": true } POST /ledger/crypto-transfer- Request
{ "sourceAccountId": "d9e9f9c1-6a3b-4b2e-8b3a-2f1e4d5c6b7a", "amount": 1500, "destination": { "tokenNetworkCode": "USDC_BASE", "address": "0x7BCc5bCBa19DE3C903F062D8fB5fF8d9f818173E" } } - Response
{ "id": "P12005E1DV", "status": "PENDING", "awaiting2fA": false } Webhook transaction_activity.crypto_withdrawal.completed- Webhook body
{ "event": "transaction_activity.crypto_withdrawal.completed", "data": { "type": "CRYPTO_WITHDRAWAL", "direction": "DEBIT", "amount": 1500.00, "currency": "USD", "status": "SUCCESS", "activityData": { "reference": "REF9F41B3E6C2A", "type": "WITHDRAWAL", "amount": -1500.00 } }, "timestamp": 1784887205 } GET /ledger/crypto-transfer/{transferReference}- Response
{ "id": "txn_9f41b3e6c2a", "reference": "REF9F41B3E6C2A", "type": "WITHDRAWAL", "amount": -1500, "currency": "USD", "status": "SUCCESS", "blockchainInfo": { "tokenSymbol": "USDC", "value": 1500 } }
Prompt for Claude or Cursor
Read https://docs.onboard.xyz/llms.txt first. I run a business. Build a small working app that lets me send stablecoin payouts, using the Onboard Business API in sandbox (base URL https://external.dev.onboardpay.co). Start from these guides: - https://docs.onboard.xyz/guides/use-cases/crypto-payouts - https://docs.onboard.xyz/guides/product-features/stablecoin/withdrawals The flow: 1. Your app: Saves the recipient wallet - POST /ledger/crypto-beneficiaries 2. Onboard: Sends the transfer - POST /ledger/crypto-transfer 3. Your app: Confirms it landed - Webhook transaction_activity.crypto_withdrawal.completed - GET /ledger/crypto-transfer/{transferReference} Sign every request with HMAC as described in https://docs.onboard.xyz/api-reference/authentication, verify webhook signatures, and show pending and failed states. Keep my API key and secret on the server. Keys that send payouts or crypto transfers must be restricted to my server's IP addresses.
Try the demo
Pick a flow, tap through the sample app and watch the Business API calls it makes.
Steps
Cash out
Where should we pay you?
API log
0 callsTap through the app and each API call will appear here.