How to issue stablecoin-funded cards through an API: a developer's guide
Build vs. buy for stablecoin card issuing, the objects a card issuing API must expose, a step-by-step integration flow, and where KYC and KYB sit in it.
Reading time: about 8 minutes.
Summary: API-based stablecoin card issuing means creating cardholders, cards, and spending decisions through a card issuing provider's REST API, while funding each purchase from a stablecoin balance such as USDC. The provider handles the network connection and the sponsor bank. Your code decides who gets a card, how it is funded, and which transactions to approve.
This guide is for developers and technical founders deciding whether to build or integrate. It covers what each path requires, the objects any issuing API has to expose, and an integration flow you can follow as a checklist.
One note on scope. The endpoints and payloads below are a generic shape shared by most issuing APIs, not one provider's reference. Names change between providers. The objects and their order do not. For the concepts behind the card itself, read what stablecoin card issuing is.
Should you build card issuing in-house or use an API?
Building means becoming the issuer's technology and compliance partner yourself. Buying means integrating one that already is.
| Requirement | Build in-house | Integrate an issuing API |
|---|---|---|
| Sponsor bank | Negotiate and sign a BIN sponsorship agreement | Provided; you are approved under the provider's program |
| Card network | Meet Visa or Mastercard program and certification requirements | Provided |
| Card data security | PCI DSS compliance for storing and processing card numbers | Provider's vault; you never touch the full card number |
| Authorization engine | Build or license an issuer processor | Provided; you answer a webhook |
| Compliance program | Written AML program, KYC, monitoring, filings, under the sponsor's oversight | Shared: the provider runs most checks, you own your program's policies |
| Disputes and chargebacks | Build dispute operations | Provider workflow plus API events |
| Time to first card | Typically a year or more | Sandbox in a day; production after program approval |
Build only if card issuing is the product and you have the capital and patience for bank and network negotiations. Everyone else integrates, and spends the saved time on the ledger and UX, which is where programs actually differ.
What does a stablecoin card issuing API need to expose?
A usable issuing API has seven objects. If a provider is missing one, you will end up building it.
| Object | What it does | Fields to look for |
|---|---|---|
| Cardholder | The verified person or business the card belongs to | KYC status, country, rejection reasons |
| Funding source | The stablecoin balance that pays for purchases | Token, network, wallet address, custody model |
| Card | A virtual or physical card | Status, limits, merchant category rules, expiry |
| Authorization request | A real-time question from the network: approve this? | Amount, currency, merchant, MCC, deadline |
| Transaction | The lifecycle after approval | Clearing amount, reversals, refunds, FX rate |
| Dispute | A cardholder challenge to a transaction | Reason code, deadline, evidence |
| Webhook endpoint | Where events are delivered | Signing secret, retry policy, event types |
Two questions separate stablecoin-native providers from traditional ones bolted onto a wallet:
- When does conversion happen? Just in time at authorization, so balances stay in USDC, or ahead of time into a fiat card balance.
- Who holds the stablecoins? A custodial program wallet, or your own wallet with an on-chain spending allowance the provider can draw from.
Integration flow, step by step
1. Get sandbox credentials
Sign up, get sandbox keys, and before writing code ask for three lists: supported card currencies, cardholder countries the sponsor bank accepts, and stablecoins and networks the funding source supports. These decide your product more than any endpoint.
2. Pass KYB for your business
The provider and its sponsor bank verify your company before approving the program: registration, beneficial owners, business model, and expected volumes. The approval sets your limits and card types. Plan for this to take longer than the code.
3. Create a cardholder and pass KYC
The response comes back with a status such as pending. Wait for approved on a webhook before issuing a card. Treat rejected as final and show a clear message.
4. Link a stablecoin funding source
In a custodial model you deposit USDC to an address the provider gives you. In an allowance model you approve a spending limit on-chain from your own wallet, and the provider pulls only what settles.
5. Issue a virtual card
Amounts are in minor units, so 200000 is USD 2,000.00. MCC 7995 is gambling. Show the card number to the cardholder through the provider's embedded, PCI-compliant display component. Never proxy the full card number through your own backend, or you inherit PCI scope.
6. Handle the authorization webhook
This is the heart of the integration. On each purchase the provider calls your endpoint and waits a few seconds for an answer. If you do not answer in time, the provider applies a default decision you configure.
Three rules make this handler reliable:
- Read from your ledger, not the blockchain. An on-chain balance query is too slow for an authorization deadline. Keep a ledger that updates on deposit and settlement events.
- Be idempotent. Providers retry. Key on the authorization id and return the same decision.
- Decide your timeout default deliberately. Decline on timeout is safer. Approve on timeout is friendlier and needs a buffer.
7. Process clearing, reversals, and refunds
The authorized amount is not the final amount. Listen for clearing events and adjust the hold, release holds on reversals, and credit refunds. Post each event to your ledger once, keyed on its id.
8. Settle the funding side
At settlement the provider draws the stablecoins that cover the day's cleared purchases and pays the network, in fiat or in USDC where the network supports it. Reconcile the draw against your ledger daily.
If your treasury starts in a bank account, you need a way into stablecoins first. BlindPay virtual USD accounts accept ACH and wire deposits and convert them to USDC or USDT in a linked wallet, and the stablecoin API integration guide walks through those calls with real endpoints.
9. Go live with low limits
Switch to production keys, issue one card to an internal cardholder with a USD 50 limit, and buy something real. Check every event landed in the ledger. Then raise limits.
Where does KYC and KYB sit in the flow?
Compliance is not a step. It is four checkpoints.
| Checkpoint | Check | Why it cannot be skipped |
|---|---|---|
| Program approval | KYB on your company and its beneficial owners | The sponsor bank must know who runs the program |
| Cardholder creation | KYC on each cardholder, sanctions screening | A card is an account; account opening requires identification |
| Funding | Wallet address screening | Stablecoin funds from a sanctioned address taint the program |
| Every authorization | Transaction monitoring, velocity and merchant rules | The sponsor bank's AML program covers every transaction on its BIN |
The sponsor bank carries the regulatory responsibility for every card on its BIN, and US sanctions compliance is strict liability. A provider that lets you skip a checkpoint is putting its bank relationship, and your program, at risk. The compliance guide covers what each check involves and how it differs by country.
Testing checklist before production
- Approve, decline for insufficient funds, and decline on a blocked MCC
- Webhook timeout and the configured default decision
- Duplicate webhook delivery
- Partial clearing below the authorized amount, and clearing above it (tips)
- Full reversal and a refund days later
- Cardholder KYC rejection
- Funding source running low mid-month
What to read next
Finish the series with the compliance guide for stablecoin card issuing. If your recipients need money in a bank account rather than on a card, the stablecoin API integration guide covers local-currency payouts over Pix, SPEI, ACH, SEPA, and SWIFT (POBO/COBO).
For the business side of the same build, read how to launch a stablecoin card program and how to choose a stablecoin card issuing provider.
This article is for general information only and is not legal, tax, or financial advice.
FAQ
More payments articles
See all payments articlesHow to pay invoices, boletos, and Pix codes with stablecoins through an API
Register the bill, quote it, pay it from USDC or USDT, and track two webhook streams. A developer guide to stablecoin bill pay, boleto gotchas included.
How long does it take to launch cross-border stablecoin payouts? From first API call to first live payout
The go-live critical path for stablecoin payouts: instance setup, KYB, integration, first customer KYC, and first-payout holds, with each wait.
Crypto payment processor for businesses: what to compare before you choose
Compare crypto payment processors on six criteria: settlement speed, stablecoins, compliance, dev effort, payout coverage, and pricing. Scorecard inside.