https://facilitysbx.ndhm.gov.in/v1.5/facility/validateOtp

curl -X POST “https://facilitysbx.ndhm.gov.in/v1.5/facility/validateOtp” -H “accept: application/json” -H “Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NjI5NzQ2MTEsImlhdCI6MTY2Mjk3NDAxMSwianRpIjoiOWVlODk5NTQtMmQ0OC00OTcxLTkwZGMtOGZiNzg3YmJiOTJhIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2MDExODBjNi1iMWZlLTRhZjMtYjYxOC03MzEyMTNjYTEwMjYiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwNTc3Iiwic2Vzc2lvbl9zdGF0ZSI6IjllZGY5Y2Q5LTIyNGEtNGI2Ny1hOWZkLTVjODc0MzNlNDZmMSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiaGlwIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiU0JYXzAwMDU3NyI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJvcGVuaWQgZW1haWwgcHJvZmlsZSIsImNsaWVudElkIjoiU0JYXzAwMDU3NyIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjguMjA2IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMDU3NyIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjguMjA2In0.AH8gZvbRD6T2NJhH6YMRlJyraGECp5VBGTkUpwql1YDfoV0pVffkHyk_2oKTGq5nV6BDaysg5bZfSJvMM9JzccGZVRpXh45wC1xGNvmhPFUs27R0-vXgZtdMBPd2Pa7LRoSk2Gw-R6Vgr1kFTyAYCMhRwKTt-cNi1O_OkR6-xoS4On2GKi4ONJjAl_cbjNI-pXSZDQR5yYQHmOGcgkSasPbIZ3gVxAPEmWDfqy-2PMvVaWJB0ihUwnh3jCklOqFDoH4rvD34UhtebeCVTmBIoIpaD-owi9h0KrLVYrrnkdYgO5F79VOBkMM7MStGprGVeS94F23Vf3k9DFnubvtdEw” -H “Content-Type: application/json” -d “{ “facilityId”: “IN2310000035”, “hospitalId”: “doctorg”, “otp”: “001944”, “source”: “Private”, “transactionId”: “958743b1-27a9-4166-868f-fdc84f78fcdd”}”

Response body
{
“facilityId”: null,
“status”: “Not Linked”,
“message”: “Hospital id not linked. Please check the errors”,
“errorStatus”: [
{
“field”: “sourceId”,
“message”: “source id is invalid”
},
{
“field”: “source”,
“message”: “source is invalid”
}
]
}

My Question is What is the source and hospitalId??
and what can I do to the validate otp??
Please help!!!

Hi Amit,
hospitalId - The user defined name that you provided.
source belongs in which integrator that they tagging.
Please choose source value from below codes that belongs to your integrator.
Eg::“source”:“COWIN”
{
“type”: “SOURCE”,
“data”: [
{
“code”: “ABPMJAY”,
“value”: “AB-PMJAY Hospital Empanelment Module”
},
{
“code”: “AB-PMJAY”,
“value”: “AB-PMJAY Hospital Empanelment Module”
},
{
“code”: “NHRR”,
“value”: “NHRR dataset”
},
{
“code”: “NIN”,
“value”: “National Identification Number (NIN)”
},
{
“code”: “HMIS-CDAC”,
“value”: “e-Sushrut CDAC HMIS ID”
},
{
“code”: “eHospital”,
“value”: “e-Hospital”
},
{
“code”: “STHMISID”,
“value”: “State HMIS ID”
},
{
“code”: “STINSID”,
“value”: “State Insurance Scheme Hospital ID”
},
{
“code”: “COWIN”,
“value”: “CoWIN Vaccination”
}
]
}
Thanks,
Selva

1 Like