Problem with detailed-information api in facility onboarding https://facilitysbx.abdm.gov.in/v1.5/facility/detailed-information

I am trying to implement onboarding APIs for registering a facility in HFR. I used basic-information API followed by additional-information API, they worked fine and I received the expected response. But when I tried to move forward with detailed-information API, I got a 500-internal server error.

@IntegrationSupport can you please look into the issue?

Here is the request -

curl --location ‘https://facilitysbx.abdm.gov.in/v1.5/facility/detailed-information
–header ‘accept: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODQ4MzY4OTYsImlhdCI6MTY4NDgzNjI5NiwianRpIjoiYzIxNTNhMzQtMGQ0OS00ZmE2LWJjN2QtMjI3YTFlY2EwN2Y0IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkMjg5NzNkOS1iNGI1LTRkNTctYjE3Yy0xZTA2MGE0MzgyN2QiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAyNDE5Iiwic2Vzc2lvbl9zdGF0ZSI6IjZjZTgxYjg0LTAxMTUtNGYyZi05ODdkLTc4YzBkZDk0M2Y3MyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoZnIiLCJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCIsImhwX2lkIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiU0JYXzAwMjQxOSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJvcGVuaWQgZW1haWwgcHJvZmlsZSIsImNsaWVudElkIjoiU0JYXzAwMjQxOSIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjguMjQ4IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMjQxOSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjguMjQ4In0.JspyGOy15CRpEff72II-wDMMprGbgbsZVxbam06zDCVY6jnFbXbHLzkAva0rkgDT6bVREzyyKnGCjMjsG_tSFUKP6ybUoenf_3jwBBV6_72sXNVjdCvMe9D_5FnNsq9jQ6EHbnLeHHvNUmmTsBAAqrVlWk17qkGm769yGiE69NWd0dw_RR5WlVncECSj9AxZp7TAp09tLNu5z2Eb-z87iDr9eflQQVeOHhGL7wZM2QhgSok1gxEqHWhbvf-sj2Kl-tuuRGnEHhcOIyoeEU2ubjYfnLaEAN2HPKe-EWIIwN3eghhBMSybshp-zbslj691Qv732Vk-glS1MDaK8nVymw’
–header ‘Content-Type: application/json’
–header ‘Cookie: JSESSIONID=40FAE81952F53509CC7E695D784EC302; JSESSIONID=40FAE81952F53509CC7E695D784EC302; TS0156f262=01445fed0428e06b8a43a2711578b671025dbff647ee93f6cd6223e1a83b6ab3c6818efb2d2985343abe1b2f26f9ac4b68e54e11199f2727078d62af18379d4e46c823fa4a’
–data ‘{
“trackingId”: “8501”,
“specialities”: [
{
“systemOfMedicineCode”: “M”,
“isSpecializationAvalaible”: “N”
}
],
“medicalInfrastructure”: {
“totalNumberOfVentilators”: 4,
“totalNumberOfBeds”: 10
}
}’

@IntegrationSupport @Ramandeep1 any update on this? I am still getting this error and we are stuck here.

Hey @IntegrationSupport, earlier /basic-information API was working but now even that API is not working. It is giving 500 Internal Server Error. I’ve attached the request and the screenshot of the response below.

curl --location 'https://facilitysbx.abdm.gov.in/v1.5/facility/basic-information' \
--header 'accept: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODU2ODkwNzcsImlhdCI6MTY4NTY4ODQ3NywianRpIjoiY2U2ZjZhMGMtOGJjZS00ZDM1LTk0NDMtYzNlN2Q2M2UyN2MyIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkMjg5NzNkOS1iNGI1LTRkNTctYjE3Yy0xZTA2MGE0MzgyN2QiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAyNDE5Iiwic2Vzc2lvbl9zdGF0ZSI6IjcwNjRjOTdmLTQ1NzYtNDExNi04ODA4LWE4YWZjOGZhZWIyNCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoZnIiLCJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhpcCIsImhwX2lkIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiU0JYXzAwMjQxOSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJvcGVuaWQgZW1haWwgcHJvZmlsZSIsImNsaWVudElkIjoiU0JYXzAwMjQxOSIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjcuMT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7wNJIxN-CTGRDq3DrblcDzqO0_OIWNE3AdJBYCDznNo_bGA' \
--header 'Content-Type: application/json' \
--data-raw '{
    "facilityInformation": {
        "facilityName": "test1",
        "ownershipCode": "P",
        "ownershipSubTypeCode": "P",
        "ownershipSubTypeCode2": "",
        "facilityAddressDetails": {
            "country": "India",
            "stateLGDCode": "9",
            "districtLGDCode": "169",
            "subDistrictLGDCode": "734",
            "facilityRegion": "U",
            "villageCityTownLGDCode": "",
            "addressLine1": "1, Godwin",
            "addressLine2": "",
            "pincode": "250002",
            "latitude": "28.9845",
            "longitude": "77.7064"
        },
        "facilityContactInformation": {
            "facilityContactNumber": "6397453145",
            "facilityEmailId": "satwiktanwar2002@gmail.com",
            "facilityLandlineNumber": "",
            "facilityStdCode": "",
            "websiteLink": ""
        },
        "systemOfMedicineCode": "M",
        "facilityTypeCode": "40",
        "facilitySubType": "28",
        "specialityTypeCode": "",
        "typeOfServiceCode": "OPD,IPD,DAY",
        "facilityOperationalStatus": "F",
        "facilityUploads": {
            "facilityBoardPhoto": {
                "name": "",
                "value": ""
            },
            "facilityBuildingPhoto": {
                "name": "",
                "value": ""
            }
        },
        "facilityAddressProof": [
            {
                "addressProofType": "",
                "addressProofAttachment": {
                    "name": "",
                    "value": ""
                }
            }
        ],
        "timingsOfFacility": [
            {
                "workingDays": "MON",
                "openingHours": "24*7"
            },
            {
                "workingDays": "TUE",
                "openingHours": "24*7"
            },
            {
                "workingDays": "WED",
                "openingHours": "24*7"
            },
            {
                "workingDays": "THU",
                "openingHours": "24*7"
            },
            {
                "workingDays": "FRI",
                "openingHours": "24*7"
            },
            {
                "workingDays": "SAT",
                "openingHours": "24*7"
            },
            {
                "workingDays": "SUN",
                "openingHours": "24*7"
            }
        ],
        "abdmCompliantSoftware": [
            {
                "existingSoftwares": [
                ],
                "anyOther": "clinigo1.in"
            }
        ]
    }
}'

@satwik_tanwar Please mail the concerned issue at “Health Facility Registry” facility.abdm@nha.gov.in

Hey @IntegrationSupport, I sent the problem to the mail id you provided but it has been 4 days without any reply. Can you please try to push the issue to the tech team for Health Facility Registry?

Thanks in advance

@satwik_tanwar Already mentioned, please email facility related API issue at facility.abdm@nha.gov.in