Error registering HIP/HIU service using ABDM API

I encountered an issue while trying to register my HIP & HIU service using the ABDM API.

I used the following API endpoint to register my service:

curl --location --request PUT 'https://dev.abdm.gov.in/devservice/v1/bridges/services'

I am using the latest bearer token for authorization.

However, when I tried to execute the API, I received a 500 internal server error.


My ABDM Gateway Client ID is SBX_002026.
{ "timestamp": "2023-02-27T07:07:01.441+0000", "path": "/v1/bridges/services", "status": 500, "error": "Internal Server Error", "message": "JSON decoding error: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 10] (through reference chain: java.util.Properties[\"error\"])", "requestId": "a967c6c6-4874" }

Could you please help me resolve this issue? I would appreciate any guidance or assistance you can provide.

@IntegrationSupport @Shubhanshu_S Please help

@umair @mohant please try registering using API. https://dev.abdm.gov.in/gateway/v1/bridges/addUpdateServices
Just ensure to not mention endpoint url when registering for HIP / HIU.

I am using addUpdateService. Getting 404 Not found response. My Curl is:

curl --location ‘https://dev.abdm.gov.in/gateway​/v1​/bridges​/addUpdateServices
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODMxODMwNzMsImlhdCI6MTY4MzE4MjQ3MywianRpIjoiNjY3MTc2ZDgtZWI0Yy00ZmVkLWFmYTktN2Y4Njg5NzIwNWQxIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxNjY1YTQ2Yi05ZWZjLTQ1MDgtODFlYS04Zjg3NTQwODcyZjMiLCJ0eXAiOiJCZWFyZX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8dW8xQHrVcGF42MkMUJb-KW9lvnvCZyDiztzvPXNqRg’
–header ‘Cookie: TS011c04bd=01445fed0492756577c8611e09d63968dff1fe5914eea15798775ac262f25cb1602b0b1b69ae9ba29b9f1d6b8ed7adb91a5916830d’
–data ‘[
{
“id”: “XXXX-TC”,
“name”: “XXXX”,
“type”: “HIP”,
“active”: true,
“alias”: [
“XXXXX”
]
}
]’

@raveeo please use the below mentioned curl

curl --location --request POST ‘https://dev.abdm.gov.in/gateway/v1/bridges/addUpdateServices
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NzU4Mjk3NjEsImlhdCI6MTY3NTgyOTE2MSwianRpIjoiNjdkMjNiNjMtZjI1Yy00NmQ1LTk2ZDItNzJhYjBkNmFhMDA5IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI1OTgzYWM3Zi0xYjNiLTQ5Y2MtYjA5My05NGJhMWU5ZDU4OTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJSQU1BTl9URVNUIiwic2Vzc2lvbl9zdGF0ZSI6IjYxMTJmY2E3LWY2ZmYtNGM0OC05MTZiLTA5MjFhZDZhYTI2OCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlJBTUFOX1RFU1QiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY4LjExNyIsImNsaWVudElkIjoiUkFNQU5fVEVTVCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXJhbWFuX3Rlc3QiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY4LjExNyJ9.JdGbrwIXSJzUw9HxZQ_So-FW0pfw57p7hbGcQbnBJuNa6P6hdZKrRvOAVyc9qyBdM4utT5hbrXdifqaDjCX9nLKkvSzNHwjOu45dyyC5HBtpXRtDzXKPNWwVn5zGAT0ZVWAl4ZhqtlDdjAy7xRz72dM1i_bDnrXYwuyvwvW1-wj-y6iok5dZi6SL0hcIiUfFTyAYCxX8NpH-z1I2BPXMgcg2lAML3BA_em51QakTsGBXIiYxji9Orb5u8cI65I8c8eyA1_HhSg1OajBTUhxPaGufHm4gCTyL3taxatluk06QARy1lXPtDFd7JM6ZlYrKrnn5vJDxDjxLJYNU7ZRHJQ’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS011c04bd=01445fed041e85674bbcb3b169f1597adb3b3069d28c0dd3197897a5db489f3368827edcdc379d794d9edf8cbbbced5cafab46762d’
–data-raw ‘[
{
“id”: “Raman-HIP”,
“name”: “Raman Hospital”,
“type”: “HIP”,
“active”: true,
“alias”: [
“Raman-HIP1”
]
}
]’

Thanks

It is the same curl whatever I have used right… I do not see any difference. Can you please clarify? This is the response I am getting back
{
“error”: {
“code”: 2500,
“message”: “Could not find client”
}
}

Umair, I have asked regarding this Error registering HIP/HIU service using ABDM API - Sandbox Signup - ABDM Sandbox Forum post

It got resolved. I was using the wrong client id for generating the access token. Not sure, how come I was getting the accessToken with the wrong client credentials.

Thank you