We are testing the new ABHA creation apis and are stuck at /v1/phr/registration/hid/create-phr-address as we are getting 422 error.
Sending the following request
curl --location ‘https://phrsbx.abdm.gov.in/api/v1/phr/registration/hid/create-phr-address’
–header ‘Content-Type: application/json’
–data-raw ‘{
“phrAddress”: “rupa2@sbx”,
“transactionId”: “ddb8174e-86fc-4ee0-adab-7b4c87861e22”
}’
we are using the transactionId received in /v1/phr/profile/link/profileDetails for the request
Getting the following response
{
“code”: “MIS-422”,
“message”: “Unable to process the current request due to some wrong data entered.”,
“details”: [
{
“message”: “Request is invalid. Please enter the correct data.”,
“code”: “MIS-400”,
“attribute”: null
}
]
}
Is this because the person already has another existing healthId