Skip to main content

Validate OTP

Validate OTP

Postman Collection

URL

POST : /v1/service/aeps/validateOTP

Headers

Content-Type  (String)   required
application/json
Authorization  (String)   required
Basic Auth
Accept  (String)   required
application/json

Body Params

otp  (String)   Required
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)
latitude  (String)   Required
Current location latitude (Max Length: 20)
longitude  (String)   Required
Current location latitude (Max Length: 20)
encodeFPTxnId  (String)   Required
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

    {
"code": "0x0200",
"message": "OTP validate successfully.",
"status": "SUCCESS",
"data": {
"primaryKeyId": 3276168,
"encodeFPTxnId": "EKYKFXXXXX18271223XXXXX113I"
}
}

Response Code

Status CodeStatusMessage
0x0200SUCCESSTRANSACTION SUCCESSFULL
0x0201UNAUTHORIZEDUNAUTHORIZED USER
0x0202FAILUREFAILURE USER
0x0203MISSING_PARAMETERMISSING PARAMETER
0x0204CONNECTION_TIMEOUTCONNECTION TIMEOUT
0x0205SOMETHING_WENT_WRONGSOMETHING WENT WRONG
0x0206PENDINGTRANSACTION PENDING