> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yativo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Virtual Cards

> Issue virtual Visa/Mastercard cards to your customers

Issue prepaid virtual cards to your customers for online spending. Cards are funded from your wallet balance and can be frozen, unfrozen, topped up, or terminated via the API.

> [!NOTE]
>
> Minimum card creation amount is $3.00. The maximum card creation amount and top-up amount is $10,000.00 USD.

You can only view, fund, freeze, withdraw from or read transactions on your own cards. Any other card ID returns `404` with `Card not found`, and no money moves.

***

## Step 1: Issue a Card

Create a virtual card for a customer:

```
POST /customer/virtual/cards/create
```

**customer\_id** `string` *required*

The ID of the customer.

**currency** `string` *required*

Card currency (e.g. `USD`).

**amount** `number` *required*

Initial funding amount in USD. Minimum $3.00, maximum $10,000.00.

```bash cURL theme={null}
curl -X POST 'https://api.yativo.com/api/v1/customer/virtual/cards/create' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-key-here' \
  -d '{
    "customer_id": "da44a3e6-eb5d-429f-8d17-357aa5a6cdf2",
    "currency": "USD",
    "amount": 10.00
  }'
```

```json Success theme={null}
{
  "status": "success",
  "data": {
    "card_id": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
    "card_number": "4111 **** **** 1234",
    "expiry": "04/29",
    "cvv": "***",
    "currency": "USD",
    "balance": "0.00",
    "status": "active",
    "customer_id": "da44a3e6-eb5d-429f-8d17-357aa5a6cdf2"
  }
}
```

***

## List Cards

Retrieve all virtual cards with pagination:

```
GET /customer/virtual/cards/list
```

**page** `number`

Page number.

**per\_page** `number`

Results per page.

```bash cURL theme={null}
curl -X GET 'https://api.yativo.com/api/v1/customer/virtual/cards/list?page=1&per_page=20' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET'
```

***

## Get Card Details

Retrieve a specific virtual card, including sensitive details:

```
GET /customer/virtual/cards/get/{cardId}
```

**cardId** `string` *required*

The virtual card ID.

```bash cURL theme={null}
curl -X GET 'https://api.yativo.com/api/v1/customer/virtual/cards/get/card_01HX9KZMB3F7VNQP8R2WDGT4E5' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET'
```

***

## Fund a Card

Top up a card from your wallet balance:

```
POST /customer/virtual/cards/topup
```

**card\_id** `string` *required*

The virtual card ID.

**amount** `number` *required*

Amount to add to the card. Minimum $1.00, maximum $10,000.00.

**debit\_wallet** `string` *required*

Wallet currency to debit from (e.g. `USD`).

```bash cURL theme={null}
curl -X POST 'https://api.yativo.com/api/v1/customer/virtual/cards/topup' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-key-here' \
  -d '{
    "card_id": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
    "amount": 100,
    "debit_wallet": "USD"
  }'
```

***

## Freeze / Unfreeze a Card

Temporarily freeze or unfreeze a card:

```
PUT /customer/virtual/cards/update/{cardId}
```

**cardId** `string` *required*

The virtual card ID.

**action** `string` *required*

`"freeze"` to block the card, `"unfreeze"` to re-enable it.

```bash Freeze theme={null}
curl -X PUT 'https://api.yativo.com/api/v1/customer/virtual/cards/update/card_01HX9KZMB3F7VNQP8R2WDGT4E5' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-key-here' \
  -d '{ "action": "freeze" }'
```

```bash Unfreeze theme={null}
curl -X PUT 'https://api.yativo.com/api/v1/customer/virtual/cards/update/card_01HX9KZMB3F7VNQP8R2WDGT4E5' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-key-here' \
  -d '{ "action": "unfreeze" }'
```

***

## Get Card Transactions

Retrieve transaction history for a specific card:

```
GET /customer/virtual/cards/transactions/{cardId}
```

**cardId** `string` *required*

The virtual card ID.

```bash cURL theme={null}
curl -X GET 'https://api.yativo.com/api/v1/customer/virtual/cards/transactions/card_01HX9KZMB3F7VNQP8R2WDGT4E5' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET'
```

***

## Withdraw from Card

Move funds from a card back to your wallet:

```
POST /customer/virtual/cards/withdraw
```

**card\_id** `string` *required*

The virtual card ID.

**amount** `number` *required*

Amount to withdraw from the card.

```bash cURL theme={null}
curl -X POST 'https://api.yativo.com/api/v1/customer/virtual/cards/withdraw' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-key-here' \
  -d '{
    "card_id": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
    "amount": 50
  }'
```

***

## Terminate a Card

Permanently cancel a card. This action is irreversible:

```
POST /customer/virtual/cards/terminate
```

**card\_id** `string` *required*

The virtual card ID to terminate.

```bash cURL theme={null}
curl -X POST 'https://api.yativo.com/api/v1/customer/virtual/cards/terminate' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -H 'X-Api-Secret: YOUR_API_SECRET' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: unique-key-here' \
  -d '{
    "card_id": "card_01HX9KZMB3F7VNQP8R2WDGT4E5"
  }'
```

> [!WARNING]
>
> Card termination is permanent. Withdraw remaining funds before terminating.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.