Abha Address registration

Hi Team, I am trying to Create Abha Address using mobile number, these are the APIs I am using

  1. /v1/apps/login/mobileEmail/auth-init
  2. /v1/apps/login/mobileEmail/pre-Verify

after verify I am passing the transaction id in session Id and calling this api to create new Abha Add-
3. https://dev.abdm.gov.in/cm/v1/apps/registration/details

But I am getting transaction is not found error,

Am I missing anything here? please help @IntegrationSupport

@IntegrationSupport, please update

Hii Rejesh change the Parameter sessionId to transactionId

sessionId = transactionId

“transactionId”: “93b1b4a4-50af-4fe2-b6b3-f569fafdbec4”,

Hi @arjuns307, @IntegrationSupport getting this error

Here is the Payload for your reference and I am using Bearer token that got from Session API,
{
“address”: “Derabish”,
“countryCode”: “+91”,
“dateOfBirth”: {
“date”: 25,
“month”: 5,
“year”: 1998
},
“districtCode”: “360”,
“email”: “”,
“gender”: “M”,
“mobile”: “UoDRvKXvSrzWXwqBwlq6wE89MD0XRd2+HYfV4dQobS3W8YBIXGOdeAmb+/LMkVvhc7Cxle97bg717YROyZVLEWPGvGc2/XHjqaL6VRRjDc/9toaOdRQzrDTWiGaY7Dn+9VntKyaaKa7XXyob4mD3QFMAPOWWyoXSymY1l9IEPzcwfDNwXxdrGMvcQyDUuUSAG6mDFU6MHEqVieiXDXWTKQH39s7O2rftCrFn4kb0Gpm2gfmLfHw0h4oJKL1Yq4Tj+BLeV7e5xUdbMiP3XIW6qh/cecb3MhfIjfqc/fa3wzHMMMQlWigMjPdO07Y/Cf0PucqKnOUx5xsmNBPNWpktaQ==”,
“name”: {
“first”: “Rajesh”,
“last”: “Prusty”,
“middle”: “Kumar”
},
“pinCode”: “754250”,
“transactionId”: “fa560f6f-db5e-4fd0-bc59-10e588efb8b3”,
“stateCode”: “21”
}

Hi @arjuns307, @IntegrationSupport any update?

@rajeshP Wrong sequence of API followed.
Please follow login colection api sequence as shared in this link ,
https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml

Hi @IntegrationSupport, I am calling /v1/apps/login/mobileEmail/auth-init to generate OTP using mobile then
calling /v1/apps/login/mobileEmail/pre-Verify - to validate the OTP.
after this if user wanted to create new PHR address by providing all details then which API to call?

follow step by step API https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml
1.

Hi @arjuns307, @IntegrationSupport Thank you for giving the steps. All Apis are working fine but for create Phr I am getting not authorized. Can you please check if I have access for client Id- SBX_000289 .If not can you please provide me the access

@IntegrationSupport please give access

Hi @arjuns307 @IntegrationSupport, any update?

Hi @arjuns307, @IntegrationSupport. The issue is fixed and working now, Thanks.
Is there any API to generate PhrAddress specific Xtoken after mobile OTP verification in this flow?

@rajeshP https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml you can check the sequence here

Hi @IntegrationSupport I checked that, Can we call any API to fetch Xtoken like this API- /v1/apps/login/mobileEmail/auth-confirm
After this registration OTP validation API - /v1/apps/validate/otp ?

@rajeshP No you cannot fetch X token from any API, It should be fetched from auth-init API only

Hi @IntegrationSupport , need one last help, I have this requirements.

  1. Enter mobile number and verify it- it will display all phr address linked to this number with transactionID.
  2. Now if user select any of mapped Phr address it will login to that address(login flow)
    else if user select to create new PHR address the registration apis will be called.(regestration flow)

Can you please help with the API sequence for this flow, Getting confused with multiple swaggers.

@IntegrationSupport, can you pls help

@rajeshP For PHR registration flow : Please follow these registration API’s for PHR app : By following api’s:

You can follow this swagger link registration part
https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml

@IntegrationSupport ,I am trying to do the ABHA Address registration via ABHA Number through PHR app ,but i am unable to do so.
I have created the ABHA number without ABHA address with the NHA sbx web application.
as shown below

Now ,i do not have ABHA address ,& i want to register it through PHR app via ABHA number but it is not working.

Please help me with this ,is there any issue with this flow .
Waiting for your reply
Thanks!!