Connect with us on Telegram for the latest news, updates, and exclusive offers!

🌐Virtual Card API Middleware β€” Documentation

Welcome!
This API allows you to easily issue, top-up, and manage your virtual cards securely and reliably.


πŸ” Authentication

Get Token

All requests must include a Bearer token in the Authorization header.

Example:

http


Authorization: Bearer YOUR_API_TOKEN

If the token is missing or invalid, the server will return a 401 Unauthorized error.


πŸ“š Available Endpoints

1. List BIN Options

GET /wp-json/vc-api/v1/get-bins

  • Description: Retrieve a list of available card BINs you can use for issuing cards.
  • No parameters required.

Example Response:

json

{ "success": true, "data": [ { "bin": "428836", "actualRechargeFeeRate": "5%", "actualOpenCardPrice": "2.00" } ] }


2. Issue a New Card

POST /wp-json/vc-api/v1/issue-card

  • Description: Issue a new virtual card.
  • Required parameters:
    • cardBin (string) β€” The BIN to use.
    • amount (float) β€” Initial balance to load onto the card.

Body Example:

json

{ "cardBin": "428836", "amount": 10.00 }

Example Response:

json

{ "success": true, "card_id": "2342332", "state": 1, "create_time": "2025-03-07T19:41:10.000+00:00" }


3. Get Card Issuance Details

POST /wp-json/vc-api/v1/card-details

  • Description: Retrieve details about a card you have issued.
  • Required parameter:
    • card_id (string) β€” The order ID received when issuing the card.

Body Example:

json

{ "card_id": "250308034109062070" }

Example Response:

json

{ "success": true, "data": { "card_id": "234234", "state": 10, "userBankCardId": "464654546" } }


4. Recharge a Card

POST /wp-json/vc-api/v1/recharge-card

  • Description: Add more funds to an existing card.
  • Required parameters:
    • amount (float) β€” Amount to add.
    • Either cardId or cardNum must be provided.

Body Example:

json

{ "amount": 20.00, "cardId": "23423" }

Example Response:

json

{ "success": true, "message": "Recharge Success" }


5. Get Card Details by userBankId

GET /wp-json/vc-api/v1/get-card

  • Description: Retrieve information about a specific active card by its userBankId.
  • Required parameter:
    • userBankId (string) β€” The ID associated with your card.

Query Example:

/wp-json/vc-api/v1/get-card?userBankId=464654546

Example Response:

json

{ "success": true, "data": { "id": "23423432", "state": 1, "balance": "2.10", "number": "428836002391626", "expiryDate": "03/22", "cvv": "423", "organization": "VISA", "createTime": "2025-03-07T19:41:10.000+00:00" } }


6. List My Cards

GET /wp-json/vc-api/v1/my-cards

  • Description: List all virtual cards associated with your user account.

Example Response:

json

{ "success": true, "cards": [ { "id": 1, "card_bin": "428836", "balance": "10.00", "card_id": "3243243223", "created_at": "2025-03-07 22:00:00" } ] }


⚠️ Important Notes

  • All requests must be authenticated.
  • The minimum recharge amount is $10.
  • You can only issue cards if you have sufficient account balance.
  • Your API token must always be kept secure.
  • If anything goes wrong, the API will return a proper error message with a status code.

πŸ“ž Need Help?

If you encounter any issues, please contact support through your dashboard or email.


πŸš€ Start Building Now!

With this API, you can create and manage your own virtual cards with ease.
Issue, top-up, view, and manage β€” all in one place! 🎯