@TataMDABDM
Please find below API once and try it once again if not please reply on the same.
/v0.5/users/auth/fetch-modes :
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/users/auth/fetch-modes’
–header ‘X-CM-ID: sbx’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NjkwOTg0ODcsImlhdCI6MTY2OTA5Nzg4NywianRpIjoiOTRmOTFjZjEtMmExZC00MzcyLWJjMTYtN2QxZGU4NjIzZTkyIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxZWNkZGZiZS02ZTZhLTQ4YjAtYWI2My03ODY1Y2I3MzM4YTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJHT1ZJTkRfTFRJIiwic2Vzc2lvbl9zdGF0ZSI6IjBiYWVhYjUxLWE0YjItNGU4MS05ZmNiLTJhNGFhN2UwYzU4YyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImNtIiwiaGVhbHRoSWQiLCJPSURDIiwiZ2F0ZXdheSIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfSwiR09WSU5EX0xUSSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IkdPVklORF9MVEkiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY4LjIwNSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWdvdmluZF9sdGkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY4LjIwNSJ9.hoxAUd8i51XD_qhEHqDUha74-_xIpGsSkDW0-n7KwZ_LzNWK_yeqRg0DMjSP4guMqm2dllAdgF0v7vUyXRePp8qWOcm7f-A6VKWqojU0mj-0VEUe4XTRsoEh7AXdxYSTWL4sNWzZFsUPgW_Z8HX5MEM9UeXdfXjMHHjlPMGoWXXYhhISCPGNqrK1sMbpVyL3SyT6L0OALcZGV9mFMBy-q4H1RAFy02p3ZwphBpCG_hR2K5bAXFLEx4tnnaN-GM5ELL8eRnMT7cNmdsNtDMJsX9q-CHU_72hh8T7MvCrTQlOgp2bt6idG1HyyUvK6m8cAM8bv1SBFdHWLrB3j5h4-Hw’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01445fed0466b2d8484b9eaefb816c88c8db64ddd87eb3b9067566396f264d6c21976db94813080b39d8ad5c4336beac177e704016’
–data-raw ‘{
“requestId”: “d3b1779c-f3a2-4078-ac59-7bbf7c7a0ece”,
“timestamp”: “2022-11-22T06:23:49.818000”,
“query”: {
“id”: “gdeshmukh@sbx”,
“purpose”: “KYC_AND_LINK”,
“requester”: {
“type”: “HIP”,
“id”: “GND-HIP”
}
}
}’
/v0.5/users/auth/on-fetch-modes
{
“requestId”: “bf8d1ecf-b0f8-46f8-a608-a968c5ce5c6b”,
“timestamp”: “2022-11-22T06:22:11.777112”,
“auth”: {
“purpose”: “KYC_AND_LINK”,
“modes”: [
“MOBILE_OTP”,
“PASSWORD”,
“DEMOGRAPHICS”
]
},
“error”: null,
“resp”: {
“requestId”: “6a940a1f-3678-427e-8122-38258a4b5ef6”
}
}
/v0.5/users/auth/init:
curl --location --request POST ‘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X3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWdvdmluZF9sdGkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY4LjIwNSJ9.hoxAUd8i51XD_qhEHqDUha74-_xIpGsSkDW0-n7KwZ_LzNWK_yeqRg0DMjSP4guMqm2dllAdgF0v7vUyXRePp8qWOcm7f-A6VKWqojU0mj-0VEUe4XTRsoEh7AXdxYSTWL4sNWzZFsUPgW_Z8HX5MEM9UeXdfXjMHHjlPMGoWXXYhhISCPGNqrK1sMbpVyL3SyT6L0OALcZGV9mFMBy-q4H1RAFy02p3ZwphBpCG_hR2K5bAXFLEx4tnnaN-GM5ELL8eRnMT7cNmdsNtDMJsX9q-CHU_72hh8T7MvCrTQlOgp2bt6idG1HyyUvK6m8cAM8bv1SBFdHWLrB3j5h4-Hw’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01445fed0466b2d8484b9eaefb816c88c8db64ddd87eb3b9067566396f264d6c21976db94813080b39d8ad5c4336beac177e704016’
–data-raw ‘{
“requestId”: “38d4acec-a4a2-414d-a330-1d4f12f67ae5”,
“timestamp”: “2022-11-22T06:23:49.818000”,
“query”: {
“id”: “gdeshmukh@sbx”,
“purpose”: “KYC_AND_LINK”,
“authMode”: “MOBILE_OTP”,
“requester”: {
“type”: “HIP”,
“id”: “GND-HIP”
}
}
}’
/v0.5/users/auth/on-init:
{
“requestId”: “72f9bf2b-f214-45aa-a489-d5e63adfb2fc”,
“timestamp”: “2022-11-22T06:22:30.300542”,
“auth”: {
“transactionId”: “85384e31-f244-497a-aad7-2a7b04cf82e2”,
“mode”: “MOBILE_OTP”,
“meta”: {
“hint”: null,
“expiry”: “2022-11-22T08:22:30.300545”
}
},
“error”: null,
“resp”: {
“requestId”: “131a205c-008c-4717-bcb8-9a57c9b2419d”
}
}
/v0.5/users/auth/confirm:
curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/users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wicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWdvdmluZF9sdGkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY4LjIwNSJ9.hoxAUd8i51XD_qhEHqDUha74-_xIpGsSkDW0-n7KwZ_LzNWK_yeqRg0DMjSP4guMqm2dllAdgF0v7vUyXRePp8qWOcm7f-A6VKWqojU0mj-0VEUe4XTRsoEh7AXdxYSTWL4sNWzZFsUPgW_Z8HX5MEM9UeXdfXjMHHjlPMGoWXXYhhISCPGNqrK1sMbpVyL3SyT6L0OALcZGV9mFMBy-q4H1RAFy02p3ZwphBpCG_hR2K5bAXFLEx4tnnaN-GM5ELL8eRnMT7cNmdsNtDMJsX9q-CHU_72hh8T7MvCrTQlOgp2bt6idG1HyyUvK6m8cAM8bv1SBFdHWLrB3j5h4-Hw’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01445fed04a64f6d53e683bd7010fe0c728f030d60135dde8e86a2c68fded7a103f0d017faf143f2d9ec19359940c1594acae160c0’
–data-raw ‘{
“requestId”: “4cff3181-51d3-452f-88da-9ed021c3d118”,
“timestamp”: “2022-11-22T06:23:49.818000”,
“transactionId”: “85384e31-f244-497a-aad7-2a7b04cf82e2”,
“credential”: {
“authCode”: “661578”
}
}’
/v0.5/users/auth/on-confirm:
{
“requestId”: “4659c05a-357f-417e-a27b-04d3a0912ddd”,
“timestamp”: “2022-11-22T06:23:16.760201”,
“auth”: {
“accessToken”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJnZGVzaG11a2hAc2J4IiwicmVxdWVzdGVyVHlwZSI6IkhJUCIsInJlcXVlc3RlcklkIjoiR05ELUhJUCIsInBhdGllbnRJZCI6ImdkZXNobXVraEBzYngiLCJzZXNzaW9uSWQiOiJlZWJjZWUxNS0xNmM3LTQxOTYtODY4ZC0xYTQyZDFjN2U0MjYiLCJleHAiOjE2NjkxODQ1OTYsImlhdCI6MTY2OTA5ODE5Nn0.MTwbRmRHD4iWYtGmHq6RIkWWyKDqRBdYv11D44gGhoZa-kuNzZ-rpnstl5YchXAECwLjbGt0AawsOS5eix2UvBS_9gi7ks6y_Fcc7Fdrt6N6_DcJSWlfwvr7iLNfkUl5d5fLxaZCmaV5tO75Q_9qCPeO9foGIy4iPAt8vQbOzDQedkiN0X0ZAHtiztkis9PKF2TjycxjJXthW2MmLiIT9UCmILb358bspT9JLfQEzyyf3KoWF0M9aI3inaQh4NNjr1xbi99SS2hZLKdHxemQbsgKMQ_p3eb7_VAhhStCfYYl4GEAR8_Ovs0Yvonj52yiKzQ3d9kg50fMVDh6AQfq3A”,
“patient”: {
“id”: “gdeshmukh@sbx”,
“name”: “G N Deshmukh”,
“gender”: “M”,
“yearOfBirth”: 1993,
“monthOfBirth”: 11,
“dayOfBirth”: 5,
“address”: {
“line”: null,
“district”: “NANDED”,
“state”: “MAHARASHTRA”,
“pincode”: null
},
“identifiers”: [
{
“type”: “MOBILE”,
“value”: “7013061970”
},
{
“type”: “HEALTH_NUMBER”,
“value”: null
}
]
}
},
“error”: null,
“resp”: {
“requestId”: “d1aa0982-1436-4cec-b23b-dc4a1e60436c”
}
}
Thanks.