Hi Team,
I am trying to discover and link my cowin certificate with my phr address but getting the error as below:
{
“error”: {
“code”: 1414,
“message”: “Cannot find the user”
}
}
Api Curl:
curl --location --request POST ‘https://live.ndhm.gov.in/cm/v1/care-contexts/discover’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDAyNjU4MzYsImlhdCI6MTY0MDI2NTIzNiwianRpIjoiZWQyYTE2NWUtOTUxYy00NzgwLTg5MjEtOWEwNzEyNjM2MTg3IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhNzIxM2I3MS0zZWExLTQ1OGEtOGYyNC0yZDFiMWFlZDg5ZDQiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwNDAyIiwic2Vzc2lvbl9zdGF0ZSI6Ijk0MTUyMTkwLTk4MGEtNDk1Zi05ZjUwLWJlZTIwMmYxN2ZlMyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDA0MDIiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuM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a57Qwa47OFamOhMY3qum8tcX0yrJ2SKUDZgzCpVOhdX7uVg9EQamndS_76KmJWyKDsJbOGgaapClgxR0wxcY3Y6N_LzJ3ynRFFaLnfwDE6zRKnCuxUf7Gi8cvxFd-JwAiikZthO4qsoN3DHg3uHQU2V4UnygkOTOZtfpasudrb7nAYJznyxspUE9HjNgWZX6aqa9ikRnGVzdNuxTEINlcVBEYPr5VkEQJXglBCnPA4GZFPLpz1Z-lWqnVX2o92jzDZoyjENWuIpQzYPfhN4tPSh5gMfpRg7lO_fNpM-VjsPij6ZqJxUzDr4hAJ51OCny5XLmskeqoq5BreXocJ562v8BDhYxN4mmus8dfHzVH3avcKsq-_N3lVGT7Fa9f1oqYtpywl-VUh7lNDfwzm09maT1kD9vGJ069MAtkNVSKvD9-4’
–header ‘Content-Type: application/json’
–data-raw ‘{
“requestId”: “19cd5d1e-899f-47f5-babc-9aef59ef4ff9”,
“hip”: {
“id”: “CoWIN_HIP_01”
},
“unverifiedIdentifiers”: [
{
“type”: “MOBILE”,
“value”: “< cowin registered mobile no. >”
}
]
}’
Please look into this.
Hey @BushraKhan,
For CoWIN we send type as MR
in unverifiedIdentifiers
{
“requestId”: “{{$guid}}”,
“hip”: {
“id”: “CoWIN_HIP_01”
},
“unverifiedIdentifiers”:[{“type”:“MR”, “value”: “< cowin registered mobile no. >”}]
}
while having a look at the token,
we found healthid - bushra123@sbx
which is for sandbox environment and service id (CoWIN_HIP_01)
seems to be for Prod
Environment .
Thanks
Can you check this as well?
curl --location --request POST 'https://live.ndhm.gov.in/cm/v1/care-contexts/discover' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI0dUx2Wmp2T3V2c1E1Ry1sVkdydzVQYThWVG04V2dKV3YwZVJXM1pYVmpnIn0.eyJleHAiOjE2NDAzMzAxOTIsImlhdCI6MTY0MDMyOTg5MiwianRpIjoiOWI2ZjE3NWMtNjExZC00MTRiLWI5YTAtNzc1MWF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m0JyZ77ybNb8' \
--header 'Content-Type: application/json' \
--data-raw '{
"requestId": "fac311c7-a6d9-4326-88e8-a6529d50f962",
"hip": {
"id": "CoWIN_HIP_01"
},
"unverifiedIdentifiers": [
{
"type": "MR",
"value": "+919811096838"
}
]
}'
This is also not working, can you check ?
Thanks!
Hey @gagangupta,
can’t see logs for this particular hit.
Can you confirm if this is your cowin registered no.
Hey @Shubhanshu_Shukla,
Could you please post here what was the resolution to this issue? I was trying the one you suggested and couldn’t get the records for Cowin and got same error.
Request
curl --location --request POST 'https://dev.ndhm.gov.in/cm/v1/care-contexts/discover' \
--header 'X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI0Ni0wMjA1LTg1NTYtNjgxNyIsImNsaWVudElkIjoiU0JYXzAwMDMyNCIsIm1vYmlsZSI6Ijk5NzA1MjA3MjIiLCJoZWFsdGhJZCI6ImJvYnRoZWJ1aWxkZXJAc2J4IiwiZXhwIjoxNjQ0MjM3ODA0LCJoZWFsdGhJZE51bWJlciI6IjQ2LTAyMDUtODU1Ni02ODE3IiwiaWF0IjoxNjQ0MjM2MDA0fQ.Trczk2SkEFTacZ2EK9DbbiDW4W4Komd2x608yyRUVVzeuIX1zTkap7zcEK-IX9P4IWXUM0gwn_IF6D8eYzWVfvPon4Wi8-SMm5ab5Ce6kWcNm_xOhF48FJruPbsdnu2YkXi9JyJRpEkxCeTWQMxzgYkkrOwqtVMoZzbWCLgMB6ThIRZYn8Pdn3lOxTf5YqEGD6Etwt0LhsHLaFerd6A9qzE_IfSzzEprdLyVogZ6HCyFWF747gzBeMQudWg4ZHQy7pWOZXia0wAxrojoCFiDRNyle68mfTARFZBejyYJLs1UqndeuZS-yG0UM-O2N4DtQ6RVFKGujg686EbOp7eeCJj-bWskPMLHZ52fyfMAmt6VnZCS81zfaIq4fvgs7fqIqd58XYNP8BeV5v-nIr0dVu52Yyo40u8xPk9j29aXqyZYAy_FQsy1cELHk65oeUIp7uzF8Tec2NLSAv6blS6Pn8rMOrhoaoUOfkQljGa30rPR1XeFt1G2hpxbM261zyjzlZ9LAZ7_Hc-kE8bpUPL9JD18czdcawMFAeF7yERfWSLodDDmLXl5qSEXmaRCZQ-mDoPPW5MUMz6km64awBmhWn7LfKMdygnoS2Hpg737fECiS-6oqD3eo9KRdKRO5MFSsBPG2-IroNXNhj2dXg3wc8ftSNpYW1fbxfskuLK3Td8' \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
--data-raw '{
"requestId": "21aaa8e8-5ba3-4539-ad5b-aec8548374ae",
"hip": {
"id": "CoWINSIT"
},
"unverifiedIdentifiers": [
{
"type": "MR",
"value": "+919970520722"
}
]
}'
Response
{
"error": {
"code": 1500,
"message": "Could not find the user details"
}
}
Other payloads I tried:
A
{
"requestId": "94777222-992b-49b6-baff-dfbb6b9a6f7f",
"hip": {
"id": "CoWINSIT"
},
"verifiedIdentifiers": [
{
"type": "MR",
"value": "+919970520722"
}
]
}
B
{
"requestId": "20d96aa3-2b6b-4319-be2d-15f3bba2274f",
"hip": {
"id": "CoWINSIT"
},
"verifiedIdentifiers": [
{
"type": "MOBILE",
"value": "+919970520722"
}
]
}
Thanks,
Ayush