Error while creating ABHA id

Request Body:
aadhaar
:
“1234567890”
dayOfBirth
:
“9”
districtCode
:
“507”
email
:
test@gmail.com
firstName
:
“Sai”
gender
:
“M”
healthId
:
“kchaitanya.234”
lastName
:
“Chaitanya”
middleName
:
“”
mobile
:
“mobile no. removed from here”
mode
:
“MOBILE”
monthOfBirth
:
“5”
name
:
“Sai Chaitanya”
password
:
“test#12345”
pincode
:
“500001”
restrictions
:
“NA”
stateCode
:
“36”
subdistrictCode
:
“NA”
villageCode
:
“NA”
wardCode
:
“NA”
yearOfBirth
:
“1998”
Response Body:

2023-09-06 06:06:49.340 ERROR 6417 — [nio-9001-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.HttpClientErrorException$UnprocessableEntity: 422 : “{“code”:“HIS-422”,“message”:“Unable to process the current request due to incorrect data entered.”,“details”:[{“message”:“Please enter a valid District.”,“code”:“HIS-1025”,“attribute”:null}]}”] with root cause

org.springframework.web.client.HttpClientErrorException$UnprocessableEntity: 422 : “{“code”:“HIS-422”,“message”:“Unable to process the current request due to incorrect data entered.”,“details”:[{“message”:“Please enter a valid District.”,“code”:“HIS-1025”,“attribute”:null}]}”
at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:141) ~[spring-web-5.3.24.jar!/:5.3.24]

Can you pls check and let us know how to resolve this.

What is the endpoint you are hitting ? Please paste the complete URL. Thanks

https://healthidsbx.abdm.gov.in/api/v1/registration/mobile/createHealthId

I am trying to create abha using mobile otp

Can you post a link to the API , as I do not seem to find it here

https://sandbox.abdm.gov.in/swagger/ndhm-healthid.json
please check here

@satyadeep @IntegrationSupport can you please help me here. I am using v0.5 API to create ABHA via mobile otp. the URL that you have shared is for v1/v2. but as per my understanding , v0.5 should also be in working mode and there should be backward compatibility as i have integrated the v0.5 apis in my code. Please help me here.

@IntegrationSupport can you confirm if v0.5 APIs can be used in sandbox environment , or will it be v1/v2?

Thanks

I got it @preeti. You are trying to create ABHA ID in HIP mode. Let me set it up on my local and will get back.
Thanks

@satyadeep Request you to check webinar.7 https://sandbox.abdm.gov.in/webinars
You can check our new documentation section for details for versions of API
https://sandbox.abdm.gov.in/abdm-docs/getting-started

hi @satyadeep,

Not really sure what does “create ABHA ID in HIP mode” means. I am using the APIs mentioned in

https://sandbox.abdm.gov.in/swagger/ndhm-healthid.json

under Registration with mobile number section. Please refer that. These APIs were working fine few days back. Now its giving error.

@satyadeep

and these are not v0.5 APIs. the full URL is
healthidsbx.ndhm.gov.in/api/v1/registration/mobile/createHealthId

So it is V1 API only.

Hii @IntegrationSupport @satyadeep any update for this problem??

Hi @satyadeep: any news on this. It has been 15 days since i am stuck on this. My development is stuck. Can you pls assist.

Hi @preeti,

I am looking into the APIs of M2 and will let you know by EOD tomorrow.

Thanks

Satyadeep

Hi @satyadeep

Any update on this. Can we have a quick call around this as per your availability.

Thanks in advance.

Hi @satyadeep @IntegrationSupport any update on the above API. I am still stuck with the same problem please help.

@Preet_16 Request you to go through our documentation first implemenation.
ABHA creation is done by using Aadhaar number only in M1.

Link to documentation
https://sandbox.abdm.gov.in/abdm-docs/Milestone_one

Hi @IntegrationSupport

Thnaks for your reply. However, as far as i remember, Abha ID can be created using Mobile number as well. Please see below link from “Old documentation”:
https://sandbox.abdm.gov.in/docs/apis

Here you can check ABHA Number APIs[image] link. There are set of apis given to create healthId using mobile number.

Are we saying that these APIs are not working anymore. Please suggest further on this.

Hey i am also facing the same issue
It’s giving “disctrict code is invalid” even if i enter valid district code
also the api was working previously, its is a new breaking issue i suppose