Two Factor Authentication
Two Factor Authentication
Postman Collection
URL
POST : /v1/service/aeps/2fauthHeaders
Content-Type (String) required
application/json
application/json
Authorization (String) required
Basic Auth
Basic Auth
Accept (String) required
application/json
application/json
Body Params
merchantCode (String) Required
Merchant unique Code(You will get merchantCode from Merchant Onboarding API) (Max Length: 20)
Merchant unique Code(You will get merchantCode from Merchant Onboarding API) (Max Length: 20)
mobile (String) Required
Merchant Mobile Number (Max Length: 10)
Merchant Mobile Number (Max Length: 10)
aadhaarNo (String) Required
Merchant Aadhaar Number (Max Length: 12)
Merchant Aadhaar Number (Max Length: 12)
serviceType (String) Required
Api Service Type
Api Service Type
- AEPS - For Aadhaar Enabled Payment System payment service
- AP - For Aadhaar Pay Service
rdRequest (String) Required
Biometric data details (Max Length: Pid Data)
Biometric data details (Max Length: Pid Data)
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)
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
- SUCCESS
- FAILED
{
"code": "0x0200",
"message": "000: Two factor authentication successful.",
"status": "SUCCESS",
}
{
"code":"0x0202",
"status":"FAILURE",
"message":"001: Two factor authentication failed",
}
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 |
| 0x0208 | 2FA | TWO FACTOR AUNTHENTICATION |