we are facing issues when doing scan and share with the user token generated for patient demoabha99@sbx ( linked with abha number) using mobile otp auth or aadhaar auth
Request :
curl --location ‘https://dev.abdm.gov.in/cm/v1/patients/profile/share’
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI5MS00MzgwLTY1NzQtNjMzMyIsImNsaWVudElkIjoiU0JYXzAwMjI1NCIsInN5c3RlbSI6IkFCSEEtTiIsIm1vYmlsZSI6Ijk1MjE3NTIxNzAiLCJoZWFsdGhJZCI6ImRlbW9hYmhhOTlAc2J4IiwiZXhwIjoxNjk5NDI5MjY4LCJoZWFsdGhJZE51bWJlciI6IjkxLTQzODAtNjU3NC02MzMzIiwiaWF0IjoxNjk5NDI3NDY4fQ.iz6dqilqm7470h-xayCUkIt-w7o_iXhzkW7fc9UgbSiC7kZtto3YWjI1RDUU701OjtlhUjrn2v7m6JaKf9aSLqDpVsECg41uS8HchwgBcRXJBR-EFjzPE3GGTdLBtPXqlhGzDqptXf7ITfQy0cjwt7MmYPVe5MoQbrSIQjNQtyZDfmB1r0UDKm94O8GGSTcJ7GgHYxdwAUzjOx2Wi9V7iyUw8jimdJs3si9GzoO0CS9jeX3BcUA3higG4JBAaZ6huHhxoZmvfZfDk0J1Uf4nZ0wdm5R0XzbEx6UcGqkvWZaH8KSOun8xRfzJMmYrYdmbQg6LymHkX956IWLp4Qp0-Zqovo8cJ_k7wATs0zF7D63JJxTEBinWaD0i1-HzoCYW5Q3fW1g2CUdaj5AF8m3VvrmgCT2BX7iGevdxLNwBUvL9V5xBd-R2d08xt-mkjvEnWu636u51abwtu7LVLxtVzpHLG4RdAMzEm9KKT4t2i1WWIK6glTSAOM_U9_Q6gjWA5AGKFW7sxileAvHYj18XgwLNSEoLjCcfOtsAKr9mjZZUnIfMfWgTV_4LIf8mu3MucpBPCUVgMp30mMOdZ0M5Q4phS1iqqTkfeewnt4PaEBQIibaoIB8-ieJYK5fs-C4LUf_53RpL7gVyp4LAqlbUHOTuPmWx77Q8kxja_0p3vd8’
–header ‘Content-Type: application/json’
–data ‘{
“requestId”: “b128952e-c633-4b99-b5cb-139fb55f1603”,
“intent”: {
“type”: “REGISTRATION”
},
“location”: {
“latitude”: “28.546560”,
“longitude”: “77.197094”
},
“hipDetails”: {
“hipId”: “PARCHAA_123”,
“code”: “parchaa01”
}
}’
Response :
{
“error”: {
“code”: 1500,
“message”: “Unknown error occurred”
}
}
but when are calling the same api endpoint with the user token generated of abha address rajveer.demo2@sbx (not linked with abha number) then I’m able to generate the token
Request :
curl --location ‘https://dev.abdm.gov.in/cm/v1/patients/profile/share’
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJwaW5jb2RlIjoiMjg0NDAzIiwic3ViIjoicmFqdmVlci5kZW1vMkBzYngiLCJjbGllbnRJZCI6IlNCWF8wMDIyNTQiLCJyZXF1ZXN0ZXJJZCI6IlBIUi1XRUIiLCJnZW5kZXIiOiJNIiwiZGlzdHJpY3ROYW1lIjoiTEFMSVRQVVIiLCJtb2JpbGUiOiI5NTIxNzUyMTcwIiwiZnVsbE5hbWUiOiJSYWp2ZWVyIiwiYWRkcmVzc0xpbmUiOiJDL08gUmFtYmhhcmF0IDkzIGJhbnQgQmFudCIsImhlYWx0aElkTnVtYmVyIjpudWxsLCJtb250aE9mQmlydGgiOiIxMCIsInN5c3RlbSI6IkFCSEEtQSIsInN0YXRlTmFtZSI6IlVUVEFSIFBSQURFU0giLCJkYXlPZkJpcnRoIjoiMjIiLCJwaHJNb2JpbGUiOiI5NTIxNzUyMTcwIiwiZXhwIjoxNzAwMDMxNTc5LCJpYXQiOjE2OTk0MjY3NzksInBockFkZHJlc3MiOiJyYWp2ZWVyLmRlbW8yQHNieCIsImVtYWlsIjpudWxsLCJ0eG5JZCI6IjhiNGJiMTczLTNkMjMtNDk3Ny04MWZlLTg4NWY5YmE0ZGUyMyIsInllYXJPZkJpcnRoIjoiMjAwMCJ9.pKxdkbk6VR8jtSoDimrKXZ7ghGLYsD7YL-w4V6JSF7L-OHSWjtss4mDi8Yj8ZOCDb2DdALId8l6AOl27l7VzDSzoBeLFIq2tKf3bR-7n6JssZfpadpqZrOttf02NRmnu-KMEpQE_NpMzQ7m_fl6FwlXldQm-YRuYGwt8kE4gNu2j6t3KW7tFLBwsUxJP35b8ixpId2LnNMDRgfGLkPqjd4G31Xgu_4075A7OKiEkm0JwgTP5EomUw8DHDRvzBRZo7q2s-ftNgkGIGW4li6PbB2R53BwgMZR8CF55no0LOxT7BxiTKIdY3sb-hxeHt_LJvWbijy_tucrdBw5KZyYV3A’
–header ‘Content-Type: application/json’
–data ‘{
“requestId”: “66999194-7e50-4fc6-b0d4-72eafd7ce88d”,
“intent”: {
“type”: “REGISTRATION”
},
“location”: {
“latitude”: “28.546560”,
“longitude”: “77.197094”
},
“hipDetails”: {
“hipId”: “PARCHAA_123”,
“code”: “parchaa01”
}
}’
Response :
{
“status”: “SUCCESS”,
“healthId”: “rajveer.demo2@sbx”,
“tokenNumber”: “GEN-1”
}
I’m not able to understand the difference and problem here.
please guide us what is wrong.
Thanks.