Skip to main content

Two Factor Authentication

Two Factor Authentication

Postman Collection

URL

POST : /v1/service/aeps/2fauth

Headers

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

Body Params

merchantCode  (String)   Required
Merchant unique Code(You will get merchantCode from Merchant Onboarding API) (Max Length: 20)
mobile  (String)   Required
Merchant Mobile Number (Max Length: 10)
aadhaarNo  (String)   Required
Merchant Aadhaar Number (Max Length: 12)
serviceType  (String)   Required
Api Service Type
  • AEPS - For Aadhaar Enabled Payment System payment service
  • AP - For Aadhaar Pay Service
(Max Length: Fixed)
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 --request POST '/v1/service/aeps/2fauth' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tsb2NfdXNlcn19Ont7bG9jX3Bhc3N9fQ==' \
--data-raw '{
"merchantCode": "MC000001111",
"mobile": "9999999999",
"aadhaarNo": "XXXXXXXXXXX",
"serviceType": "AEPS","AP",
"rdRequest": "<PidData><Resp errCode=\"0\" errInfo=\"\" fCount=\"1\" fType=\"0\" iCount=\"\" pCount=\"\" pgCount=\"\" pTimeout=\"\" nmPoints=\"36\" qScore=\"49\n\"/><DeviceInfo dpId=\"Morpho.SmartChip\" rdsId=\"SCPL.WIN.001\" rdsVer=\"1.0.8\" dc=\"6ff7b5c1-ae75-4965-b572-8af00133455c\" mi=\"MSO1300E3L0SW\" mc=\"MIIEGzCCAwOgAwIBAgIGAX4Ab+wFMA0GCSqGSIb...CTYrBP8WIXvIpIjcZQ</Data></PidData>",
"latitude": "27.8230122",
"longitude": "35.2121"
}'

Response Samples

{
"code": "0x0200",
"message": "000: Two factor authentication successful.",
"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
0x02082FATWO FACTOR AUNTHENTICATION