Not getting callback on bridge url during add care contexts

Hi,

I am trying to add care context using the URL - https://dev.ndhm.gov.in/gateway/v0.5/links/link/add-contexts . I am getting the OTP on my mobile number but I am not getting a callback on my bridge URL. As for further process. I need the transaction id and that I will receive in the callback URL. I tested my bridge URL is working fine for other cases. Previously, it was working fine but now it is not. Can you please check? @IntegrationSupport

Thank You

This is working fine. Can you please share the payload and postman screenshot for us to check?

Just to ensure you are correctly calling the API, may refer below:

/v0.5/links/link/add-contexts:

curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/links/link/add-contexts’
–header ‘X-CM-ID: sbx’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Njk2MzQ2NTksImlhdCI6MTY2OTYzNDA1OSwianRpIjoiZTQyNDYxOTctZjJkNS00ZmNkLTgzMzctZWU1MjI0YzY3N2RmIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxZWNkZGZiZS02ZTZhLTQ4YjAtYWI2My03ODY1Y2I3MzM4YTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJHT1ZJTkRfTFRJIiwic2Vzc2lvbl9zdGF0ZSI6ImFmMzkyNTUxLTcxZTctNDY1My1hOGM0LWIzOGRiODJmYzU1NiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImNtIiwiaGVhbHRoSWQiLCJPSURDIiwiZ2F0ZXdheSIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfSwiR09WSU5EX0xUSSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IkdPVklORF9MVEkiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5LjQ2IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtZ292aW5kX2x0aSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuNDYifQ.OrAbUc3cQZ9xa10mMygUzJ_KTbhA0tv6ZfjhXFyQW8_dIGdbxayZpo7MK80-qLkbhXh_10j_YkV7ODwtGi22Z6AZFFvapbHX1Ilk_Og_Qbe7x6VhqlsrsyYnPrbu2h0WT4G3QWR99VIZWZn7mWxkwH1a7Z3BZn3_0kzMgYiYO4HvHHKXi3bGMnyyjiaNl5j745ppBlEzHWdrf795CpefzjYnawOcOU6BKnnxdVHR212mV5KoNEWImx7dOw-xiNIxobMnAZy2jh65oXewmfv2n5znxM9bqsfXvsToNMZbBKbUlhFVOJHjHMbqvrFTzJ8knwKG9vmsa62hf4n0OFwXqw’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01445fed04b588ff87c8dc3bc9727210a20d1086e92d267b14316b4295c9c11ad6cc8b2de2c56c42324541871a7215447c49e1fd29’
–data-raw ‘{
“requestId”: “e734b9fb-b674-4fa1-b268-aaf8cdf455a6”,
“timestamp”: “2022-11-28T11:17:21.578000”,
“link”: {
“accessToken”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJnZGVzaG11a2hAc2J4IiwicmVxdWVzdGVyVHlwZSI6IkhJUCIsInJlcXVlc3RlcklkIjoiR05ELUhJUCIsInBhdGllbnRJZCI6ImdkZXNobXVraEBzYngiLCJzZXNzaW9uSWQiOiJmMzE3NjViOC01NTkxLTQ5NmYtODkwZi0wODA2YTkxYjk0M2EiLCJleHAiOjE2Njk3MjA1ODgsImlhdCI6MTY2OTYzNDE4OH0.WGDqrQFmYI88Mk0n96phlBceiY4yyfZTMa1Jkk9xn3ulFT_PIU8jWZLMVDY1pf0t9TXR_Hy9dXdO0cNVY7-wUoeg0Jz9Iam1YaEY-clPns7eDz6KlkTzUBB_nP8rpKWvXfX-NwGeqad2q3w3j8seAFWQBBidEh-Vr4ivJOsa_U6IBNiYcklDalTAaauPmJzchWV80wLMqq1RIcMBOJkeNT6hILdEbK2MIPe32Qi5WZpoBF55OP4icbYE9Vi70A3BJPqZf60cWeNskZiiA8QWg07p2gAMoyBGYdN3d_O7gj1a-ApeJQoat-nsoOd-wcyY7UehhI_dFMLj0h28rmxARw”,
“patient”: {
“referenceNumber”: “TMH-PUID-101”,
“display”: “Common Cold”,
“careContexts”: [
{
“referenceNumber”: “Common Cold”,
“display”: “Prescribed Paracetamol”
}
]
}
}
}’

/v0.5/links/link/on-add-contexts:

{
“requestId”: “9fe5c08e-9fa9-4de4-a212-947fa525975c”,
“timestamp”: “2022-11-28T11:17:22.958493”,
“acknowledgement”: {
“status”: “SUCCESS”
},
“error”: null,
“resp”: {
“requestId”: “574b9da5-7a5d-4ccb-aec8-119cf9cb4e14”
}
}

After calling, https://dev.ndhm.gov.in/gateway/v0.5/users/auth/init I am not getting the async call (https://dev.ndhm.gov.in/gateway/v0.5/users/auth/on-init) on my bridge URL. And for the confirm API i.e https://dev.ndhm.gov.in/gateway/0.5/users/auth/confirm I need txn_id which will be there in the async call. I am not able to proceed after init due to no txn_id.

Request Body for init call

{
“requestId”: “566cba81-3abb-4ebb-bcb7-616507494d01”,
“query”: {
“authMode”: “AADHAAR_OTP”,
“requester”: {
“id”: “IN0—018”,
“type”: “HIP”
},
“purpose”: “LINK”,
“id”: “91------6459”
},
“timestamp”: “2023-02-20T10:37:26.750”
}