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

# Unlock Virtual Card

The `unlockVirtualCard` mutation allows you to unlock a previously locked virtual card, restoring its ability to process transactions.

<Info>
  **Prerequisites:** a user access token with the `EDIT_VIRTUALCARD` scope, and the `virtualCardId` of the card to unlock.
</Info>

## Arguments

* **`input`** (`UnlockVirtualCardInput!`): The input object containing the ID of the virtual card to unlock.

## UnlockVirtualCardInput fields

| Field           | Type    | Description                 | Required |
| --------------- | ------- | --------------------------- | -------- |
| `virtualCardId` | `UUID!` | The virtual card to unlock. | Yes      |

## Sample mutation

```graphql theme={null}
mutation {
  unlockVirtualCard(input: { virtualCardId: "07df5653-43a8-4532-9881-3ab5857bbe11" }) {
    virtualCardId
    unlocked
  }
}
```

## cURL example

```bash theme={null}
curl -X POST \
  https://transactional-graph.staging.fluzapp.com/api/v1/graphql \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_USER_ACCESS_TOKEN' \
  -d '{
    "query": "mutation { unlockVirtualCard(input: { virtualCardId: \"07df5653-43a8-4532-9881-3ab5857bbe11\" }) { virtualCardId unlocked } }"
  }'
```

## Sample response

```json theme={null}
{
  "data": {
    "unlockVirtualCard": {
      "virtualCardId": "07df5653-43a8-4532-9881-3ab5857bbe11",
      "unlocked": true
    }
  }
}
```

## Response fields

| Field           | Type      | Description                                                                |
| --------------- | --------- | -------------------------------------------------------------------------- |
| `virtualCardId` | `UUID`    | The unique identifier of the virtual card that was targeted for unlocking. |
| `unlocked`      | `Boolean` | Indicates whether the card was successfully unlocked.                      |

## Next steps

<CardGroup cols={2}>
  <Card title="Add a billing address" icon="map-pin" href="/features/billing-address">
    Pre-save and manage the billing addresses your cards are issued against.
  </Card>

  <Card title="Get virtual card transactions" icon="list" href="/features/get-virtual-card-transactions">
    Confirm spend resumed by pulling the card's transaction history.
  </Card>
</CardGroup>
