M2- ABHA ID Validations in on-notify

Hi team
@IntegrationSupport
This is my url : https://dev.abdm.gov.in/gateway/v0.5​/users​/auth​/on-notify

This is my request :
{

"requestId": "e1938d25-f842-4fcf-9e1e-350c2bc68e93",

"timestamp": "2023-07-18T05:25:42.104Z",

“acknowledgement”: {

"status": "OK"

},

“error”: {

"code": 1000,

"message": ""

},

“resp”: {

"requestId": "728646c7-a308-4edf-8553-6f8ddf85c7cb"

}

}

This is my response :
{
“error”: {
“code”: 2500,
“message”: “Unknown error occurred”
}
}

I am using two flows :
1st:
This is my 1st flow i am currently using :

  1. https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes
  2. https://dev.abdm.gov.in/gateway/v0.5/users/auth/init
  3. https://dev.abdm.gov.in/gateway/v0.5/users/auth/confirm
  4. https://dev.abdm.gov.in/gateway/v0.5​/users​/auth​/on-notify
    I am using this flow the above request i passed and response will come showing error
    2nd :
    This is my 1st flow i am currently using :
  5. https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes
  6. https://dev.abdm.gov.in/gateway/v0.5/users/auth/init
  7. https://dev.abdm.gov.in/gateway/v0.5/users/auth/confirm
  8. https://dev.abdm.gov.in/gateway/v0.5/users/auth/notify
    I am using this flow the below request i passed and response will come showing Access Denied

This is my url : https://dev.abdm.gov.in/gateway/v0.5/users/auth/notify

This is my request :
{

"requestId": "27d6ccb8-741a-494b-a573-62822bc1e494",

“timestamp”: “2023-07-18T05:24:37.987Z”,

“auth”: {

"transactionId": "7fe8cb58-09e7-4433-a1c3-18fdfc2f7bfb",

"status": "GRANTED",

"accessToken": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJzdWRlZXBha3VsYTI5MDZAc2J4IiwicmVxdWVzdGVyVHlwZSI6IkhJUCIsInJlcXVlc3RlcklkIjoiNzY0MzYiLCJwYXRpZW50SWQiOiJzdWRlZXBha3VsYTI5MDZAc2J4Iiwic2Vzc2lvbklkIjoiYWRjYmQzYzItMWI5NC00MjdmLThhZmEtOThjYjc0YmQ1MTZkIiwiZXhwIjoxNjg5NzQ0MjA0LCJpYXQiOjE2ODk2NTc4MDR9.Axo9I7pVEkmRj2OTFfn18zw3epUx0fa6yoCg2UkNE21uUMxbDnYeNGMtW_OKv9FnZbeeCwnJ-onuzdjnFPeM1pb495PWYMb0VJheQEo3fyKb-APpxolrFYPq55nL-Gp-ynliSoxiz-pj0PAOAQCcAMiBZyOWaQ6ZjKbd3d7fK4WG2aqjUoEo8UDlbuvpKaS6fvem1RbIrZK10HtXCwMdGgNtaZoDyZbYW8gDIHX_-nwdgOXJATAt4PR1wAjRNBrAJIlyGx8UKyp-0t9C_7BTfw2GQRajrW2tb1vSCrFnqzcVXUfRfUcEFJGd8KF9zcKp0iKk9n2SJJ_5JN_VAHw9Sg",

"validity": {

  "purpose": "LINK",

  "requester": {

    "type": "HIP",

    "id": 76436

  },

  "expiry": "",

  "limit": "1"

},

"patient": {

  "id": "<sudeepakula2906>@<consent-manager-id>",

  "name": "Akula Sudeep Kumar",

  "gender": "M",

  "yearOfBirth": "1998",

  "address": {

    "line": "",

    "district": "WEST GODAVARI",

    "state": "ANDHRA PRADESH",

    "pincode": ""

  },

  "identifiers": [

    {

      "type": "MR",

      "value": "+917729905905"

    }

  ]

}

}

}

This is my response :
Access Denied

Hi team
@IntegrationSupport
This is my url : https://dev.abdm.gov.in/gateway/v0.5​/users​/auth​/on-notify

This is my request :
{

"requestId": "e1938d25-f842-4fcf-9e1e-350c2bc68e93",

"timestamp": "2023-07-18T05:25:42.104Z",

“acknowledgement”: {

"status": "OK"

},

“error”: {

"code": 1000,

"message": ""

},

“resp”: {

"requestId": "728646c7-a308-4edf-8553-6f8ddf85c7cb"

}

}

This is my response :
{
“error”: {
“code”: 2500,
“message”: “Unknown error occurred”
}
}

I am using two flows :
1st:
This is my 1st flow i am currently using :

  1. https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes
  2. https://dev.abdm.gov.in/gateway/v0.5/users/auth/init
  3. https://dev.abdm.gov.in/gateway/v0.5/users/auth/confirm
  4. https://dev.abdm.gov.in/gateway/v0.5​/users​/auth​/on-notify
    I am using this flow the above request i passed and response will come showing error
    2nd :
    This is my 2st flow i am currently using :
  5. https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes
  6. https://dev.abdm.gov.in/gateway/v0.5/users/auth/init
  7. https://dev.abdm.gov.in/gateway/v0.5/users/auth/confirm
  8. https://dev.abdm.gov.in/gateway/v0.5/users/auth/notify
    I am using this flow the below request I passed and response is: Access Denied

This is my URL : https://dev.abdm.gov.in/gateway/v0.5/users/auth/notify

This is my request :
{

"requestId": "27d6ccb8-741a-494b-a573-62822bc1e494",

“timestamp”: “2023-07-18T05:24:37.987Z”,

“auth”: {

"transactionId": "7fe8cb58-09e7-4433-a1c3-18fdfc2f7bfb",

"status": "GRANTED",

"accessToken": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJzdWRlZXBha3VsYTI5MDZAc2J4IiwicmVxdWVzdGVyVHlwZSI6IkhJUCIsInJlcXVlc3RlcklkIjoiNzY0MzYiLCJwYXRpZW50SWQiOiJzdWRlZXBha3VsYTI5MDZAc2J4Iiwic2Vzc2lvbklkIjoiYWRjYmQzYzItMWI5NC00MjdmLThhZmEtOThjYjc0YmQ1MTZkIiwiZXhwIjoxNjg5NzQ0MjA0LCJpYXQiOjE2ODk2NTc4MDR9.Axo9I7pVEkmRj2OTFfn18zw3epUx0fa6yoCg2UkNE21uUMxbDnYeNGMtW_OKv9FnZbeeCwnJ-onuzdjnFPeM1pb495PWYMb0VJheQEo3fyKb-APpxolrFYPq55nL-Gp-ynliSoxiz-pj0PAOAQCcAMiBZyOWaQ6ZjKbd3d7fK4WG2aqjUoEo8UDlbuvpKaS6fvem1RbIrZK10HtXCwMdGgNtaZoDyZbYW8gDIHX_-nwdgOXJATAt4PR1wAjRNBrAJIlyGx8UKyp-0t9C_7BTfw2GQRajrW2tb1vSCrFnqzcVXUfRfUcEFJGd8KF9zcKp0iKk9n2SJJ_5JN_VAHw9Sg",

"validity": {

  "purpose": "LINK",

  "requester": {

    "type": "HIP",

    "id": 76436

  },

  "expiry": "",

  "limit": "1"

},

"patient": {

  "id": "<sudeepakula2906>@<consent-manager-id>",

  "name": "Akula Sudeep Kumar",

  "gender": "M",

  "yearOfBirth": "1998",

  "address": {

    "line": "",

    "district": "WEST GODAVARI",

    "state": "ANDHRA PRADESH",

    "pincode": ""

  },

  "identifiers": [

    {

      "type": "MR",

      "value": "+917729905905"

    }

  ]

}

}

}

This is my response :
Access Denied

@Bhaskar1 Do you have HIP access. Please share the jwt.io output with us. You can confirm it by passing your access token generated by //sessions API to https://jwt.io

hi team
@IntegrationSupport

This is the response token :
https://webhook.site/89b86492-f529-42e7-85fe-88036fb3a0f5/v0.5/users/auth/on-confirm

hi team
@IntegrationSupport

This is the response token :
https://webhook.site/89b86492-f529-42e7-85fe-88036fb3a0f5/v0.5/users/auth/on-confirm

May be I think I do not have HIP access
How can I get the HIP access

@Bhaskar1 wrongly shared jwt.io token. please pass correct access token generated by //sessions API to https://jwt.io

Hi team @IntegrationSupport

This is my session Api :

  1. https://jwt.io/#debugger-io?token=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODk2ODU3MDEsImlhdCI6MTY4OTY2NDEwMSwianRpIjoiMzFkYzE1Y2QtMzc0MS00M2YzLWEyYWQtZTI0ZWViNTI3M2E1IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIwOTQ3NWVjMC1jN2U2LTQ4ZTMtODIwOC1jODgwYjhjNjZlOTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAzMTE4Iiwic2Vzc2lvbl9zdGF0ZSI6IjY3MGU3YWU4LTA2ZDgtNDIwNi1iNzFkLWNkYmIxOTUzNjI3NSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDMxMTgiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5LjM1IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJjbGllbnRJZCI6IlNCWF8wMDMxMTgiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMzExOCIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMzUifQ.jvLHhiTsZrI_6dstOWaiNbTQM4JsKBd2VhhJPdls5BmZqC6WM5vp1EXTY3eAdA1BZroP7Ut_EAeEyAzhhEMFVKdHSHvoBuQQqEgwiCTpb4Nt1YTGLoqic5WUhIPP-oFG6K26UderhoNVZu-3LFLkhBYcB6x2qYVqBB0epVrBjNecY4GAo5WPeYj1mgmtCd8LukpK1Li2ArOHDlQAup88ko0K27RLyNpytjfAXtas1JiZl_URuYK7Q5QsZVC-dozWeRL560A7RKNC8d9B8gs74xFHiNxkR-puyp4qMikD_ipQF6UsHLeXuZYBvWNpYy63a_loTe5jVKQ-rbyweZx4zg&publicKey={ %20%20"e"%3A%20"AQAB"%2C %20%20"kty"%3A%20"RSA"%2C %20%20"n"%3A%20"mgmW7W5ZGF_G5cJevwYi8HiPcI-6qS_psnZxa4v3bkwAkyOoOd8-6ketrOI-ZA2PbRbGnxFfZHiI94rdFXJ4Q9ampscsz9NocTIPMPmWydJ8A50pZaYWyikYDSJiDltq7i3WspPKSOuQHrC5h9dMcCVveX5oeg0tO68Z79gwDlpcxiqDbFaphsqDvx-5XkfwiqvOBaybK6_BCBPuTqWMUEuUklLYXu2X7ESHdVNFMFAjxCcCXUtP7LFdvT3nnFekRmG82QbSQSVe4N5tPH8q0MCxSWWn2c15bDnzOF-dvfRCVPRabCzw0M-utHR9diTrWtq6Koi5buxgwM1rbk0p8Q" }

And this is my another response :
This is url :
https://webhook.site/89b86492-f529-42e7-85fe-88036fb3a0f5/v0.5/users/auth/on-confirm

  1. https://jwt.io/#debugger-io?token=eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJiYWxhc2FpMjkwNkBzYngiLCJyZXF1ZXN0ZXJUeXBlIjoiSElQIiwicmVxdWVzdGVySWQiOiI3NjQzNiIsInBhdGllbnRJZCI6ImJhbGFzYWkyOTA2QHNieCIsInNlc3Npb25JZCI6Ijc1NTA2YThkLTc3ZWUtNGJjMi05NzA4LWViYzkwZWEzNWY4MiIsImV4cCI6MTY4OTc0OTU1NiwiaWF0IjoxNjg5NjYzMTU2fQ.DDRQQFYUxO2SD_JEvWqMnsf9MQPB51nRAxGrVU2hxEk-FY0OVgChai6P0pS59K1x-Ef74KuR3LBstdOMHthAYV4XUjJNl_VNHEeT-V2UIVFr6WRdtSKZmdHdPr8LZJ7QTvyIQLe9FJ4q5hubCPRkR0l2EEVo4bKYGPHZ1aWBCCsToO4rNO_6OhUgr6GiWOeXV5CzAbTMCt-pl0SV6JCTPKMq-v0RuwCyetUxdm_25urs7FbHVvUQDIK4muXJ7Ju-Llrwfzsa65PmE552pN4ZxaXVCGvQ24f2HRQCyj05C3JDBGYlm5Gal1uoo2hzqXpSXBxg5RU-SkqMi66n3IFz6w&publicKey={ %20%20"e"%3A%20"AQAB"%2C %20%20"kty"%3A%20"RSA"%2C %20%20"n"%3A%20"mgmW7W5ZGF_G5cJevwYi8HiPcI-6qS_psnZxa4v3bkwAkyOoOd8-6ketrOI-ZA2PbRbGnxFfZHiI94rdFXJ4Q9ampscsz9NocTIPMPmWydJ8A50pZaYWyikYDSJiDltq7i3WspPKSOuQHrC5h9dMcCVveX5oeg0tO68Z79gwDlpcxiqDbFaphsqDvx-5XkfwiqvOBaybK6_BCBPuTqWMUEuUklLYXu2X7ESHdVNFMFAjxCcCXUtP7LFdvT3nnFekRmG82QbSQSVe4N5tPH8q0MCxSWWn2c15bDnzOF-dvfRCVPRabCzw0M-utHR9diTrWtq6Koi5buxgwM1rbk0p8Q" }

  2. May be I think I do not have HIP access
    How can I get that HIP access

@Bhaskar1 You have HIP access, please share postman screenshot with payload body and header for API in which you are getting error and send to integration.support@nha.gov.in

Hi Team
integration.support@nha.gov.in
@integration.support@nha.gov.in
@IntegrationSupport
1st URl
This is my url :
https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes
This is my request Body :
{

“requestId”: “471d74f2-d300-41bf-81b1-4905c0613a30”,

"timestamp": "2023-07-18T09:31:22.041Z",

"query": {

    "id": "kishanmihani2906@sbx",

    "purpose": "LINK",

    "requester": {

        "type": "HIP",

        "id": "76436"

    }

}

}

This is my request header :

This is my response of 1st url ;
https://webhook.site/89b86492-f529-42e7-85fe-88036fb3a0f5/v0.5/users/auth/on-fetch-modes
{
“requestId”: “826a84dc-6a6c-488c-9367-3401015607bc”,
“timestamp”: “2023-07-18T09:31:45.050348319”,
“auth”: {
“purpose”: “LINK”,
“modes”: [
“PASSWORD”,
“DEMOGRAPHICS”,
“MOBILE_OTP”
]
},
“error”: null,
“resp”: {
“requestId”: “471d74f2-d300-41bf-81b1-4905c0613a30”
}
}

2nd URL :
This is my 2nd url :
https://dev.abdm.gov.in/gateway/v0.5/users/auth/init

This is my Header :
The header can be same values i can pass in 1st url

This is my request :
{

"requestId": "d1665f57-7d75-4ff9-9465-b422c019d1c4",

"timestamp": "2023-07-18T09:35:24.132Z",

"query": {

    "id": "kishanmihani2906@sbx",

    "purpose": "KYC_AND_LINK",

    "authMode": "MOBILE_OTP",

    "requester": {

        "type": "HIP",

        "id": "76436"

    }

}

}

This is my response of 2nd url :

https://webhook.site/89b86492-f529-42e7-85fe-88036fb3a0f5/v0.5/users/auth/on-init
{
“requestId”: “d7fc435c-7484-4dda-8a8f-363bc4599036”,
“timestamp”: “2023-07-18T09:35:34.978394906”,
“auth”: {
“transactionId”: “2592e4d5-73eb-44cc-8407-c8765a77075f”,
“mode”: “MOBILE_OTP”,
“meta”: {
“hint”: null,
“expiry”: “2023-07-18T11:35:34.978404417”
}
},
“error”: null,
“resp”: {
“requestId”: “d1665f57-7d75-4ff9-9465-b422c019d1c4”
}
}

3rd URL :
This is my 3rd url :
https://dev.abdm.gov.in/gateway/v0.5/users/auth/confirm

This is my Header :
The Header is same as 1st URL

This is my request :
{

"requestId": "c73d8d2a-64e0-4fcc-9a8a-48be9920021a",

"timestamp": "2023-07-18T09:36:10.363Z",

"transactionId": "2592e4d5-73eb-44cc-8407-c8765a77075f",

"credential": {

    "demographic": {

        "name": "Kishan Mihani",

        "gender": "M",

        "dateOfBirth": "1999-09-04"

    },

    "authCode": "142939"

}

}

This is my response of 3rd url :
[
https://webhook.site/89b86492-f529-42e7-85fe-88036fb3a0f5/v0.5/users/auth/on-confirm
{
“requestId”: “c4c3a3e7-38f9-4e3f-9aac-15d48248b621”,
“timestamp”: “2023-07-18T09:36:59.353085173”,
“auth”: {
“accessToken”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJraXNoYW5taWhhbmkyOTA2QHNieCIsInJlcXVlc3RlclR5cGUiOiJISVAiLCJyZXF1ZXN0ZXJJZCI6Ijc2NDM2IiwicGF0aWVudElkIjoia2lzaGFubWloYW5pMjkwNkBzYngiLCJzZXNzaW9uSWQiOiJlYTQzYzliNC00ZjAxLTRlNTQtOGY4ZC1kODUzMDY4NWZjOTAiLCJleHAiOjE2ODk3NTk0MTksImlhdCI6MTY4OTY3MzAxOX0.PXkC6E4k2e4xuQjsR3fUab2LmRXCmJhpCo9aSIkjzq_4FZtJfQ33CftFgdcAjdemcEtqck3DWypFXX5VknSdvwzKZN9MkFF_CGimmhGUpOmcw4cCe_XmGkMtKlooVThhMch8laVvHZGpBltqx0r_EOvgp79NpB2nsAaLf3oIiY4mCRniLZfPY6eO4BC1z9pbzFnndOWj2KatBBAL5SYLCYQLsPdHLGw21Y_94lJhen13ur_-vm7Iya7zd1en2kcugeNxj14spy_w1sgxG3rr2d4dTVFJQ_ia0Vtq0r2HAcERfTa3i2cM65-NECiB-Tgve-VzL3TqC8Z2hmNon0jIAQ”,
“patient”: {
“id”: “kishanmihani2906@sbx”,
“name”: “Kishan Mihani”,
“gender”: “M”,
“yearOfBirth”: 1999,
“monthOfBirth”: 9,
“dayOfBirth”: 4,
“address”: {
“line”: null,
“district”: “EAST NIMAR”,
“state”: “MADHYA PRADESH”,
“pincode”: null
},
“identifiers”: [
{
“type”: “MOBILE”,
“value”: “9977305440”
},
{
“type”: “HEALTH_NUMBER”,
“value”: “91-2287-3343-7815”
}
]
}
},
“error”: null,
“resp”: {
“requestId”: “c73d8d2a-64e0-4fcc-9a8a-48be9920021a”
}
}
This is my 4th url :
Url is :
https://dev.abdm.gov.in/gateway ​/v0.5​/users​/auth​/notify

This is my request in body :
{

“requestId”: “0196a3b7-214a-4df6-970f-c4b7b2e5fce7”,

“timestamp”: “2023-07-18T09:38:57.475Z”,

“auth”: {

This transactionId value come on this URL
https://webhook.site/89b86492-f529-42e7-85fe-88036fb3a0f5/v0.5/users/auth/on-init](https://webhook.site/89b86492-f529-42e7-85fe-88036fb3a0f5/v0.5/users/auth/on-init

"transactionId": "2592e4d5-73eb-44cc-8407-c8765a77075f",

"status": "",

"accessToken": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJraXNoYW5taWhhbmkyOTA2QHNieCIsInJlcXVlc3RlclR5cGUiOiJISVAiLCJyZXF1ZXN0ZXJJZCI6Ijc2NDM2IiwicGF0aWVudElkIjoia2lzaGFubWloYW5pMjkwNkBzYngiLCJzZXNzaW9uSWQiOiJlYTQzYzliNC00ZjAxLTRlNTQtOGY4ZC1kODUzMDY4NWZjOTAiLCJleHAiOjE2ODk3NTk0MTksImlhdCI6MTY4OTY3MzAxOX0.PXkC6E4k2e4xuQjsR3fUab2LmRXCmJhpCo9aSIkjzq_4FZtJfQ33CftFgdcAjdemcEtqck3DWypFXX5VknSdvwzKZN9MkFF_CGimmhGUpOmcw4cCe_XmGkMtKlooVThhMch8laVvHZGpBltqx0r_EOvgp79NpB2nsAaLf3oIiY4mCRniLZfPY6eO4BC1z9pbzFnndOWj2KatBBAL5SYLCYQLsPdHLGw21Y_94lJhen13ur_-vm7Iya7zd1en2kcugeNxj14spy_w1sgxG3rr2d4dTVFJQ_ia0Vtq0r2HAcERfTa3i2cM65-NECiB-Tgve-VzL3TqC8Z2hmNon0jIAQ",

"validity": {

  "purpose": "LINK",

  "requester": {

    "type": "HIP",

    "id": 76436

  },

  "expiry": "2023-07-18T09:38:57.475Z",

  "limit": "1"

},

"patient": {

  "id": "@",

  "name": "Kishan Mihani",

  "gender": "M",

  "yearOfBirth": 1999,

  "address": {

    "line": "",

    "district": "EAST NIMAR",

    "state": "MADHYA PRADESH",

    "pincode": ""

  },

  "identifiers": [

    {

      "type": "MR",

      "value": "+919977305440"

    }

  ]

}

}

}

this is my header :

@IntegrationSupport
@Integration.support@nha.gov.in
Please give any response to mee

@Bhaskar1 Hello, request you not to use Direct mode of authentication for HIP linking. Please use these mode of auth for HIP initiated linking - Mobile OTP, Aadhaar OTP, Demographic auth.

@IntegrationSupport
@integration.support@nha.gov.in
hi team :
Recently i started milestone-2
In milestone

  1. Registration & Auth completed next i go to ABHA id validations
    In this ABHA id validations their is only “authMode”: “MOBILE_OTP”,
    ABHA id validations url :
    https://dev.abdm.gov.in/gateway/v0.5/users/auth/init

request :
“requestId”: “{{$guid}}”,

"timestamp": "{{$isoTimestamp}}",

"query": {

    "id": "ranveeru@sbx",

    "purpose": "KYC_AND_LINK",

    "authMode": "MOBILE_OTP",

    "requester": {

        "type": "HIP",

        "id": "{{facilityId}}"

    }

}

}

In this request their is only “authMode”: “MOBILE_OTP”,
How i can pass the Aadhaar otp.
U can please tell me the flow for ---------> authentication for HIP linking

@IntegrationSupport
@integration.support@nha.gov.in
please give response to me

For M1 : ABHA registration/creation by Aadhaar number followed by aadhaar mobile based OTP verification. Once ABHA is created, there are 3 auth methods - aadhaar OTP, mobile OTP and demographics.

For M2: For HIP initiated linking - You can use 3 auth modes - Mobile OTP, Aadhaar OTP, Demographics . You can use same payload as mobile otp and pass aadhaar otp.

@IntegrationSupport
@integration.support@nha.gov.in
hi team
I completed these 3 auth modes response also coming
auth methods - aadhaar OTP, mobile OTP and demographics.

Next API is profile share

this is my url :
https://dev.abdm.gov.in/gateway/v1.0/patients/profile/on-share
this is my request :
{

“requestId”: “{{$guid}}”,

"timestamp": "{{$isoTimestamp}}",

“intent”: {

"type": ""

},

“location”: {

"latitude": "",

"longitude": ""

},

“profile”: {

"hipCode": "76436 (CounterId)",

"patient": {

  "healthId": "bhaskar1976@sbx",

  "healthIdNumber": "91-6083-2570-6380",

  "name": "Gowthu Bhaskar",

  "gender": "M",

  "address": {

    "line": "",

    "district": "WEST GODAVARI",

    "state": "ANDHRA PRADESH",

    "pincode": ""

  },

  "yearOfBirth": 1998,

  "dayOfBirth": 22,

  "monthOfBirth": 3,

  "identifiers": [

    {

      "type": "MR",

      "value": "+917569453247"

    }

  ]

}

}

}

This is my response :

@Bhaskar1 Please take reference for correct payload from the swagger link shared for profile/share api : https://sandbox.abdm.gov.in/swagger/ndhm-hip.yaml

hi team
@IntegrationSupport
@integration.support@nha.gov.in

I am generating the “authMode” : Demographics

This is my url :
https://dev.abdm.gov.in/gateway/v0.5/users/auth/init

This is my request :

In header i can pass like these ;

My response is :

I am getting these error

{
“requestId”: “6111c9b5-46a3-4169-a991-f3f056fcf198”,
“timestamp”: “2023-07-21T12:11:14.187533357”,
“auth”: null,
“error”: {
“code”: 1510,
“message”: “Invalid Auth Mode”
},
“resp”: {
“requestId”: “fcc2b02b-0fd3-416d-80f1-858078343366”
}
}

hi team
@IntegrationSupport
@integration.support@nha.gov.in

I am seeing these flow of the document :

This is for :

HIP initiated linking for the patients with DIRECT auth

This is my url :
https://dev.abdm.gov.in/gateway/v0.5/users/auth/notify

This is request in body :

This is header :

i can pass like these values

I am getting these error :
Access Denied

@IntegrationSupport
@integration.support@nha.gov.in
Hi team please give response to mee