---
page_source: https://docs.juspay.io/jusbiz/docs/integration/delete-virtual-card
page_title: Delete Virtual Card
---

## API Version: default


# Delete Virtual Card



The purpose of this API is to allow the deletion of virtual cards.## Endpoints:
- Sandbox: https://sandbox.biz.juspay.in/ardra/vt/deleteCard/v2

- Production: https://{{hostname}}.biz.juspay.in/ardra/vt/deleteCard/v2

## Request Type: 
POST

## Authorization:

#### Basic Auth:
Consists of two parts.

* Username: API Key obtained from Juspay dashboard
* Password: Empty string
- Value:  Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
- Tags: String, Mandatory
## Headers:

#### X-merchantid:
Pass merchant-id provided by Juspay
- Tags: String, Mandatory

#### KeyId:
Key Id against which encryption is done (to be taken from JusBiz Dashboard)
- Tags: String, Mandatory

#### Content-Type:
- Value:  application/json
- Tags: String, Mandatory
## Sample Code Snippets:
### Sample Request:

#### Request Code Snippet:

```request
{"success":false,"message":"No Data found for the given path"}
```

### Sample Response:

#### Response:
```json
{"success":false,"message":"No Data found for the given path"}
```

## Body Parameters:
### Section1:

#### payoutId:
- Description: A unique value against which virtual card has to be deleted
- Value: value
- Tags: String, Mandatory

#### action:
- Description: To cancel a card before redemption - use CANCEL 

To delete a card after redemption - use DELETE
- Tags: String, Optional
## API Responses:
### 200:

#### 200: Response Body:
- Tags: Object

#### status:
- Description: Status of the API callPossible value: SUCCESS | FAILURE
- Tags: String

#### payoutId:
- Description: Unique value of payout id which was sent in the request.
- Tags: String

#### message:
- Description: Reason for failure / success.
- Tags: String

#### response:
- Description: The response contains the details around the token which will be used for processing payments
- Value:
  - **IsDeleted**:
    - Description: true or false
    - Tags: String
- Tags: Object
### 400:

#### status:
- Description: SUCCESS | FAILURE
- Tags: String

#### payoutId:
- Description: Unique value of payout id which was sent in the request. E.g. “Juspay123456789”
- Tags: String

#### message:
- Description: Reason for the Parameter which is invalid
- Tags: String
### 401:

#### message:
- Description: 1. Invalid Key ID passed
2. Basic Auth & Key ID missing in Headers
3. Key ID missing in Headers
4. Basic Auth missing in Headers
5. Unauthorised: No key given
- Tags: String, Mandatory
