Verify otp in abha address creation using abha number is not working

Hello @IntegrationSupport,

Verify otp in abha address creation using abha number is alone not working.
Attached a request curl and response.
Pls tell what’s wrong.

curl --location 'https://phrsbx.abdm.gov.in/api/v1/phr/registration/hid/confirm/credential' \

--header 'Content-Type: text/plain' \

--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODY3NzAyNDUsImlhdCI6MTY4Njc2OTY0NSwianRpIjoiZmE0ZTViZTQtNDc4My00MjhlLWE4ZmQtYzk5YzQwMDVkODlmIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjM2FjOTBhZC05YWI3LTQ4MjUtOWI1Zi1iYjc3YWY4NDI2ZGQiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAyNzkyIiwic2Vzc2lvbl9zdGF0ZSI6ImQ3NTlkNzdmLTc0OTQtNGUwOS1iNDE3LTJhYzcwMGE5MmJiYyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiLCJocF9pZCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDI3OTIiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDI3OTIiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3LjI4IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMjc5MiIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjcuMjgifQ.V-u30e2Yb2DBIyQJMPwzSpGcz0FlZnSOQhARFYdJkMhdIWcmpXReZX8RntkD9swsFMBvfiu0bg80ZMt2rccR57qXVWWjXYkeo0mnfiORTuHqJDmGSg1VeilIMRzBURus-RCUeufnpNEou7OgICe9Ro-3DMKl9ykWXcYTz-INE1FBhe41qF42jCpJwKKISEAGo2ugqU881zTGqW5WjMaM3pciFZdvjLSFLrH5HKqoBIKVxOIs0KqneSXvikI73cPoaDQxx5BeJ6S763u07wOT-wtbWW15jFTcHL13UkC8tDd5CPSSywNCixIfzZSZW5CQGZFtHfUVYBmIloOUC5uefw' \

--data '{

    "transactionId": "525bb153-05d8-49ce-91f5-2403449b915e",

    "otp": "f0tRzdVRKTFNmk2r3nugeIPfD1VXaBNHil7UXjCAEOGyD+DedLFjhMw+VZWNJI+qq6QcHsMIoeN80ubs0Qf+Z3fUE+NI9gw8OipGLzCmDopIvYIrw/mWX7rv8j6ExT70lRWDcbxmGFlztExYUytwz05RDztzEvYJSSTk2zoxB2aV0IxWIanYkRmYHht/HAm8ytfG56tJV0Vmf/20VtrMHyG7MIbmTWM1d5/VgnUpFo9paTlB71Q7DAzDncDOliog4tD4iLvetxH7z4Bl78NjTWLqo6MK802zn5dtEADTVUQ5dk6yEu2bzL9p8Tyt0em9e2WWzrAf9cbyfxjwRqBruQ=="

}'

Response:
{

"code": "MIS-500",

"message": "An unexpected error has occurred. Please try again in sometime.",

"details": null

}

@balaji wrong url and api used if you are building PHR. Please check (registration by HID number) : https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml
Base URL : https://dev.abdm.gov.in/cm

Okay. But when I asked earlier, you suggested to use the postman collection, not the swagger doc. So only we were using that. Pls check the attached chat.
@IntegrationSupport


@balaji Swagger is a reference document. You can always refer there for any milestone you are trying to achieve.

1 Like