Validate OTP
Validate OTP
Postman Collection
URL
POST : /v1/service/aeps/validateOTPHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
otp (String) Required
Received on Merchant Mobile Number (Max Length: 8)
Received on Merchant Mobile Number (Max Length: 8)
primaryKeyId (String) Required ( In case of ICICI )
You will get a primaryKeyId from send OTP Api Response (Max Length: 50)
You will get a primaryKeyId from send OTP Api Response (Max Length: 50)
latitude (String) Required
Current location latitude (Max Length: 20)
Current location latitude (Max Length: 20)
longitude (String) Required
Current location latitude (Max Length: 20)
Current location latitude (Max Length: 20)
encodeFPTxnId (String) Required
You will get a encodeFPTxnId from send OTP Api Response (Max Length: 100)
You will get a encodeFPTxnId from send OTP Api Response (Max Length: 100)
Request
Example Request
curl --location '/v1/service/aeps/validateOTP' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data '{
"otp" : "51XX35",
"primaryKeyId" : "327XX68",
"latitude" : "26.600000",
"longitude" : "82.133904",
"encodeFPTxnId" : "EKYKF5770318XXXXX3173902592I"
}'
Response Samples
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "OTP validate successfully.",
"status": "SUCCESS",
"data": {
"primaryKeyId": 3276168,
"encodeFPTxnId": "EKYKFXXXXX18271223XXXXX113I"
}
}
{
"code": "0x0202",
"status": "FAILURE",
"message": "OTP is not valid."
}
Response Code
Status Code | Status | Message |
---|---|---|
0x0200 | SUCCESS | TRANSACTION SUCCESSFULL |
0x0201 | UNAUTHORIZED | UNAUTHORIZED USER |
0x0202 | FAILURE | FAILURE USER |
0x0203 | MISSING_PARAMETER | MISSING PARAMETER |
0x0204 | CONNECTION_TIMEOUT | CONNECTION TIMEOUT |
0x0205 | SOMETHING_WENT_WRONG | SOMETHING WENT WRONG |
0x0206 | PENDING | TRANSACTION PENDING |