@IntegrationSupport
@Sachin
Hi team i am getting these error
i am hitting these url : https://dev.abdm.gov.in/gateway/v0.5/consent-requests/init
This is request body :
{
“requestId”: “{{$guid}}”,
"timestamp": "{{$isoTimestamp}}",
“consent”: {
"purpose": {
"text": "Radha",
"code": "Kishna",
"refUri": ""
},
"patient": {
"id": "ramesh1231998@sbx"
},
"hip": {
"id": "1456"
},
"careContexts": [
{
"patientReference": "TEST-02",
"careContextReference": "paracetmal"
}
],
"hiu": {
"id": "1456"
},
"requester": {
"name": "Ramesh",
"identifier": {
"type": "REGNO",
"value": "MH1001",
"system": "https://www.mciindia.org"
}
},
"hiTypes": [
"OPConsultation"
],
"permission": {
"accessMode": "VIEW",
"dateRange": {
"from": "2016-09-21T04:08:55.799037465",
"to": "2023-09-21T04:08:55.79904012"
},
"dataEraseAt": "2023-11-20T13:42:43.719897",
"frequency": {
"unit": "HOUR",
"value": 1,
"repeats": 0
}
}
}
}
This is response while hitting these url :
{
"error": {
"code": 2500,
"message": "Unknown error occurred"
}
}
can you please tell me is their any mistake in these code or can you please help me on these and
can you please provide or share the milestone-2 api’s or url’s