Skip to main content

Card APIs

Full card lifecycle: card types, issuance, balance, deposit/withdraw, freeze/unfreeze, cancel, activate (physical), PIN management, and 5 transaction query types.
Base URL: POST /api/v2.1/fincard/virtual/card/...

Support Bins (Card Types)

Returns all available card types with pricing, features, and cardholder requirements.
Request: {} (empty body) Response data[]:
metadata.cardHolderModel B2B/B2C is an internal code — it does NOT mean company vs individual. Use it to determine which cardholder creation fields are required.

Create Card V2

Create a new virtual or physical card with initial deposit.
Request: Response data:
cardNo is the unique card identifier. Use it for all card operations (info, deposit, withdraw, freeze, cancel).

Card Info

Get card details, status, and optional balance.
Request: Response data: Card Statuses:

Card Sensitive Info

Get encrypted card number, CVV, and expiry date. Decrypted with merchant’s RSA private key.
Request: { "cardNo": "..." } Response data:
Gift cards only return activateUrl. No card number, CVV, or expiry date.

Card Balance

Request: { "cardNo": "..." } Response data: { cardNo, amount, usedAmount, currency }

Card Operations

All card operations follow the same request/response pattern.

Common Request Fields

Common Response Fields

Endpoints

Cancel is permanent. The card cannot be reactivated after cancellation.

Update Card — Additional Fields

The Update endpoint also accepts:
Only one of allowedMcc or blockedMcc can be set. Send empty array [] to remove.

Update PIN — Rules

PIN must be 6 digits with these constraints:
  • No 3+ consecutive repeated digits
  • Not entirely ascending or descending
  • No repeated 2-3 digit segments (e.g. 123123)

Activate Card (Physical)

Activate a physical card with PIN and activation code.
Request: Response data: { merchantOrderNo, cardNo, type: "card_activated", status, remark }

Transaction Queries

All transaction queries return { total, records[] } with pagination (pageNum, pageSize).

Card Purchase Transactions

Card fee and initial deposit records.

Card Operation Transactions (V1 / V2)

Card lifecycle operations (create, deposit, withdraw, freeze, cancel, etc.)
Filter: type = create / deposit / cancel / Freeze / UnFreeze / withdraw / update_pin / blocked / card_update / overdraft_statement

Card Authorization Transactions

Consumption (auth), refund, verification, reversal, and maintenance fee records.
Filter: type = auth / refund / verification / Void / maintain_fee Statuses: authorized / failed / succeed

Card Authorization Fee Transactions

Fee records when card balance is insufficient for authorization fees.
Filter: tradeType = card_patch_fee / card_patch_cross_border

Card 3DS Transactions

3DS OTP codes, authorization URLs, and physical card activation codes.
Filter: type = third_3ds_otp / auth_url / activation_code