I am trying to do HFR onboarding, but their api’s are not working.It is giving 501 (not implemented error). Can you check this
There must be something wrong with the,
Token / Accept / content-type
Please look into this in your header and hopefully it will be fixed.
Thanks
@Hari Hi, Have you checked API headers? Can you share screenshot for the same? Also, which environment is this facility registered ? Is the facility name ‘abc’ ?
@IntegrationSupport Here’s a sample postman request screenshot:
A CURL for the same is given below for sharing our API headers:
curl --location 'https://facility.abdm.gov.in/v1.5/facility/fetchFacilityContactDetails' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODYyODAyMDEsImlhdCI6MTY4NjI3OTYwMSwianRpIjoiZjk2NzJkYTgtYTc5OC00NGVkLTkyZmQtNjJiN2FmYTNhZTYzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxZjQ0ODUyYy04N2ZlLTQ1MjgtYWUzMC02ZmRhYjYwNTZiZDgiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxNTk1Iiwic2Vzc2lvbl9zdGF0ZSI6ImNlMWZlZDRhLWI2MWEtNGJlMy1hYjY1LTRmZmNmNDM2NmYzYyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJIaWRJbnRlZ3JhdGVkUHJvZ3JhbSIsImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJwaHIiLCJPSURDIiwiaGVhbHRoX2xvY2tlciIsImhpcCIsImhwX2lkIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiU0JYXzAwMTU5NSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJvcGVuaWQgZW1haWwgcHJvZmlsZSIsImNsaWVudElkIjoiU0JYXzAwMTU5NSIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjcuMjUwIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMTU5NSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjcuMjUwIn0.U8UrS1SRMEnYLNKkmyYBZ0DXc6msxsVlhWPGkphnI00LD0eDndc1r8uQ8b0cu-P820guMBZNVAtg_coaI9zh4MZBKbt-Y-WMmZC5J6LMzuJHQazeu5Nr0tt67898SPsVKFHNBsG6zTxgYS7wGrwpOt-MRAhmhHIlkC-xrSHRQUVOmmY3HMjllMz2weTY7kfg1_k0VPoJj9AIJaKyfN0lz2Kq_UgqYKgOKy3kg7g3xbnVCQUNf4ImUINWmiJOI1MQAvZ7MCTPRAAvNBrbupBYse3UoiKAe_PO87vzATabDqrNoSZweAkVKjrdnQqvQSQr4hl2Cy-qGzkmBsGbXTY7bQ' \
--data '{
"facilityId": "IN2710000285"
}'
The facility is registered in sbx environment and the name of the facility is “TEST”
@Hari
Hi, are you trying to create facility in production? (facility.abdm.gov.in ) For adding facility in Sandbox please use the url, facilitysbx.abdm.gov.in. May please write to abdm.pc1@nha.gov.in for any other concerns w.r.t facility.
Thanks
We’ve updated the base URL and still facing the same issue. We’re trying to work with the sandbox environment only.
CURL:
curl --location 'https://facilitysbx.abdm.gov.in/v1.5/facility/fetchFacilityContactDetails' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi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