How To: Implement Merchant Payouts (From Coinflow Wallet)
Developers can use this documentation to implement merchant payouts (from Coinflowβs in-app wallet) to an end-userβs bank account / debit card.
π¦ Merchant (Coinflow In-App Wallet) Payout Guide
If youβre a merchant leveraging Coinflowβs in-app wallet as the source of funds for your payout, follow the steps below to send payouts (in fiat) to your usersβ bank accounts.
β οΈ This flow of funds is very similar to the Merchant (BYO) Wallet Payout flow with the exception of the endpoint you use to initiate the payout (Step 4). Pleaseensure the source of funds for your payout prior to implementing the below.
π Coinflow doesnβt provide a UI for Merchant Payouts. Please implement with our API.
Flow of Funds
Implementation
Setup
You MUST complete the account setup section before you start integrating!
Quick Links:
Authorization Headers:
Authorization- Your API Key from the merchant dashboardx-coinflow-auth-user-id- A unique customer ID you use within your systems to identify the user withdrawing fundsx-coinflow-auth-blockchain- Should always besolana
API Implementation
1. KYC / KYB for Withdrawers
To complete a payout/withdraw, every Withdrawer must complete verification before they can proceed with a payout through Coinflow. Withdrawers only need to KYC the first time they withdraw and do not need to KYC again for any subsequent withdrawals.
π§ Rate limit for failed KYC attempts is 3 per minute!
Before you start, determine how you will KYC your users:
π 1. I want to use Coinflow for KYC
Merchants who want to use Coinflow for KYC should call Register User.
πΊπΈ U.S. Withdrawers
π Non-U.S. Withdrawers
πΌ 2. I am using my own KYC provider and I want to pass KYC data to Coinflow
Merchants who want to pass KYC data from their existing KYC provider can call our Register User via Document endpoint.
πΌ 4. I have my own KYC provider and will complete KYC reliance process with Coinflow
Merchants must receive approval from the Coinflow Compliance team regarding approval of your kyc reliance program. Once youβve receive approval, follow these implementation steps.
2. Get Withdrawer Details
After calling our withdraw endpoints, you must call Get Withdrawer to get the latest verification status. This endpoint will tell you the userβs verification status. The get withdrawer endpoint can also be queried at any time to get more information about a withdrawer who has already completed KYC/KYB.
3. Add A Payout Destination
Withdrawers must link a payout destination so we know where to send the funds.
π Want to use Coinflowβs UI for KYC and Bank Authentication?
Merchants can choose to use our UI for KYC and bank authentication, saving time by avoiding the need to build these flows and add payout destinations. Youβll only need to create the UI for displaying quotes and initiating payouts.
If you choose to use our UI, you do not need to separately implement
Step 3: Add A Payout Destinationas the bank auth UI also handles linking payout destinations.
πΊπΈ 1. Withdrawers in the U.S.
πΊπΈ Withdrawers in the U.S.
If withdrawers are in the U.S. and want to receive USD, they can link their debit card or bank account.
Add a debit card as a payout destination:
πͺπΊπ¬π§ 2.Withdrawers in the EU/UK
If withdrawers reside in the EU or UK, they can link their IBAN to receive EUR or GBP.
π§π· 3. Withdrawers in Brazil
If withdrawers reside in Brazil, they can link their PIX account to receive BRL.
4. Get a Quote for the Withdraw
Merchants may show an estimated quote of how much the user will receive after fees.
- On sandbox, pass the following for token:
4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
- On production, pass the following for token:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
5. Initiate the Payout
This endpoint enables a user to submit a payout. Upon sending the request, funds from your Coinflow in-app balance will decrement, and the end-user will receive their funds in their selected payout destination.
- Note: To get the tokenized bank account or debit card, call get withdrawer and reference the
tokenparam. For example, for bank account:bankAccounts[0]['token'] - Pass any of the following as the
speeddepending on the payout method the withdrawer selects:
speed = cardfor instant debit card payouts
speed = asapfor instant, RTP payout
speed = same_dayfor same day ACH payout
speed = standardfor standard ACH payout
speed = ibanfor SEPA payout
speed = pixfor PIX payout\
RequestResponse
6. Get In-App Wallet Balance
Optional: Call Get Balance to get the fund balance of your in-app wallet.
7. See Withdrawals
Go to Merchant Dashboard > Withdrawals > See Withdraw status.
FAQs
What is a 451 response on the verification?
A 451 response indicates that we need additional information to verify the withdrawer.
When you receive a 451 response, you must redirect the withdrawer to the verificationLink provided in the response body (i.e., response.verificationLink). This link takes them to our providerβs verification page, where they typically need to upload a photo ID and take a selfie.
Once the withdrawer completes the verification, send a subsequent request to the get withdrawer endpoint to confirm the verification.status == approved.
What is bank authentication and why do I need to implement this?
Bank authentication verifies that a user owns the bank account theyβre connecting. Itβs essential for preventing fraud, ensuring regulatory compliance, reducing payment failures, and protecting against chargebacks. Per our AML policies, we require it before allowing withdrawals.
How do I get the cardToken, and why is card tokenization required?
You can obtain the cardToken by using our secure frontend components, which capture and tokenize card details. This token replaces sensitive card information and is then passed to your backend for further processing.
Tokenizing the card is essential for PCI compliance. It ensures that raw card data never touches your servers, helping keep your system out of PCI scope. As a PCI-compliant provider, we handle the sensitive data securely, significantly reducing your compliance burden.
If you do not have an AOC for PCI DSS, follow our Tokenize Debit Cards for Withdraws guide. If you do have an AOC, you may instead follow our Tokenize Card Data via API for Debit Card Payouts recipe.
How do I know if I have a valid AOC for PCI DSS?
Merchants with PCI DSS certification should be able to provide a valid Attestation of Compliance (AOC) as proof. Here is an example of an acceptable AOC for merchants.
If youβre a service provider implementing on behalf of a merchant, you must provide a valid AOC specific to service providers. This is an example of an acceptable AOC for service providers. Additionally, your AOC must be reviewed and approved by a Qualified Security Assessor (QSA).
How do I fund the Coinflow wallet balance on production?
Merchants who are ready to go live have the option to:
- Send USDC on Solana directly. (Ask Coinflow for your production wallet address).
- Wire funds. (Ask Coinflow for wiring instructions).
Is there a Pre-Built UI for my merchant payout flow?
At this time, Coinflow does not provide a UI for the merchant payout flow. Merchants have the option of using our UI for bank authentication only.

