Virtual Card API
Issue and manage Visa / Mastercard virtual cards in bulk via API, funded with USDT — built for subscription billing, ad spend and cross-border procurement.
- BIN lookup: available BINs, supported regions and limit ranges
- Issuing and top-up: create cards against a chosen BIN and top up on demand
- Card management: freeze, unfreeze, close, and retrieve card details securely
- Transactions and webhooks: per-transaction history plus real-time authorization and settlement events
Overview
The Virtual Card open API lets you open cards, list BINs, read card details, fetch 3DS OTP codes, query transactions, top up and cancel — plus read your account USD balance and obtain a dedicated TRON fixed deposit address. All endpoints return a unified JSON structure (code/message/data, code=0 means success).
Base URL = your gateway address (this site origin). Card endpoints are prefixed /api/v1/vcard; account endpoints /api/v1/account.
All amounts are in USD; open/top-up are deducted from your platform USD balance (balance payment only). Insufficient balance returns an error.
Auth & Signing
Read endpoints (BINs, card list, transactions, orders, balance, deposit address) accept the plain dual keys. Endpoints that move funds or return sensitive data also require HMAC signing + timestamp + nonce replay protection: open, top-up, cancel, return balance, freeze/unfreeze, plus full card details (details) and the 3DS code (code). A leaked plain key alone therefore cannot move funds or read sensitive card data.
Sign in to the console → Tools & Settings → API management → Create key, copy the API Key and Secret Key (Secret is shown only once).
Open, top-up, cancel, return balance, freeze/unfreeze, card details (full number and CVV) and the 3DS code accept signed requests only; plain keys alone get 401. Other read endpoints do not require signing.
Account Balance
GET /api/v1/account/balance
Read the current account USD balance, best-effort including the dedicated TRON fixed deposit address (deposit_address is null if the address pool is temporarily unavailable; the balance is still returned).
TRON Fixed Address
GET /api/v1/account/deposit-address
Get/assign your dedicated TRON fixed deposit address (USDT/TRX·TRC20). No order needed — any amount sent to it is auto-converted to USD and credited, ideal for automated top-up via API. Once assigned the address stays fixed.
Response Fields
Send USDT or TRX to this address; once confirmed by the block scanner it is auto-converted to USD at the live rate and credited to your platform balance — no callback required.
Service Status
GET /api/v1/vcard/info
Returns whether the virtual card service is enabled and the current account USD balance.
Response Fields
If the account balance cannot be read, the endpoint returns HTTP 503 instead of balance: 0. On a 503, retry later and do not treat it as a zero balance.
Card BINs
GET /api/v1/vcard/bins
Returns the card BIN list. Fees are final prices including platform markup, computed by the API tier matched to your last-30-day consumption (higher spend = lower rate). can_open=false marks top-up-only BINs (existing cards only, cannot open new cards).
Open Card Signed
POST /api/v1/vcard/cards
Create a new card. The system deducts from your account USD balance (opening fee + top-up fee + amount loaded onto the card); the order is processed asynchronously via a queue.
Response Fields
Opening is async: after the response returns order_id and status=queued, poll the Order Detail endpoint until completed. Failures are auto-refunded to your account balance.
When a request times out or the connection drops, the charge may already have happened. Do not retry with a new order number: resubmit with the same out_trade_no (an existing order is returned as-is and is not charged again), or look up the result with GET /api/v1/vcard/orders/by-trade-no/:out_trade_no. Requests without out_trade_no have no such protection, and a retry may charge a second time.
Card List
GET /api/v1/vcard/cards
Returns all cards under your account (masked last-4 card number, balance, usable state, cancel state).
Response Fields
The card list returns only the fields in the table above. can_return and fee_return are returned for some card BINs only; if they are missing, treat the card as not supporting balance return.
Card Details Signed
GET /api/v1/vcard/cards/:id/details
Returns sensitive plaintext of a single card: full card number, CVV, expiry, holder. Only your own cards can be queried.
Response Fields
Note: the table above lists the fields the platform guarantees to return; the response may contain other fields, as actually returned.
This endpoint returns the full card number and CVV — call it only from a trusted server, never expose it in frontends or logs.
Transactions
GET /api/v1/vcard/cards/:id/transactions
Returns the card transaction/statement records (consume, top-up, etc.); each query syncs the latest records in real time.
Response Fields
Note: the table above lists the fields the platform guarantees to return; the response may contain other fields, as actually returned.
OTP Code Signed
GET /api/v1/vcard/cards/:id/code
Get the latest 3DS OTP code for the card, used for payment verification.
Top Up Signed
POST /api/v1/vcard/cards/:id/recharge
Top up an existing card. Deducted from account USD balance (top-up amount + top-up fee); processed asynchronously via a queue.
Response Fields
When a request times out or the connection drops, the charge may already have happened. Do not retry with a new order number: resubmit with the same out_trade_no (an existing order is returned as-is and is not charged again), or look up the result with GET /api/v1/vcard/orders/by-trade-no/:out_trade_no. Requests without out_trade_no have no such protection, and a retry may charge a second time.
Cancel Signed
POST /api/v1/vcard/cards/:id/cancel
Submit a card cancellation. Cancellation is async: after the bank confirms (may take days) the remaining card balance is auto-refunded to your account balance.
Balance Return Signed
POST /api/v1/vcard/cards/:id/return
Return the remaining card balance to your account balance without cancelling the card. The fee is deducted from the returned amount and the net amount is credited automatically. Only supported on some BINs: callable when can_return is true in the card list; fee_return is that BIN’s return fee.
Only one return is accepted per card at a time. Submitting again while a previous one is still in flight returns 400 — wait for the order to reach a terminal state instead of retrying the same request.
Freeze / Unfreeze Signed
POST /api/v1/vcard/cards/:id/freeze
Freeze or unfreeze a card. Each operation charges a small fee (see status_fee in the card list). Callable only when can_freeze is true; returns 400 if the card is already in the target state or a previous operation is still in flight.
Auto top-up (balance rules) Signed
GET /api/v1/vcard/balance-rules
GET /api/v1/vcard/cards/:id/balance-rule
PUT /api/v1/vcard/cards/:id/balance-rule
DELETE /api/v1/vcard/cards/:id/balance-rule
POST /api/v1/vcard/cards/:id/balance-rule/resume
Tops up a card automatically when its balance drops below a set amount, or only sends a reminder. Each card has one rule; PUT creates or replaces it. Auto top-ups use the same charge path as manual top-ups (same card limits and fees) and run when the card balance changes or on a once-a-minute check.
Safety limits: a daily top-up count (1–10, in your account time zone) and a monthly amount cap are required. The rule pauses automatically and notifies you if the card is frozen or being closed, the issuer declines for fraud, 3 transactions in a row are declined, or your account balance is short 3 times in a row. Call resume to restart it (rules paused by the platform can’t be resumed by you).
API keys with a daily spending limit can’t create or resume auto top-up (403, business code 4035): the platform charges auto top-ups in the background, outside the key’s limit. Reminder-only rules aren’t affected.
Subscriptions
GET /api/v1/vcard/subscriptions
Recurring charges recognized from the transactions on your active cards (read-only, computed live): repeated charges from the same merchant about a week, a month or a year apart count as a subscription. To stop one, freeze or close the card.
Merchant lock Signed
GET /api/v1/vcard/merchant-locks
GET /api/v1/vcard/cards/:id/merchant-lock
PUT /api/v1/vcard/cards/:id/merchant-lock
DELETE /api/v1/vcard/cards/:id/merchant-lock
Sets the merchants a card may be used with. When a transaction from any other merchant shows up, the card is frozen automatically (one freeze fee) or you’re only notified. Only transactions after the setting is saved are checked, and freezing happens afterwards — the first off-list transaction has already been authorized.
Card groups
GET /api/v1/vcard/groups
POST /api/v1/vcard/groups
PUT /api/v1/vcard/groups/:gid
DELETE /api/v1/vcard/groups/:gid
POST /api/v1/vcard/cards/group
Organize cards into groups, each with an optional monthly budget: you get one alert at 80% of the budget and one when it’s exceeded; transactions are never blocked. A card belongs to one group at most; group_id 0 removes it from its group. Up to 20 groups.
Monthly statement
GET /api/v1/vcard/bill/export
One month of card transactions, optionally for a single card or a group, oldest first. Only transactions from while you held the card are included; if a request would return more than 20,000 rows you get 400 — export by card or group instead.
Order List
GET /api/v1/vcard/orders
Paginated list of your open/top-up/cancel orders.
Order Detail
GET /api/v1/vcard/orders/:id
Query a single order progress, used to poll results after open/top-up.
Returns a single order object with exactly the same fields as the order object in "Query Orders".
Look up an order by your own order number
GET /api/v1/vcard/orders/by-trade-no/:out_trade_no
Looks up an order by the out_trade_no passed when opening or topping up a card. The response is the same as "Order detail". Returns 404 if the number does not exist.
Update Remark
PUT /api/v1/vcard/cards/:id/remark
Set a custom remark on a card (max 60 chars).
Webhook Push
When events happen (card opened / recharged / cancelled, new transaction, new 3DS code), the platform pushes them to your endpoint via HTTP POST (JSON) — no polling needed. Configure at Console → Virtual Card → API Integration (enable switch + endpoint URL + signing Secret + subscribed events; leaving events unchecked = subscribe to all).
Delivery contract: the endpoint must be a publicly reachable https URL; the payload is a flat JSON object with all values as strings; responding 2xx marks the delivery as successful, otherwise the platform retries with exponential backoff 30s → 1m → 2m → 5m → 10m, up to 10 attempts. Retries carry the same notify_id — dedupe by it for idempotency.
Common fields (present on every event; event-specific fields are listed below):
Verification: take all non-empty fields except "sign", sort by key ASC, join as k=v&k2=v2, compute HMAC-SHA256 (hex, lowercase) with your Secret and compare with the payload sign; also require sign_ts within ±5 minutes and an unseen nonce. Reject with 401 if any check fails.
Events and their specific fields:
Frequently Asked Questions
How soon is a card usable, and where can it be spent?
Issuing returns card details within seconds and the card works immediately anywhere Visa / Mastercard online payments are accepted — commonly AI service subscriptions, ad platform top-ups and cross-border e-commerce.
How do I debug a declined transaction?
Query the transaction history endpoint for that authorization's decline reason code — most often insufficient balance, a restricted merchant category, or a risk-control block. Authorization and settlement events are also pushed via webhooks for reconciliation.
Related pages: Virtual cards · API Documentation · Multi-chain crypto payments
Loading…