Your finance team wants to start settling cross-border payouts in USDC instead of waiting three days for a SWIFT transfer to clear. You're the developer scoping the integration. You search for "stablecoin payment integration" and every tutorial starts with "install ethers.js and connect to an Ethereum node."
The thing is, you don't need any of that. If you've used Flutterwave's transfer API to send NGN to a bank account, most of the pattern will feel familiar. It's the same endpoint (POST /v3/transfers), the same async pattern (initiate, wait for webhook, verify), and the same status values. The parameters change. The concepts don't.
But stablecoin transfers have real differences from fiat transfers, and getting them wrong can mean permanently lost funds. There's no chargeback mechanism on the blockchain, no dispute window, no reversal.
This guide walks you through the full stablecoin payment flow on Flutterwave, from funding your wallet to verifying a completed transfer on PolygonScan.
How Stablecoin Transfers Differ From Fiat
If you've built fiat payouts on Flutterwave, the stablecoin payment flow will feel familiar. Same POST /v3/transfers endpoint, same webhook-then-verify pattern, but a few differences will change how you architect your integration.
What stays the same:
- You call
POST /v3/transferswith your secret key. - The response returns the transaction status stating if the transfer is queued or completed.
- You wait for a
transfer.completedwebhook withdata.statusofSUCCESSFULorFAILED. - You verify the transfer by calling
GET /v3/transfers/{id}.
What changes:
-
Irreversibility: This is the biggest shift. Fiat transfers can sometimes be reversed or recalled. Stablecoin transfers on the blockchain are final once confirmed.
In practice, your integration needs stronger pre-transfer validation than a fiat flow. Validate wallet addresses before calling the API. Copy and paste addresses rather than typing them. Add a confirmation step in your flow before triggering the transfer.
-
Network restriction: With fiat, you pick a bank code. With stablecoins, you pick a blockchain network. Flutterwave routes all stablecoin transfers through Polygon, with support for USDC and USDT.
Polygon is a good default for payments. Transaction fees typically stay under $0.01 USD, and deterministic finality happens in about five seconds. For comparison, Ethereum finality takes 12–15 minutes.
Fee structure: Fiat transfer fees are typically added on top of the transfer amount. The stablecoin transfer flow works differently as fees are deducted from the amount you send. If you transfer 50 USDT and the fee is 1.5 USDT, the recipient gets 48.5 USDT. This catches developers off guard if they don't query fees beforehand. We'll cover the fee endpoint in detail later.
Funding source: You can only fund stablecoin transfers from your NGN or USD balance. Attempting to convert from any other fiat balance will fail. You can either pre-fund your USDC/USDT wallet, or convert on the fly by setting
debit_currencyto"NGN"or"USD"in the transfer request.Wallets replace bank accounts: Instead of
account_bank: "044"(Access Bank) andaccount_number: "0690000040", you passaccount_bank: "POLYGON"andaccount_number: "0xd0c7...". Flutterwave provides embedded stablecoin wallets powered by Turnkey where merchants can hold and transact in USDC and USDT directly, with Turnkey handling wallet infrastructure and key management.
Prerequisites
Here's what you need to follow along:
-
API keys from your Flutterwave dashboard. Stablecoin transfers use the v3 API:
Authorization: Bearer YOUR-SECRET-KEY. - A live, approved account. Your account must be live and approved for production transactions.
- Sufficient balance in USDC, USDT, NGN, or USD.
- Whitelisted IP addresses for your server.
Note: Flutterwave has two live API surfaces: the v3 API (API key auth,
POST /v3/transfers) and the v4 Transfer Orchestrator (OAuth 2.0,POST /direct-transfers). This guide uses v3 because the stablecoin transfer endpoint is published on v3. The v4 Orchestrator currently covers bank transfers, mobile money, and wallet-to-wallet transfers. If stablecoin support gets extended to v4 later, the pattern in this guide (initiate, wait for the webhook, verify via a GET call) still applies.
Funding Your Stablecoin Balance
Before you can send USDC to an external wallet, you need USDC in your Flutterwave balance. You fund it by converting from your NGN or USD balance using the same transfer endpoint, but with account_bank set to "flutterwave" and your Merchant ID as the account_number:
curl --location 'https://api.flutterwave.com/v3/transfers' \
--header 'Authorization: Bearer YOUR-SECRET-KEY' \
--header 'Content-Type: application/json' \
--data '{
"account_bank": "flutterwave",
"account_number": "10024361",
"debit_currency": "NGN",
"amount": 1,
"currency": "USDC"
}'
The response confirms the conversion is queued:
{
"status": "success",
"message": "Transfer Queued Successfully",
"data": {
"id": 254859,
"account_number": 50537494,
"bank_code": "flutterwave",
"full_name": "Testing Settlement",
"created_at": "2026-01-23T08:03:34.000Z",
"currency": "USDC",
"debit_currency": "NGN",
"amount": 1,
"fee": 0.02,
"status": "NEW",
"reference": "e543beaedb80afc6",
"meta": {
"AccountId": 702952,
"merchant_id": "00702952"
},
"narration": "Tada Tada",
"complete_message": "",
"requires_approval": 0,
"is_approved": 1,
"bank_name": "wallet"
}
}
You can also skip this step and set debit_currency to "NGN" or "USD" directly on the external transfer. Flutterwave debits your fiat balance instead of your stablecoin balance.
Initiating a Transfer to an External Wallet
To send USDC or USDT to a Polygon wallet address, call POST /v3/transfers with account_bank set to "POLYGON" and the wallet address as account_number:
curl --location 'https://api.flutterwave.com/v3/transfers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-SECRET-KEY' \
--data '{
"account_bank": "POLYGON",
"account_number": "0xd0c7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"amount": 1,
"currency": "USDC",
"debit_currency": "USDC"
}'
The parameters:
-
account_bank: always"POLYGON"for stablecoin transfers to external wallets -
account_number: the recipient's Polygon wallet address -
currency:"USDC"or"USDT" -
debit_currency:"USDC"or"USDT"to send from your stablecoin balance, or"NGN"/"USD"to convert from fiat on the fly
The response:
{
"status": "success",
"message": "Transfer Queued Successfully",
"data": {
"id": 254858,
"account_number": "0xd0c7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"bank_code": "POLYGON",
"full_name": "POLYGON0xd0c7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"created_at": "2026-01-23T08:00:45.000Z",
"currency": "USDC",
"debit_currency": "USDC",
"amount": 1,
"fee": 0.03,
"status": "NEW",
"reference": "5e8312771aca2947",
"meta": null,
"narration": "Tada!",
"complete_message": "",
"requires_approval": 0,
"is_approved": 1,
"bank_name": "POLYGON"
}
}
Don't update your records to show this payout as complete based on this response; wait for the webhook confirmation.
Store the id, reference, status, amount, currency, and fee from this response. You'll need them to verify the transfer later.
Handling Fees
Stablecoin fees work differently from fiat fees. As covered in the differences section above, the fee is deducted from the transfer amount, not added on top. Query the fee endpoint before initiating so you know exactly what the recipient will get:
curl --location 'https://api.flutterwave.com/v3/transfers/fee?amount=50¤cy=USDT&type=crypto' \
--header 'Authorization: Bearer YOUR-SECRET-KEY'
Response:
{
"status": "success",
"message": "Transfer fee fetched",
"data": [
{
"currency": "USDT",
"fee_type": "value",
"fee": 1.5
}
]
}
For a 50 USDT transfer with a 1.5 USDT fee, the recipient gets 48.5 USDT. For cross-currency transfers (where debit_currency is fiat), the fee is percentage-based and debited from your fiat balance, not your stablecoin balance.
Verifying Transfer Status
After initiation, you need to confirm whether the transfer succeeded or failed. There are three ways to do this.
1. Webhooks
When a transfer completes or fails, Flutterwave sends a POST request to your webhook URL. The v3 transfer webhook looks like this:
{
"event": "transfer.completed",
"event.type": "Transfer",
"data": {
"id": 254858,
"account_number": "0xd0c7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"bank_code": "POLYGON",
"currency": "USDC",
"debit_currency": "USDC",
"amount": 1,
"fee": 0.03,
"status": "SUCCESSFUL",
"reference": "your-unique-ref-001",
"complete_message": "",
"requires_approval": 0,
"is_approved": 1
}
}
The event type is "transfer.completed" for both successful and failed transfers. Check data.status for the outcome: "SUCCESSFUL" or "FAILED".
Verify the webhook signature. Flutterwave sends your secret hash in the verif-hash header. Compare it against the secret hash you configured on your dashboard:
app.post('/webhooks/flutterwave', (req, res) => {
const secretHash = process.env.FLW_SECRET_HASH;
const signature = req.headers['verif-hash'];
if (!signature || signature !== secretHash) {
// Not from Flutterwave, discard
return res.status(401).end();
}
// Acknowledge immediately
res.status(200).end();
// Process async — in production, push to a job queue
handleTransferWebhook(req.body);
});
Your webhook endpoint must return a 200 status code within 60 seconds, or Flutterwave treats it as a failure. If webhook retries are enabled, Flutterwave retries up to three times with 30-minute intervals between attempts.
Always re-verify with the API before acting. Call GET /v3/transfers/{id} and confirm the status, amount, and currency match what you expect before updating your records.
async function processTransferWebhook(payload) {
const { id, reference, amount, currency } = payload.data;
// Idempotency: check if already processed
const alreadyProcessed = await checkIfProcessed(reference);
if (alreadyProcessed) {
console.log(`Transfer ${reference} already processed`);
return;
}
// Re-verify with Flutterwave
const response = await fetch(
`https://api.flutterwave.com/v3/transfers/${id}`,
{ headers: { Authorization: `Bearer ${process.env.FLW_SECRET_KEY}` } }
);
const verified = await response.json();
if (verified.data.status === 'SUCCESSFUL'
&& verified.data.amount === amount
&& verified.data.currency === currency) {
await markAsProcessed(reference);
await updateTransferStatus(reference, 'completed');
console.log(`Transfer ${id} completed: ${amount} ${currency}`);
} else if (verified.data.status === 'FAILED') {
await updateTransferStatus(reference, 'failed');
console.log(`Transfer ${id} failed: ${verified.data.complete_message}`);
}
}
2. Polling
As a fallback, you can query the transfer status directly:
curl --request GET 'https://api.flutterwave.com/v3/transfers/254858' \
--header 'Authorization: Bearer YOUR-SECRET-KEY'
Don't poll every few seconds. You can have a background job that polls for the status of any pending transactions at regular intervals (for instance, every hour). Use polling as a safety net, not your primary mechanism.
A practical approach is to run a cron job every hour that queries all transfers still marked as NEW in your database beyond a threshold (say, 15 minutes old). For each one, call GET /v3/transfers/{id} and update your local status.
3. On-Chain Confirmation
You can verify completed stablecoin transfers directly on the blockchain. Flutterwave's confirming transactions guide explains how: navigate to Payments > Transfers in your dashboard, click the transfer, and retrieve the transaction hash. Then look it up on PolygonScan to see the on-chain record. On Polygon, deterministic finality happens in about five seconds.
Handling Failures
Wrong Network or Invalid Address
If you pass a non-Polygon wallet address, the API returns:
{
"status": "error",
"message": "Unsupported or unknown network specified.",
"data": null
}
Only Polygon addresses work. Validate wallet address format on your end before calling the API.
Polygon uses standard EVM addresses: a 0x prefix followed by 40 hexadecimal characters, 42 characters total. A quick client-side check before calling the API:
function isValidPolygonAddress(address: string): boolean {
return /^0x[a-fA-F0-9]{40}$/.test(address);
}
This catches typos and truncated pastes. It does not verify that the address exists on-chain or that it's a wallet (not a contract). For production, consider using a checksum validation library like ethers.getAddress(), which will throw on invalid addresses and return the checksummed version.
The stablecoin best practices guide also recommends copying and pasting addresses rather than typing them.
Insufficient Balance
If your USDC/USDT or fiat balance doesn't have enough funds, the transfer will fail. Check your balance before initiating by calling GET /v3/balances. Configure balance threshold alerts on your Flutterwave dashboard so you get notified before your balance runs too low to process transfers.
Missed Webhooks
Your webhook endpoint might be down when a transfer completes, or the webhook could fail for other reasons. Either way, your database won't reflect the actual transfer status. Run a reconciliation job that queries GET /v3/transfers/{id} to sync the status. If webhook retries are enabled on your account, Flutterwave retries up to three times with 30-minute intervals.
Duplicate Transfers
If your system fires the same transfer twice (a retry, a race condition, a staff member clicking twice), always pass the same reference for the same transfer intent. This helps you identify duplicate requests in your logs.
Testing
In test mode, Flutterwave provides mock USDC and USDT wallets for simulating transfers. To trigger a successful test transfer, append _PMCKDU to your unique reference:
"reference": "YOURREF_PMCKDU_1"
See the testing helper guide for more test scenarios.
Scenarios to validate:
-
Successful transfer end-to-end: Initiate with
_PMCKDUreference, wait fortransfer.completedwebhook, verifydata.statusisSUCCESSFUL, and confirm your database is updated. -
Wrong network address: Pass a non-Polygon wallet address and expect 400 with
"Unsupported or unknown network specified". -
Webhook signature rejection: Send a request to your webhook endpoint with an invalid
verif-hashand confirm it returns 401 and doesn't process. - Duplicate webhook handling: Replay the same webhook event and confirm your idempotency logic prevents double processing.
-
Fee calculation: Query the fee endpoint before and after initiating and confirm the recipient amount matches
amount - fee.
Production Checklist
Before going live with your stablecoin payment flow, lock down each of these areas.
Security
Store your secret key in environment variables. Never commit it to source code or log it. Use separate test and live keys, and rotate live keys periodically.
Always check the verif-hash header in your webhook handler. Without this, anyone who discovers your endpoint URL can send fake transfer notifications and trick your system into updating records incorrectly.
For wallet addresses, always copy and paste, double-check before confirming. If you have a UI where staff trigger transfers, add a confirmation step that displays the address and asks for explicit approval. Incorrect transfers cannot be recovered.
Reliability
Generate one unique reference per transfer intent. Make all processing idempotent so a concurrent webhook and reconciliation job don't double-process the same transfer.
Run a reconciliation job (as described in the polling section) for any transfer that hasn't received a webhook beyond your expected timeframe. Alert on any mismatch.
Monitoring
Track transfer success rate, webhook delivery rate, and reconciliation discrepancies. Set alerts for transfers that haven't reached a terminal status beyond your expected window. Store transaction hashes from the dashboard for audit purposes.
Compliance
Complete KYC before enabling transfers. Screen external wallet recipients where required by your jurisdiction. Retain transfer records and webhook logs per regulatory requirements. Transaction hashes are retrievable from your Flutterwave dashboard and verifiable on PolygonScan.
What's Next
You now have a working stablecoin payment flow: fund your balance, initiate a transfer to a Polygon wallet, query fees beforehand, verify via webhooks, and handle failures when they come up.
The initiate-then-verify pattern is the same one Flutterwave uses across all transfer types. This guide focused on the stablecoin-specific details: irreversibility, fee deduction from the transfer amount, wallet address validation, and Polygon routing. Those are the parts that will trip you up if you treat stablecoin transfers exactly like fiat.
Check out Flutterwave's stablecoin documentation for the full API reference and the stablecoin best practices guide for operational guidance.
Top comments (0)