Create a Card

Estimated time: ~1 minute

Cards can serve a variety of functions, from paying a merchant online to transacting in-person at a store.

With Lithic, you can create cards in a single request and use them immediately.

/*
const lithic = new Lithic({
  apiKey: "{Sandbox API key}", // or "Production API key"
  environment: "sandbox", // or "production". Defaults to "production"
});
*/

const card_params: Lithic.CardCreateParams = {
	type: "VIRTUAL"
};
const card = await lithic.cards.create(card_params);
'''
lithic = Lithic(
  api_key="{Sandbox API key}",  # or "Production API key"
  environment="sandbox",  # or "production". Defaults to "production"
)
'''

card = lithic.cards.create({
    "type": "VIRTUAL",
})
curl --request POST \
     --url https://sandbox.lithic.com/v1/cards \
     --header "Accept: application/json" \
     --header "Authorization: {Sandbox API key}" \
     --header "Content-Type: application/json" \
     --data '
{
     "type": "VIRTUAL"
}
'

For more information on cards, check out our in-depth guide: Cards