we have successfully added subscription for an health ID, but we are not receiving subscription notification in ‘/v0.5/subscriptions/hiu/notify’ api as callback.
SUBSCRIPTION FLOW WE TRIED
https://dev.ndhm.gov.in/gateway/v0.5/subscription-requests/cm/init
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/subscription-requests/cm/init’
–header ‘accept: /’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzI4MDk0NzEsImlhdCI6MTYzMjgwODg3MSwianRpIjoiZjllOGYxZDEtMmQ3MC00MDM5LTlmYjQtMTRhYjVhOWM2MTQ2IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI4OGI5MDBmNC1iN2ZiLTQ2ZDktYTZjNi1hZmE1MWYxZTk0MzAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMzM0Iiwic2Vzc2lvbl9zdGF0ZSI6IjhjNTQyZjgxLTI3YjgtNDg4YS1iNTYwLThmNTIxNTA4NjUzOSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDAzMzQiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDAzMzQiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImNsaWVudEhvc3QiOiIxMC4yMzMuNjkuMjciLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMDMzNCIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMjcifQ.JfyJoLJXeCxZucasrWyofIEfL3E6dYO3c4bgUVYKX3xXlLNNiTnvfSp_vRNOdnIOpzZz5O2yfdRKjipJupjcO0JwxAtfH0V6SZYGQ_Ze6x8Kbgqmu4xMyDGByIdMxocMvNCyCltkOVUP6CdmKGaj41qh6HIt2bunQMZHV1hB5d2W3yAV32EiTpqfX4M2ec8iA9_cUa8ojnID6UCZoJdx28KGjBBhS_oHPbm0gYw-PlWGS55HulwGqyfwecxTUf5E_IDoHGeB5rX90XkNIh2NeRaJD4jv2m04p5elXoMRxCz4ShhwBnZLqAThH2zKdabiPKGlQJj9UIaUht-7yH1pQw’
–header ‘Cookie: TS01960242=01115a1c90f7e41428562a520a99493183cb4b4aa9c1f5fe6294e582e476a7f27392cfceace143653bf46be5f037ec553ead47f012’
–data-raw '{
“requestId”: “94e1aebd-9ab1-42d3-9a7d-a544d60ae965”,
“timestamp”: “2021-09-28T06:08:25.636000”,
“subscription”: {
“purpose”: {
“text”: “test-2”,
“code”: “test-2”
},
“patient”: {
“id”: “gggg@sbx”
},
“hiu”: {
“id”: “avyaan”
},
“categories”: [
“LINK”,
“DATA”
],
“period”: {
“from”: “2010-02-12T09:16:34.533Z”,
“to”: “2022-09-22T14:13:34.533Z”
}
}
}
subscription-requests/hiu/on-init
{
“method”: “POST”,
“path”: “/v0.5/subscription-requests/hiu/on-init”,
“query”: {},
“headers”: {
“x-forwarded-for”: “14.143.232.140”,
“x-forwarded-proto”: “https”,
“x-forwarded-port”: “443”,
“host”: “c68cb0d65093681c501ebc9ac105e3f5.m.pipedream.net”,
“x-amzn-trace-id”: “Root=1-6152aff7-470807c84bed990a1645568e”,
“content-length”: “234”,
“user-agent”: “ReactorNetty/0.9.7.RELEASE”,
“accept”: “/”,
“content-type”: “application/json”,
“authorization”: “Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzI4MDkzNzgsImlhdCI6MTYzMjgwODc3OCwianRpIjoiZGY0NDVkNmItYWQ5OC00MTZmLTk3MTMtYzM2YzA2OTRiMjFiIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjMmQ5Y2EwMC01NDE4LTQ4ZjctODg2Zi03YjQzOTg1MGI4YzMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJnYXRld2F5Iiwic2Vzc2lvbl9zdGF0ZSI6IjYzYWJjY2FhLWRiYjUtNDNjYS04MjlmLTgwNmMzNDFlYjBmZSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDAzIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoZnIiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiZ2F0ZXdheSJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfSwiZ2F0ZXdheSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY4LjIwOCIsImNsaWVudElkIjoiZ2F0ZXdheSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWdhdGV3YXkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY4LjIwOCJ9.DK2VIGc61Co6QTfpG-BoqHRamgtbADuW3Zy_PEt0ZBGG7vLbqLySJg5KpstBPqs_5Wc0sQOf31hpcq-wIDZuC89UdHKs-8ab3JUc4YBdbc5ZDzg_D4pd-_5Vsh-HM2pBZt0gmMbPV0cvAuYXaMHGXI-B25ONdZ_mLVSvHgI40jPTUqxQXUumiCR03F9-iA0fuuZd_Y5nCHshM2OiOhtwK_TP0bAqR3pRFS5VwtZrgv097Rl-6spubvhOTgUVDWWIK03YDZ3tvESkSCidcY6io52u-Fqc1l89NOVN6AjzfedS9D8zslgMGkAPoEc6V4hLeP7ZBdL-ILeAjCo1pCdFuQ”,
“correlation-id”: “4a647f58-c811-4b67-a89c-7b306257e965”,
“x-hiu-id”: “avyaan”
},
“bodyRaw”: “{“requestId”:“1da7bdbf-4f2e-49dd-9596-6b9c4a10026c”,“timestamp”:“2021-09-28T06:02:30.644982”,“subscriptionRequest”:{“id”:“bf80c974-de86-4295-bbc3-cf6059d93a35”},“error”:null,“resp”:{“requestId”:“94e1aebd-9ab1-42d3-9a7d-a544d60ae965”}}”,
“body”: {
“requestId”: “1da7bdbf-4f2e-49dd-9596-6b9c4a10026c”,
“timestamp”: “2021-09-28T06:02:30.644982”,
“subscriptionRequest”: {
“id”: “bf80c974-de86-4295-bbc3-cf6059d93a35”
},
“error”: null,
“resp”: {
“requestId”: “94e1aebd-9ab1-42d3-9a7d-a544d60ae965”
}
}
}
subscription-requests/hiu/notify
{
“method”: “POST”,
“path”: “/v0.5/subscription-requests/hiu/notify”,
“query”: {},
“headers”: {
“x-forwarded-for”: “14.143.232.140”,
“x-forwarded-proto”: “https”,
“x-forwarded-port”: “443”,
“host”: “c68cb0d65093681c501ebc9ac105e3f5.m.pipedream.net”,
“x-amzn-trace-id”: “Root=1-6152b03e-7c0fdc236c2db2942f173d92”,
“content-length”: “477”,
“user-agent”: “ReactorNetty/0.9.7.RELEASE”,
“accept”: “/”,
“content-type”: “application/json”,
“authorization”: “Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzI4MDk1NzMsImlhdCI6MTYzMjgwODk3MywianRpIjoiMDlkNzljM2MtMmM2YS00YmJkLWI0OGUtYTkyY2E0MGJkNzhlIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjMmQ5Y2EwMC01NDE4LTQ4ZjctODg2Zi03YjQzOTg1MGI4YzMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJnYXRld2F5Iiwic2Vzc2lvbl9zdGF0ZSI6IjdjYzA4M2E4LTU4N2ItNGE4Mi1hMDc4LWIzZjdiMjczNmFhOCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDAzIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoZnIiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiZ2F0ZXdheSJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfSwiZ2F0ZXdheSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3LjY2IiwiY2xpZW50SWQiOiJnYXRld2F5IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtZ2F0ZXdheSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjcuNjYifQ.A8no91yN5LARdM9lewUq8mEQW8KqHBGG8VKlCqoKCIrG_4L8JpFvDvJSjlfPafvbH-57kefcmBOXunZTyR5FcoceC1Hf44Ie5gaHqv2a1t090_YYYkO-B48YBVEx9jjqvugmUllVUMyR0kkIbl6nRd4Jz6I5nHm2FPkxSVQp4sWX1Z7gjKk_vRhD6tUMShPb6j33v92_IfbxX7HA6VZne8k9C6ag7zVvVAWQsTMgoMuvV_q9zk-KPW-Rm7GnbBtaRbkWn68vRXRMzm0VcMvzS74wOzPbly78sOfXJOXCmEZueV_22YP8zYoAlWYHyBZCiKMWdBJr5QaS8EBN8p2iWQ”,
“correlation-id”: “85c90fcc-c908-47d2-b6ff-934006f433bd”,
“x-hiu-id”: “avyaan”
},
“bodyRaw”: “{“requestId”:“a8eec332-ba35-4058-9809-b9ad8018f695”,“timestamp”:“2021-09-28T06:03:41.866591”,“notification”:{“subscriptionRequestId”:“bf80c974-de86-4295-bbc3-cf6059d93a35”,“status”:“GRANTED”,“subscription”:{“id”:“a97892de-f561-4c92-93d6-a8d47113a970”,“patient”:{“id”:“gggg@sbx”},“hiu”:{“id”:“avyaan”,“name”:“codemischief”},“sources”:[{“hip”:{“id”:“avyaan”,“name”:null},“categories”:[“LINK”,“DATA”],“period”:{“from”:“2010-02-12T09:16:34.533”,“to”:“2022-09-22T14:13:34.533”}}]}}}”,
“body”: {
“requestId”: “a8eec332-ba35-4058-9809-b9ad8018f695”,
“timestamp”: “2021-09-28T06:03:41.866591”,
“notification”: {
“subscriptionRequestId”: “bf80c974-de86-4295-bbc3-cf6059d93a35”,
“status”: “GRANTED”,
“subscription”: {
“id”: “a97892de-f561-4c92-93d6-a8d47113a970”,
“patient”: {
“id”: “gggg@sbx”
},
“hiu”: {
“id”: “avyaan”,
“name”: “codemischief”
},
“sources”: [
{
“hip”: {
“id”: “avyaan”,
“name”: null
},
“categories”: [
“LINK”,
“DATA”
],
“period”: {
“from”: “2010-02-12T09:16:34.533”,
“to”: “2022-09-22T14:13:34.533”
}
}
]
}
}
}
}
https://dev.ndhm.gov.in/gateway/v0.5/subscription-requests/hiu/on-notify
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/subscription-requests/hiu/on-notify’
–header ‘accept: /’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzI4MTgxNzksImlhdCI6MTYzMjgxNzU3OSwianRpIjoiZTQwNzNlMmItYmJjYS00NDUwLWI3MWMtMTk3NTgwZTYwY2ZjIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI4OGI5MDBmNC1iN2ZiLTQ2ZDktYTZjNi1hZmE1MWYxZTk0MzAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMzM0Iiwic2Vzc2lvbl9zdGF0ZSI6ImFiYmY3MTFlLWRmNzYtNGI4Zi1iMTY2LWY1N2ExNmUzNjdiMiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDAzMzQiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDAzMzQiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImNsaWVudEhvc3QiOiIxMC4yMzMuNjkuMjciLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMDMzNCIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMjcifQ.NUcKu_ZCR5olX4cc7RliVYCSF6CLvmasyKrpkNnJJm9AlHQw0hA-aNgqtT9EIgZ5YDHquBNn1jLsa4CVlq27lCLs93UclHxM7vDBHUWAWtMTelBwaPX6Z7w2O-qGz0P-QxsNODrwjY61D0r2Gi7kq7uetkZvRZn_P_m6YPA1GAWUZAD3h6Fyu9w2Q66paSzgmfbU7ZfkEx7RLo6DolfWoEw6OO5Ypo62y6YU34EAE04-lR8sYanfrmuSI8GRJ0KkZ0n_qlEsW2NLJ-sc88cm0XFt_e-iVndVKxBtj2Fww5mJUl7oEH-GkdWzAqiVat8Pa_4-90nLJDLFfWVHx49sJA’
–header ‘Cookie: TS01960242=01115a1c90f7e41428562a520a99493183cb4b4aa9c1f5fe6294e582e476a7f27392cfceace143653bf46be5f037ec553ead47f012’
–data-raw '{
“requestId”: “f43941b5-a427-439d-ab7c-004d67506673”,
“timestamp”: “2021-09-28T08:26:27.930000”,
“acknowledgement”: {
“status”: “OK”,
“subscriptionRequestId”: “bf80c974-de86-4295-bbc3-cf6059d93a35”
},
“resp”: {
“requestId”: “a8eec332-ba35-4058-9809-b9ad8018f695”
}
}
CREATING A LINKING TOKEN & ADDING CARE-CONTEXT
https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init’
–header ‘accept: /’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzI4MTgxNzksImlhdCI6MTYzMjgxNzU3OSwianRpIjoiZTQwNzNlMmItYmJjYS00NDUwLWI3MWMtMTk3NTgwZTYwY2ZjIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI4OGI5MDBmNC1iN2ZiLTQ2ZDktYTZjNi1hZmE1MWYxZTk0MzAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMzM0Iiwic2Vzc2lvbl9zdGF0ZSI6ImFiYmY3MTFlLWRmNzYtNGI4Zi1iMTY2LWY1N2ExNmUzNjdiMiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDAzMzQiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDAzMzQiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImNsaWVudEhvc3QiOiIxMC4yMzMuNjkuMjciLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMDMzNCIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMjcifQ.NUcKu_ZCR5olX4cc7RliVYCSF6CLvmasyKrpkNnJJm9AlHQw0hA-aNgqtT9EIgZ5YDHquBNn1jLsa4CVlq27lCLs93UclHxM7vDBHUWAWtMTelBwaPX6Z7w2O-qGz0P-QxsNODrwjY61D0r2Gi7kq7uetkZvRZn_P_m6YPA1GAWUZAD3h6Fyu9w2Q66paSzgmfbU7ZfkEx7RLo6DolfWoEw6OO5Ypo62y6YU34EAE04-lR8sYanfrmuSI8GRJ0KkZ0n_qlEsW2NLJ-sc88cm0XFt_e-iVndVKxBtj2Fww5mJUl7oEH-GkdWzAqiVat8Pa_4-90nLJDLFfWVHx49sJA’
–header ‘Cookie: TS01960242=01115a1c90f7e41428562a520a99493183cb4b4aa9c1f5fe6294e582e476a7f27392cfceace143653bf46be5f037ec553ead47f012’
–data-raw '{
“requestId”: “0125f4a8-927b-4c7b-88e0-62568c131e31”,
“timestamp”: “2021-09-28T08:26:27.930000”,
“query”: {
“id”: “gggg@sbx”,
“purpose”: “KYC_AND_LINK”,
“authMode”: “DIRECT”,
“requester”: {
“type”: “HIP”,
“id”: “avyaan”
}
}
}
/users/auth/on-init
{
“method”: “POST”,
“path”: “/v0.5/users/auth/on-init”,
“query”: {},
“headers”: {
“x-forwarded-for”: “14.143.232.140”,
“x-forwarded-proto”: “https”,
“x-forwarded-port”: “443”,
“host”: “c68cb0d65093681c501ebc9ac105e3f5.m.pipedream.net”,
“x-amzn-trace-id”: “Root=1-6152b0d4-64292d067245bc2979733ab2”,
“content-length”: “304”,
“user-agent”: “ReactorNetty/0.9.7.RELEASE”,
“accept”: “/”,
“content-type”: “application/json”,
“auth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saWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMjcifQ.KVU-S5EDtU2Rkpl-b628g9cLwJpZ-mM11qIWMp49m_FD3JO_Xuz-Bt-cvdWje_6QVZaP8zWB5HETJK0oZvD0tbLSrDu5SKbcgg9cVh1WJGnPNG1DDZJUBjexU4PHg8RGyipJUm8Lsv_9n7gXvVCbInNMWzCuc5fN4s-pEY0lDfKElG71SCm767mLRxZspvkOuXuqjPZCejl7b6kJTV7QitlNFaRvBivB7meTdrLJ-VHgHvOFKI4C4RzQfuYsdaQ2OhxaLDgq_s-76mXUsYUa5DP3b_SZnN7RG9i6ihGLzlyHbbIMgLSLNovHPdDi1NvHDatz-il_68JDXTr9sdKs9A”,
“correlation-id”: “1a0b4eac-dd10-4c05-b6e3-915647db3e66”,
“x-hip-id”: “avyaan”
},
“bodyRaw”: “{“requestId”:“e1a30b1d-6db7-40b1-bd0c-cfdd3afd89ef”,“timestamp”:“2021-09-28T06:06:12.20203”,“auth”:{“transactionId”:“2e807e18-86df-4b16-8655-fb38a3e4d984”,“mode”:“DIRECT”,“meta”:{“hint”:null,“expiry”:“2021-09-28T08:06:12.202037”}},“error”:null,“resp”:{“requestId”:“0125f4a8-927b-4c7b-88e0-62568c131e31”}}”,
“body”: {
“requestId”: “e1a30b1d-6db7-40b1-bd0c-cfdd3afd89ef”,
“timestamp”: “2021-09-28T06:06:12.20203”,
“auth”: {
“transactionId”: “2e807e18-86df-4b16-8655-fb38a3e4d984”,
“mode”: “DIRECT”,
“meta”: {
“hint”: null,
“expiry”: “2021-09-28T08:06:12.202037”
}
},
“error”: null,
“resp”: {
“requestId”: “0125f4a8-927b-4c7b-88e0-62568c131e31”
}
}
}
/users/auth/notify
{
“method”: “POST”,
“path”: “/v0.5/users/auth/notify”,
“query”: {},
“headers”: {
“x-forwarded-for”: “14.143.232.140”,
“x-forwarded-proto”: “https”,
“x-forwarded-port”: “443”,
“host”: “c68cb0d65093681c501ebc9ac105e3f5.m.pipedream.net”,
“x-amzn-trace-id”: “Root=1-6152b0e5-05fa43e544fac71e47372396”,
“content-length”: “1184”,
“user-agent”: “ReactorNetty/0.9.7.RELEASE”,
“accept”: “/”,
“content-type”: “application/json”,
“authorization”: “Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzI4MDk3NzIsImlhdCI6MTYzMjgwOTE3MiwianRpIjoiMjNjNDQ5YWEtODMzMi00ZmRmLTlhOWYtOTQ0NDUxN2E3OWZhIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjMmQ5Y2EwMC01NDE4LTQ4ZjctODg2Zi03YjQzOTg1MGI4YzMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJnYXRld2F5Iiwic2Vzc2lvbl9zdGF0ZSI6ImIwNDc1MThkLTMwZjAtNGJjNC04NTkzLTVmYTI5OThkZTJiNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDAzIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoZnIiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiZ2F0ZXdheSJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfSwiZ2F0ZXdheSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5LjI3IiwiY2xpZW50SWQiOiJnYXRld2F5IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtZ2F0ZXdheSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMjcifQ.KVU-S5EDtU2Rkpl-b628g9cLwJpZ-mM11qIWMp49m_FD3JO_Xuz-Bt-cvdWje_6QVZaP8zWB5HETJK0oZvD0tbLSrDu5SKbcgg9cVh1WJGnPNG1DDZJUBjexU4PHg8RGyipJUm8Lsv_9n7gXvVCbInNMWzCuc5fN4s-pEY0lDfKElG71SCm767mLRxZspvkOuXuqjPZCejl7b6kJTV7QitlNFaRvBivB7meTdrLJ-VHgHvOFKI4C4RzQfuYsdaQ2OhxaLDgq_s-76mXUsYUa5DP3b_SZnN7RG9i6ihGLzlyHbbIMgLSLNovHPdDi1NvHDatz-il_68JDXTr9sdKs9A”,
“correlation-id”: “43d72d8e-7cb9-4243-b9cc-4412ea007134”,
“x-hip-id”: “avyaan”
},
“bodyRaw”: “{“requestId”:“8cd12ff7-1423-4fbd-a9f9-3688707042a2”,“timestamp”:“2021-09-28T06:06:29.511499”,“auth”:{“transactionId”:“2e807e18-86df-4b16-8655-fb38a3e4d984”,“status”:“GRANTED”,“accessToken”:“eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI1Mi04NDE0LTExNTItODY2OCIsInJlcXVlc3RlclR5cGUiOiJISVAiLCJyZXF1ZXN0ZXJJZCI6ImF2eWFhbiIsInBhdGllbnRJZCI6IjUyLTg0MTQtMTE1Mi04NjY4Iiwic2Vzc2lvbklkIjoiOTI2ZjA2MmQtMWQ3OS00ZDI4LTg3YzEtZGIxN2EzOTk0MDUyIiwiZXhwIjoxNjMyODk1NTg5LCJpYXQiOjE2MzI4MDkxODl9.hopbrEk4eKMTl-f3xTh_qrC5lghbXELdPHDR2ZG3n-Y0-M139n0yHj5Ri8ZHVy6Gmgt3C38Vvjj6jbdgHHTB227RgCxZI4CyvHbA0lP306znFHg0RWbId0YwuKD8OsvYN3scmGO0i6g68P8HwTVvOt3aV5WUziWtpBqyWAuAHoVvu5cwQW5eviixNNwoq3OwQTlujFhrgxewIAZPEWDgPrnIVDOVkRLKOWJuQDG6L55izBl2ajK5Mqs3ViAcptmoQxjD1gSB3IGUa3JY-NmqzysNjpvsYSrRbhSyGxuP4k5FzqgIEZVJGmW2Ajx8SdxTVOeKXkiPD_biV7ahGbUKvw”,“validity”:{“purpose”:“KYC_AND_LINK”,“requester”:{“type”:“HIP”,“id”:“avyaan”,“name”:null},“expiry”:“2022-09-28T06:06:29.511358”,“limit”:1},“patient”:{“id”:“gggg@sbx”,“name”:“Aka”,“gender”:“M”,“yearOfBirth”:2001,“address”:{“line”:null,“district”:“AMRAVATI”,“state”:“MAHARASHTRA”,“pincode”:null},“healthIdNumber”:null,“identifiers”:[{“type”:“MOBILE”,“value”:”+919324249592"}]}}}",
“body”: {
“requestId”: “8cd12ff7-1423-4fbd-a9f9-3688707042a2”,
“timestamp”: “2021-09-28T06:06:29.511499”,
“auth”: {
“transactionId”: “2e807e18-86df-4b16-8655-fb38a3e4d984”,
“status”: “GRANTED”,
“accessToken”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI1Mi04NDE0LTExNTItODY2OCIsInJlcXVlc3RlclR5cGUiOiJISVAiLCJyZXF1ZXN0ZXJJZCI6ImF2eWFhbiIsInBhdGllbnRJZCI6IjUyLTg0MTQtMTE1Mi04NjY4Iiwic2Vzc2lvbklkIjoiOTI2ZjA2MmQtMWQ3OS00ZDI4LTg3YzEtZGIxN2EzOTk0MDUyIiwiZXhwIjoxNjMyODk1NTg5LCJpYXQiOjE2MzI4MDkxODl9.hopbrEk4eKMTl-f3xTh_qrC5lghbXELdPHDR2ZG3n-Y0-M139n0yHj5Ri8ZHVy6Gmgt3C38Vvjj6jbdgHHTB227RgCxZI4CyvHbA0lP306znFHg0RWbId0YwuKD8OsvYN3scmGO0i6g68P8HwTVvOt3aV5WUziWtpBqyWAuAHoVvu5cwQW5eviixNNwoq3OwQTlujFhrgxewIAZPEWDgPrnIVDOVkRLKOWJuQDG6L55izBl2ajK5Mqs3ViAcptmoQxjD1gSB3IGUa3JY-NmqzysNjpvsYSrRbhSyGxuP4k5FzqgIEZVJGmW2Ajx8SdxTVOeKXkiPD_biV7ahGbUKvw”,
“validity”: {
“purpose”: “KYC_AND_LINK”,
“requester”: {
“type”: “HIP”,
“id”: “avyaan”,
“name”: null
},
“expiry”: “2022-09-28T06:06:29.511358”,
“limit”: 1
},
“patient”: {
“id”: “gggg@sbx”,
“name”: “Aka”,
“gender”: “M”,
“yearOfBirth”: 2001,
“address”: {
“line”: null,
“district”: “AMRAVATI”,
“state”: “MAHARASHTRA”,
“pincode”: null
},
“healthIdNumber”: null,
“identifiers”: [
{
“type”: “MOBILE”,
“value”: “+91**********”
}
]
}
}
}
}
https://dev.ndhm.gov.in/gateway/v0.5/links/link/add-contexts
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/links/link/add-contexts’
–header ‘accept: /’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzI4MTgxNzksImlhdCI6MTYzMjgxNzU3OSwianRpIjoiZTQwNzNlMmItYmJjYS00NDUwLWI3MWMtMTk3NTgwZTYwY2ZjIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI4OGI5MDBmNC1iN2ZiLTQ2ZDktYTZjNi1hZmE1MWYxZTk0MzAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMzM0Iiwic2Vzc2lvbl9zdGF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a7f27392cfceace143653bf46be5f037ec553ead47f012’
–data-raw '{
“requestId”: “0bb3bcf3-7f2e-46d5-975d-80a82d954a3a”,
“timestamp”: “2021-09-28T08:26:27.930000”,
“link”: {
“accessToken”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI1Mi04NDE0LTExNTItODY2OCIsInJlcXVlc3RlclR5cGUiOiJISVAiLCJyZXF1ZXN0ZXJJZCI6ImF2eWFhbiIsInBhdGllbnRJZCI6IjUyLTg0MTQtMTE1Mi04NjY4Iiwic2Vzc2lvbklkIjoiOTI2ZjA2MmQtMWQ3OS00ZDI4LTg3YzEtZGIxN2EzOTk0MDUyIiwiZXhwIjoxNjMyODk1NTg5LCJpYXQiOjE2MzI4MDkxODl9.hopbrEk4eKMTl-f3xTh_qrC5lghbXELdPHDR2ZG3n-Y0-M139n0yHj5Ri8ZHVy6Gmgt3C38Vvjj6jbdgHHTB227RgCxZI4CyvHbA0lP306znFHg0RWbId0YwuKD8OsvYN3scmGO0i6g68P8HwTVvOt3aV5WUziWtpBqyWAuAHoVvu5cwQW5eviixNNwoq3OwQTlujFhrgxewIAZPEWDgPrnIVDOVkRLKOWJuQDG6L55izBl2ajK5Mqs3ViAcptmoQxjD1gSB3IGUa3JY-NmqzysNjpvsYSrRbhSyGxuP4k5FzqgIEZVJGmW2Ajx8SdxTVOeKXkiPD_biV7ahGbUKvw”,
“patient”: {
“referenceNumber”: “TEST”,
“display”: “TEST”,
“careContexts”: [
{
“referenceNumber”: “28/09-test-3”,
“display”: “28-sept-OPD-test-3”
}
]
}
}
}
/links/link/on-add-contexts
{
“method”: “POST”,
“path”: “/v0.5/links/link/on-add-contexts”,
“query”: {},
“headers”: {
“x-forwarded-for”: “14.143.232.140”,
“x-forwarded-proto”: “https”,
“x-forwarded-port”: “443”,
“host”: “c68cb0d65093681c501ebc9ac105e3f5.m.pipedream.net”,
“x-amzn-trace-id”: “Root=1-6152b15c-478229af1561f68c210daed2”,
“content-length”: “203”,
“user-agent”: “ReactorNetty/0.9.7.RELEASE”,
“accept”: “/”,
“content-type”: “application/json”,
“authorization”: “Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MzI4MDk3NzIsImlhdCI6MTYzMjgwOTE3MiwianRpIjoiMjNjNDQ5YWEtODMzMi00ZmRmLTlhOWYtOTQ0NDUxN2E3OWZhIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjMmQ5Y2EwMC01NDE4LTQ4ZjctODg2Zi03YjQzOTg1MGI4YzMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJnYXRld2F5Iiwic2Vzc2lvbl9zdGF0ZSI6ImIwNDc1MThkLTMwZjAtNGJjNC04NTkzLTVmYTI5OThkZTJiNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDAzIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoZnIiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiZ2F0ZXdheSJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfSwiZ2F0ZXdheSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5LjI3IiwiY2xpZW50SWQiOiJnYXRld2F5IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtZ2F0ZXdheSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMjcifQ.KVU-S5EDtU2Rkpl-b628g9cLwJpZ-mM11qIWMp49m_FD3JO_Xuz-Bt-cvdWje_6QVZaP8zWB5HETJK0oZvD0tbLSrDu5SKbcgg9cVh1WJGnPNG1DDZJUBjexU4PHg8RGyipJUm8Lsv_9n7gXvVCbInNMWzCuc5fN4s-pEY0lDfKElG71SCm767mLRxZspvkOuXuqjPZCejl7b6kJTV7QitlNFaRvBivB7meTdrLJ-VHgHvOFKI4C4RzQfuYsdaQ2OhxaLDgq_s-76mXUsYUa5DP3b_SZnN7RG9i6ihGLzlyHbbIMgLSLNovHPdDi1NvHDatz-il_68JDXTr9sdKs9A”,
“correlation-id”: “af5e79de-7708-4355-a5d1-61321671c994”,
“x-hip-id”: “avyaan”
},
“bodyRaw”: “{“requestId”:“5279c274-6bc9-4394-b477-36f1b97efa18”,“timestamp”:“2021-09-28T06:08:27.4312”,“acknowledgement”:{“status”:“SUCCESS”},“error”:null,“resp”:{“requestId”:“0bb3bcf3-7f2e-46d5-975d-80a82d954a3a”}}”,
“body”: {
“requestId”: “5279c274-6bc9-4394-b477-36f1b97efa18”,
“timestamp”: “2021-09-28T06:08:27.4312”,
“acknowledgement”: {
“status”: “SUCCESS”
},
“error”: null,
“resp”: {
“requestId”: “0bb3bcf3-7f2e-46d5-975d-80a82d954a3a”
}
}
}
Post creating a care-context, we are not receiving any callback in /v0.5/subscriptions/hiu/notify.Please have a look at this issue.I hope the above information is enough.