In the given API, I am encountering an issue when attempting to create a non-functional facility. The error message received pertains to facility timings, despite specifying the operational status as “CL.” I have tried passing null or an empty string for the “timingsOfFacility” key in the payload, such as “timingsOfFacility: null,” but unfortunately, none of these approaches seem to resolve the issue.
I have included my payload and response at the bottom. Can anyone provide assistance with this? Your help would be greatly appreciated. Thank you.
API EndPoint : https://facilitysbx.abdm.gov.in/v1.5/facility/basic-information ,
METHOD : POST ,
Payload :
{
“trackingId”: “”,
“facilityInformation”: {
“facilityName”: “XYZ healthcasee”,
“ownershipCode”: “P”,
“ownershipSubTypeCode”: “P”,
“ownershipSubTypeCode2”: “”,
“facilityAddressDetails”: {
“country”: “India”,
“stateLGDCode”: “7”,
“districtLGDCode”: “84”,
“subDistrictLGDCode”: “6086”,
“facilityRegion”: “”,
“villageCityTownLGDCode”: “”,
“addressLine1”: “new delhi”,
“addressLine2”: “delhi”,
“pincode”: “110003”,
“latitude”: “21.4691505”,
“longitude”: “78.5291706”
},
“facilityContactInformation”: {
“facilityContactNumber”: “”,
“facilityEmailId”: “xyz@dummy.com”,
“facilityLandlineNumber”: “”,
“facilityStdCode”: “”,
“websiteLink”: “”
},
“systemOfMedicineCode”: “M”,
“facilityTypeCode”: “38”,
“facilitySubType”: “30”,
“specialityTypeCode”: “”,
“typeOfServiceCode”: “OPD”,
“facilityOperationalStatus”: “CL”,
“facilityUploads”: {
“facilityBoardPhoto”: {
“name”: “”,
“value”: “”
},
“facilityBuildingPhoto”: {
“name”: “”,
“value”: “”
}
},
“facilityAddressProof”: [
{
“addressProofType”: “”,
“addressProofAttachment”: {
“name”: “”,
“value”: “”
}
}
],
“timingsOfFacility”: [
{
“workingDays”: null,
“openingHours”: null
}
],
“abdmCompliantSoftware”: [
{
“existingSoftwares”: [],
“anyOther”: “cutting-edge-softwares”
}
]
}
}
RESPOSE:
{
“trackingId”: null,
“status”: “Not Created”,
“message”: “Facility not created. Please check the errors”,
“errorStatus”: [
{
“field”: “facility Timings”,
“message”: “facility Timings is required only for functional. Please keep it null”
}
]
}