https://facilitysbx.abdm.gov.in/swagger-ui.html is showing 404-not found. The documentation as well as API calls are showing 404.
@IntegrationSupport it shows this error maybe because the X-Token that I receive after login with HPR Id is for HPR sandbox -
{
“trackingId”: null,
“status”: “Auth Token Invalid”,
“message”: “Please check your Request Body”,
“errorStatus”: null
}
This is the decoded JWT Token
{
“sub”: “71-6686-7618-4144”,
“clientId”: “SBX_002419”,
“system”: “HPID”,
“hprIdNumber”: “71-6686-7618-4144”,
“mobile”: “6397453145”,
“hprId”: “satwik@hpr.abdm”,
“exp”: 1685081028,
“iat”: 1685079228
}
Here is the request that I made -
curl --location ‘https://facility.abdm.gov.in/v1.5/facility/basic-information’
–header ‘accept: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODUwNzk4MjUsImlhdCI6MTY4NTA3OTIyNSwianRpIjoiYWZkMmY2MDctZTdiOC00OGI1LWFmMzctMGRmMjU0NzQwNjI0IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkMjg5NzNkOS1iNGI1LTRkNTctYjE3Yy0xZTA2MGE0MzgyN2QiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAyNDE5Iiwic2Vzc2lvbl9zdGF0ZSI6IjBmMjdiN2QzLTU1YzgtNDE5My04YThiLWRmNjM2MWRhZGY4MiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoZnIiLCJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCIs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QiOjE2ODUwNzkyMjh9.rTRf8gETuUS9rWCbjGJ4Z_JrEpwaWUU7lfbqyoc98exTGyc-Y3gYd6cfuL-aPk7VtKQzZ-vHFQhHnAkrlPAX1H-r0_7UP84pbryNDIDluWb0GJqWNAq38OX2hv1XxUeTVQ2-BuH3geU5vqFyR0u66UfPJTLo4nzuYEEGNoJoCtbj-aCQZt8c3E9wS0xR0PzCvBeYt1II9eM4lXRQ0Tago4b2wBzkGUeCO9-MGEhvrjJVHHssuISuHuIHFgrOgchCjqQnAm2mDvBglpdqE2idZX7Th20OicnDOZbzIXAUbz6eWhmOMn_4YzfxGGzmdRnS3uB86HFYU881Ewh4qqjnIQ’
–header ‘Content-Type: application/json’
–header ‘Cookie: JSESSIONID=D8DE25A0AEF3C3097D8505FD58F63583.node1; JSESSIONID=D8DE25A0AEF3C3097D8505FD58F63583.node1; TS01ddee46=01445fed049970aafaec5a38083e69dfbaaf086fb3eb4ddeb2545bd1a2e5358689a21f9aad8e21da79edd4a5c18c4d711f0d85ecba534f47f9b39d47ebf2a46bae851bc1e4’
–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”: “247"
},
{
“workingDays”: “TUE”,
“openingHours”: "247”
},
{
“workingDays”: “WED”,
“openingHours”: “247"
},
{
“workingDays”: “THU”,
“openingHours”: "247”
},
{
“workingDays”: “FRI”,
“openingHours”: “247"
},
{
“workingDays”: “SAT”,
“openingHours”: "247”
},
{
“workingDays”: “SUN”,
“openingHours”: “24*7”
}
],
“abdmCompliantSoftware”: [
{
“existingSoftwares”: [
],
“anyOther”: “clinigo.in”
}
]
}
}’
What is x-hprid-auth in this API “basic-information” ?
Which token is passed as x-hprid-auth?