M1 ABHA Creation for V3

While verifying the otp in https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/enrol/byAadhaar and these are payload {
“authData”: {
“authMethods”: [
“otp”
],
“otp”: {
“timeStamp”: “{{timestamp}}”,
“txnId”: “{{txnNo}}”,
“otpValue”: “encypty_otp”,
“mobile”: “mobile_no” //I’m using different mobile no. that is not linked with aadhaar
}
},
“consent”: {
“code”: “abha-enrollment”,
“version”: “1.4”
}
}

after status 200 Ok getting response in this response mobile and email is null email linking part working fine but my question is
I read API_Mapping_ABHA_HIECM
1.1.3 Generate Mobile OTP for verification.If enrol/byaadhaar api resonse mobile number is null it means account got created without mobile number due to aadhaar mobile number and user provided mobile number missmatch. in that case need to continue with mobile number verificaion else skip mobile number verificaion.
https://sandbox.abdm.gov.in/abdm-docs/V3_API#post-/v3/enrollment/request/otp
request otp for mobile verification
{
“scope”: [
“abha-enrol”,
“mobile-verify”,
“dl-flow”
],
“authData”: {
“authMethods”: [
“otp”
],
“otp”: {
“timeStamp”: “<current_simple_timestamp>”,
“txnId”: “”,
“otpValue”: “”
}
}
}
these are payload i’m confusing what otp value i fill that I’m using on previous or where otp are going not Getting clear

but the email
{
“txnId”: “”,
“scope”: [
“abha-enrol”,
“email-verify”
],
“loginHint”: “email”,
“loginId”: “”,
“otpSystem”: “abdm”
}

it will ask loginID but in mobile not ask i’m confusing about mobile payload where otp will goes
basically my question what are payload if you have postman collection of v3 please provide so that i better understand

Hi Prince

  1. Send encrypted aadhaar to https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp
  2. Send mobile number ,transaction id , otp to https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/enrol/byAadhaar
  3. Send encrypted mobile number to https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp
  4. send otp value to https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/auth/byAbdm

I’m confusing that part

3.Send encrypted mobile number to https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp

what are payload field of this api , I’m following these documentation
https://sandbox.abdm.gov.in/abdm-docs/V3_API#post-/v3/enrollment/request/otp
in this api these are the payload of mobile (v3/enrollment/request/otp )
{
“scope”: [
“abha-enrol”,
“mobile-verify”,
“dl-flow”
],
“authData”: {
“authMethods”: [
“otp”
],
“otp”: {
“timeStamp”: “<current_simple_timestamp>”,
“txnId”: “”,
“otpValue”: “”
}
}
}

please provide me the what are payload required for this 3rd point is there any other documentation

Check this documentation @Prince https://sandbox.abdm.gov.in/documents/ABDM_M1.docx

1 Like

Hi Prince
Payload for that endpoint:

1 Like