https://dev.abdm.gov.in/cm/v1/patients/profile/share
Getting the following error:
{
“error”: {
“code”: 1401,
“message”: “Token verification failed”
}
}
@IntegrationSupport Please look into this on an urgent basis
@abha_testing: follow swagger: https://sandbox.abdm.gov.in/swagger/ndhm-phr-app.yaml
if situation persist, provide up screenshot of postman error along with payload body
Hi,
Please find the following details:
Url : https://dev.abdm.gov.in/cm/v1/patients/profile/share
Headers :
X-AUTH-TOKEN : {{AUTH_TOKEN}}
Payload : {
“requestId”: “{{$guid}}”,
“timestamp”: “{{$isoTimestamp}}”,
“intent”: {
“type”: “REGISTRATION”
},
“location”: {
“latitude”: “22.52222567”,
“longitude”: “88.3755094”
},
“hipDetails”: {
“hipId”: “cp-abha-hip-0001”,
“code”: “1234”
}
}
Error:
In our Header key-value We need to pass “X-AUTH-TOKEN“ instead of “Authorization”
Please refer the below details :
POST https://dev.ndhm.gov.in/cm/v1/patients/profile/share
Content-Length: 171
Content-Type: application/json
X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJwaW5jb2RlIjoiNjM4MDAzIiwic3ViIjoiZ2FuYXBhdGh5cDg1QHNieCIsImNsaWVudElkIjoiVEVTVF9QSFIiLCJyZXF1ZXN0ZXJJZCI6IlBIUi1XRUIiLCJnZW5kZXIiOiJNIiwiZGlzdHJpY3ROYW1lIjoiRXJvZGUiLCJtb2JpbGUiOiI5MDQyNTg4Nzc2IiwiZnVsbE5hbWUiOiJHYW5hcGF0aHkgUCIsImFkZHJlc3NMaW5lIjoiQy9PIFBhcmFzdXJhbWFuIDY4IGNoaW5uYSBtYXJpeWFtbWFuIGtvdmlsIHN0cmVldCBrYXJ1bmdhbCBwYWxheWFtIEVyb2RlIiwiaGVhbHRoSWROdW1iZXIiOm51bGwsIm1vbnRoT2ZCaXJ0aCI6IjUiLCJzeXN0ZW0iOiJBQkhBLUEiLCJzdGF0ZU5hbWUiOiJUQU1JTCBOQURVIiwiZGF5T2ZCaXJ0aCI6IjEyIiwicGhyTW9iaWxlIjoiOTA0MjU4ODc3NiIsImV4cCI6MTY4NTM1NDk5MywiaWF0IjoxNjg1MzQ3NzkzLCJwaHJBZGRyZXNzIjoiZ2FuYXBhdGh5cDg1QHNieCIsImVtYWlsIjoiZ2FuYW5kcm9pZDIwMDlAZ21haWwuY29tIiwidHhuSWQiOiJhMTY4NGQxMS0xN2NlLTQ1YzQtOTJmMC1lZmNjZDg1OWNiYTkiLCJ5ZWFyT2ZCaXJ0aCI6IjE5ODUifQ.UWjRA9NYrYHbKekoJ15xO2aK_BE1W649oE_OjgZT5GC0o0BiDVXYs_6PCtj2cVtC1LSc7JRXk6ox8FKbq9yKemv8zdXOwu_Pjl-o0S65Ya6Zj6uOvQM7d5YYMi0f_QOGfjIx_i0hgsGWd7rShmvFQbDUYYy_zW3poii9Qq47-Tm6nsipw645ezVWEZITcD4JCOWufivVlIpusc6rv9ssI1JoNV6V7uTfyb-bL16YVWtS1EXdgD4WgcY1voj-PSYmu0slKYh984N0G34sCUE2aScoHkjArgOLoPnUjTXb0LoZ6jASJqqv46uuKw1D0p0EOYAUKcQ3j7Zsf0NdKQyG4A
{“hipDetails”:{“code”:“1”,“hipId”:“h-100”},“intent”:{“type”:“Testing intent”},“location”:{“latitude”:"",“longitude”:""},“requestId”:“bd8a86cd-3163-472f-81ed-103b0845b145”}
Hi,
I tried the same process, but still getting 401 Unauthorized
@IntegrationSupport Please tell what else can I try?
@abha_testing pls share SBX client ID, will escalate to the tech team to debug this concerned issue.
@abha_testing : Resolution from tech team : HIP did not respond. Please check at HIP end. screenshot attached: