Greetings,
We’re currently unable to find why our API requests to v1.5/facility/basic-information are failing by always returning status code 400. Please help us resolve this issue:
CURL:
curl --location --request POST ‘https://facilitysbx.ndhm.gov.in/v1.5/facility/basic-information’ \
–header ‘Accept: application/json’ \
–header ‘Content-Type: application/json’ \
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NTQ2Njk1OTMsImlhdCI6MTY1NDY2ODk5MywianRpIjoiMTRmN2I3ZGEtN2VlYy00ZDU5LTk0ZGQtMGNlNDk4ZjZkODFiIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxZjQ0ODUyYy04N2ZlLTQ1MjgtYWUzMC02ZmRhYjYwNTZiZDgiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxNTk1Iiwic2Vzc2lvbl9zdGF0ZSI6IjlmNDI2MmM5LTViNTMtNGIyMy1iNTJjLTdiNTY1MTYxM2QyMCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJIaWRJbnRlZ3JhdGVkUHJvZ3JhbSIsImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJwaHIiLCJPSURDIiwiaGVhbHRoX2xvY2tlciIsImhpcCIsImhwX2lkIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiU0JYXzAwMTU5NSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS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USS5fKO9KX4gUqu2Np3RLNcq652QPcy0ecLZW_UxvrmF-NBLc3X3k0rGr5gYDtzPC9linoEFB2yz0qdUs1oCC6imqxHI-UbT1k4lgpxgA_ojFucPgQ4DuLhRE_Sc7z4mp-2H08sPOJOmig5sSXt05Nzw’ \
–header ‘Cookie: JSESSIONID=29EABEA0B2F1275A13E5521BE7C6E3F6; JSESSIONID=29EABEA0B2F1275A13E5521BE7C6E3F6; TS01b6eee2=01115a1c9014e8ab6c2f53e6b0c4a9c8683b81ff7b89c96a7e88e081565ecc835e329871acef7cb628f1b8e5e0e94f87d10679ba743c2746af56cf8dbc1d6ed9d52f054c08’ \
–data-raw '{
"facilityName": "testing-hfr",
"ownershipCode": "P",
"stateLGDCode": "568",
"address": "No. 326, Baba nagar, Villivakkam",
"pincode": "600049",
"lattitude": "88.0002",
"longitude": "82.003"
}’