Bit Capital

The Bit Capital Developer Hub

Welcome to the Bit Capital developer hub. You'll find comprehensive guides and documentation to help you start working with the platform as quickly as possible, as well as support if you get stuck. Let's jump right in!

Guides    Community

Virtual cards emission

The easiest and safest way to start shopping online with your Wallet balance is to emit Virtual VISA Card Numbers (VCNs).

const walletId = '2724434a-22fd-484e-b7da-596ffb1908ca';

// Emit a virtual card assigned to a specific wallet id
const card = await bitcapital.cards().emit('2724434a-22fd-484e-b7da-596ffb1908ca', {
  type: 'virtual',
  //asset: 'BRLD', // You can optionally specify which asset provider we should emit with
});

console.log(card.id);
curl -X POST \
  https://instance-url.btcore.app/wallets/2724434a-22fd-484e-b7da-596ffb1908ca/cards/virtual \
  -H 'Authorization: Bearer 0000000000000000000000000000000000000000'\
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -d '{
    "expirationDate": "2022-01-01T00:00:00.000Z"
}'

Getting the card information for online purchases

To get the card number, cvv and expiration for making online purchases, just request the card information based on its ID and the one of the wallet it was assigned to.

❗️

Security Warning

Bit Capital does not store any card information directly in any systems we develop or operate, having a strong and robust partnership with local card processing companies certified with PCI and other security standards that allow them to store safely this kind of information.


Any card data you get from the platform is merely proxied from the processor systems directly through a secure integration.


You are responsible for the security of this data once you've requested access to it over the API, being obliged not to store this information in insecure environments and limiting the exposure of this information in end user devices and interfaces.

const walletId = '2724434a-22fd-484e-b7da-596ffb1908ca';
const cardId = 'eaa94745-ef45-4ba0-8c9f-26e3d69d7a18';

// Gets the virtual card information directly from the processing supplier
cons card = await bitcapital.cards().findOne(walletId, cardId);

console.log(card);

Updated 5 months ago



Virtual cards emission


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.