Fetch virtual card

API gives virtual card details and change transaction flags (Enable and Disable) for online transactions.

πŸ“˜

Header Parameters

For Header Reference Click here

Request Parameters

Name

Type

Mandatory (M) , Optional (O)

Description

transactionFlag

string

M

Enable - Prepaid card enable for online transactions
Disable - Prepaid card disable for online transaction

Sample Request

curl --location --request POST 'https://api.instantpay.in/cards/prepaid/fetchVirtualCard' \
--header 'X-Ipay-Auth-Code: {{authCode}}' \
--header 'X-Ipay-Client-Id: {{clientId}}' \
--header 'X-Ipay-Client-Secret: {{clientSecret}}' \
--header 'X-Ipay-Endpoint-Ip: {{endPointIP}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "transactionFlag": "Enable"
}'
POST /cards/prepaid/fetchVirtualCard HTTP/1.1
Host: api.instantpay.in
X-Ipay-Auth-Code: {{authCode}}
X-Ipay-Client-Id: {{clientId}}
X-Ipay-Client-Secret: {{clientSecret}}
X-Ipay-Endpoint-Ip: {{endPointIP}}
Content-Type: application/json
{
    "transactionFlag": "Enable"
}

πŸ“˜

Response Parameters

For Response Reference Click here

Sample Response

{
    "statuscode": "TXN",
    "actcode": "CardsFound",
    "status": "Transaction Successful",
    "data": {
        "accountNumber": "************",
        "ifsc": "*********",
        "cards": [
            {
                "id": 123456,
                "mobileNumber": "",
                "bankId": 123456,
                "nameOnCard": "AJAY KUMAR",
                "binType": "PREPAID",
                "branding": "InstantPay",
                "status": "ACTIVE",
                "type": "VIRTUAL",
                "cardTag": null,
                "cardNetwork": "RuPay",
                "cardVariant": "PLATINUM",
                "cardPerso": "N",
                "kitNumber": "**********",
                "expiryDate": "YYYY-MM-DD",
                "cardBinNumber": "******",
                "shortCardNumber": "****",
                "atmChannel": "OFF",
                "posChannel": "OFF",
                "ecommerceChannel": "ON",
                "contactlessChannel": "OFF",
                "fullCardNumber": "***************",
                "cvv": "XXX"
            }
        ]
    },
    "timestamp": "YYYY-MM-DD HH:II:SS",
     "ipay_uuid": "**********-****-****-****-**********",
    "orderid": null,
    "environment": "LIVE"
}

πŸ“˜

Action Code Details

For Action Code details Click here

Language
Click Try It! to start a request and see the response here!