Getting 404 /v0.5/users/auth/fetch-modes

using following curl getting 404 pls check

curl -X POST “https://dev.abdm.gov.in/gateway/v0.5/users/auth/fetch-modes” -H “accept: /” -H “X-CM-ID: sbx” -H “Content-Type: application/json” -d “{“requestId”:“5f7a535d-a3fd-416b-b069-c97d021fbacd”,“timestamp”:“2022-11-25T05:10:32.245Z”,“query”:{“id”:“suresh.donthula@sbx”,“purpose”:“LINK”,“requester”:{“type”:“HIP”,“id”:“healthsignz@hpr.ndhm”}}}”

sending Authorization header as well

hi @IntegrationSupport pls check the above issue

Hi, please enter correct value of HIP id. eg: “query”: {
“id”: “suresh.donthula@sbx”,
“purpose”: “LINK”,
“requester”: {
“type”: “HIP”,
“id”: “IN0xxxxxxxxx”
where “IN0xxxxxxxxx” will be your registered HIP id.

HI @IntegrationSupport, thanks for the response

where I can get id: “IN0xxxxxxxxx”, means where can I get My registered HIP Id. As of now I am getting it from

https://dev.abdm.gov.in/gateway/v1/bridges/getServices

res

{

"bridge": {

    "id": "SBX_002068",

    "name": "Healthsignz Technologies",

    "url": "https://api-qa.healthsignz.net/QAPOZAppServices/abdm",

    "active": true,

    "blocklisted": false

},

"services": [

    {

        "id": "healthsignz",

        "name": "mymedic",

        "types": [

            "HIP",

            "HIU"

        ],

        "endpoints": {},

        "active": true

    },

    {

        "id": "healthsignz@hpr.ndhm",

        "name": "Doctor and Diagnostics services",

        "types": [

            "HIP"

        ],

        "endpoints": {},

        "active": true

    }

]

}

I am using Id of one of the HIP

pls Let me know If I am Wrong

@Govind_Deshmukh please help provide resolution

@Govind_Deshmukh Hi, could you please check this issue, thanks

Hi Suresh, you needs to follow the bridge services and need to add hip with the webhook url.

curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v1/bridges/addUpdateServices
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.e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wBEibRX5lwYKiOZP9Dq47uwDpwcQzDZyf2xHO205zAY2BQEpJpeU2358wyvTvOT75DuVHPC6sK4vYEZmha-eA7KnxP84DFBRpQ5Ojb0Rx61UPZu07L9G-AFasXjX1hGYWcWnb2tALQHeXTr8KVRtaEZp71-GqQ9r-GdPEET9vf6T5QwHb55JYnAvb2r5pMYPTGKz5HSKlx5LHqPlALvAkaZAHL-kZ-d-mjmYxo9BLDqMOORS0JZbwXWBRfIHaP2-P1liXNVtRElUlXQvvtW2AFLBmwFn50Z1DYOKvt5UcbA’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01445fed042e1dde8b62dc1d3efbfd1717df810351fd71d727f242347aa3144a1154ed42e59796b253dad10325cc440f88e21e44c5’
–data-raw ‘[
{
“id”: “Mohan-HIP”,
“name”: “Mohan Hospital”,
“type”: “HIP”,
“active”: true,
“alias”: [
“Mohan-HIP1”
]
}
]’

Please try this and let us know
Thanks.

hi @IntegrationSupport getting 400 badrequest
{

"id": "suresh-HIP-108",

"name": "suresh hospital siddipet",

"type": "HIP",

"active": true,

"alias": [

"suresh hospital siddipet"

]

}

@suresh.healthsignz,

Please avoid using such Facility / service id.
It will not be accepted as is should be in String format.

Thanks

hi @IntegrationSupport still getting 400 bad request
{

"id": "sureshdhip",

"name": "suresh hospital siddipet",

"type": "HIP",

"active": true,

"alias": [

"suresh hospital siddipet"

]

}

hi @IntegrationSupport

this is my client Id: SBX_002068

can you please check and give access to above client ID

give roles required for Building HIP and HIU and HRP

thanks

Please give your user token in https://jwt.io/ and share with us the roles assigned to your client id.
Thanks

@suresh.healthsignz,
We are expecting this ticket is resolved and we have closed this issue please if in case any issue raise new ticket and assign.
Thanks.

@suresh.healthsignz @SARCH1 we will help you reach me at 9028287050