Set Physical Card Pin

📘

Header Parameters

For Header Reference Click here

Request Parameters

NameTypeMandatory (M) , Optional (O), Conditional (C)Description
kitNumberStringMKit number of physical card
cardPinStringOEncrypted New PIN Number
cardExpiryStringOEncrypted Card expiry in MM/YY
otpStringC6 digit number. In the first case this field is not mandatory . If a customer received OTP then send the same the request again.

Sample Request

curl --location 'https://api.instantpay.in/cards/prepaid/setPhysicalCardPin' \
--header 'X-Ipay-Auth-Code: 1' \
--header 'X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOfh549Gzt+5IEcETrD5Yx+Q=' \
--header 'X-Ipay-Client-Secret: 679db35f926b8d0240a8c0d28729528ee8e6d5effa5fa0b20c04454004d2d825' \
--header 'X-Ipay-Endpoint-Ip: 125.0.0.1' \
--header 'X-Ipay-Request-Hash: 123456789|123456789|123456789|123456789|123456789|123456789|1234' \
--header 'X-Ipay-Request-Timestamp: 1631081674077' \
--header 'X-Ipay-Hash-Check: OFF' \
--header 'User-Agent: InstantPayAPITest/1.0.0' \
--header 'Content-Type: application/json' \
--data '{
    "kitNumber": "1700025373",
    "cardPin": "72y987/jdfgujbhj30",
    "cardExpiry": "04/26"
}'
POST /cards/prepaid/setPhysicalCardPin 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

{
    "kitNumber": "1700025373",
    "cardPin": "72y987/jdfgujbhj30",
    "cardExpiry": "04/26"
}'

📘

Response Parameters

For Response Reference Click here

Sample Response

{
    "statuscode": "TXN",
    "actcode": "OtpGenerated",
    "status": "One Time Password sent to 98******07 and ***[email protected]",
    "data": {
        "recipient": {
            "mobile": "97******31",
            "email": "a***[email protected]"
        }
    },
    "timestamp": "YYYY-MM-DD HH:II:SS",
    "ipay_uuid": "**********-****-****-****-**********",
    "orderid": null,
    "environment": "LIVE",
  	"internalCode": null

}

Sample Request (Same Endpoint URL)

{
   "kitNumber": "17******73",
   "mobile": "97******31",
   "otp": "******"
}

Sample Response

📘

Action Code Details

For Action Code details Click here

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