Skip to main content

Two Factor Authentication

Two Factor Authentication

Postman Collection

URL

POST : /v1/service/aeps/2fa

Headers

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

Body Params

merchantLoginId  (String)   Required
Merchant unique Code(You will get merchantLoginId from Merchant Onboarding API) (Max Length: 20)
rdRequest  (String)   Required
Biometric data details (Max Length: Pid Data)
latitude  (String)   Required
Current location latitude (Max Length: 20)
longitude  (String)   Required
Current location latitude (Max Length: 20)

Request

Example Request
    curl --location '/v1/service/aeps/2fa' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data '{
"merchantLoginId" : "MID69374XXXXX",
"rdRequest": "<?xml version=\"1.0\"?>\n<PidData>\n <Resp errCode=\"0\" errInfo=\"Success.\" fCount=\"1\" fType=\"2\" nmPoints=\"53\" qScore=\"67\" \/>\n <DeviceInfo dpId=\"MANTRA.MSIPL\" rdsId=\"MANTRA.WIN.001\" rdsVer=\"1.0.8\" mi=\"MFS100\" mc=\"MIIEGDiOpx1w==<\/Data>\n<\/PidData>",
"latitude": "26.600000",
"longitude": "82.133904"
}'

Response Samples

    {
"code": "0x0200",
"message": "2FA completed successfully",
"status": "SUCCESS"
}

Response Code

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