Hi @Shubhanshu_S, @Pankaj, @neha.parnami,
I am calling the below API to make consent request from my local machine and getting success response 202 accepted. The consent call back API is also getting called successfully without any error. Consent is being generated and visible in the app(ABHA SBX).
When I am going to approve/grant the consent request by clicking on the consent grant button and entering the consent pin it is coming back to the same page. Tried many times but not able to approve the consent request.
Could you please resolve it asap?
Request and Response payload:-
- Consent Request Init API: https://dev.abdm.gov.in/gateway/v0.5/consent-requests/init
Body :
{
“requestId”: “{{$guid}}”,
“timestamp”: “{{$isoTimestamp}}”,
“consent”: {
“purpose”: {
“text”: “Care Management”,
“code”: “CAREMGT”
},
“patient”: {
“id”: “tatamdtest@sbx”
},
“hip”: {
“id”: “TatamdHip”
},
“hiu”: {
“id”: “Tatamd123”
},
“requester”: {
“name”: “Dr. Manju”,
“identifier”: {
“type”: “REGNO”,
“value”: “MH1001”,
“system”: https://www.mciindia.org
}
},
“hiTypes”: [
“HealthDocumentRecord”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2022-07-01T05:32:45.835Z”,
“to”: “{{$isoTimestamp}}”
},
“dataEraseAt”: “2022-11-03T09:59:45.835Z”,
“frequency”: {
“unit”: “DAY”,
“value”: 23,
“repeats”: 78
}
}
}
}
Response: 202 Accepted
- Consent call back api: /v0.5/consent-requests/on-init
Body:
{
“requestId”: “a4dc045d-624c-4072-a122-9f9939aa4d68”,
“timestamp”: “2022-11-02T13:20:09.540825”,
“consentRequest”: {
“id”: “959e79f4-7a72-427d-ab47-96156ec8a1f5”
},
“error”: null,
“resp”: {
“requestId”: “cea5357c-86ac-4a4a-b384-48a16943ac6c”
}
}
Response : 202 Accepted