---
title: "Create a virtual card"
method: POST
path: "/cards"
tags: ["Virtual Cards"]
---

# Create a virtual card

`POST /cards`

## Request

- Base URL: `https://api.quackr.io`
- URL: `https://api.quackr.io/cards`
- Auth: API key in header `x-api-key`

Create a new virtual credit card. The card amount is deducted from your account balance. Cards are created instantly and can be used immediately for online purchases.

## Request body

- object
  - `name` string, required: Display name for the card
  - `amount` number, required: Initial balance to load onto the card (USD)
  - `walletType` 'none' | 'apple' | 'google': Wallet compatibility for the card

## Response `201`

Card created successfully

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `id` string
    - `status` 'active' | 'frozen' | 'deactivated'
    - `balance` number
    - `cardNumber` string
    - `cvv` string
    - `expiryMonth` string
    - `expiryYear` string
    - `cardholderName` string
    - `cardType` string
    - `hasApplePay` boolean
    - `hasGooglePay` boolean

## Other responses

- `400`: Invalid request or insufficient balance

---

[API](https://skmtc.dev/quackr/apis/quackr-api.md) · [All operations](https://skmtc.dev/quackr/apis/quackr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quackr/apis/quackr-api/revisions/9b7240306750?raw)
