Hello @IntegrationSupport,
When we use standard APIs for locker-requests/approve, we don’t get a proper response and always getting subscription and authorization Id null.
curl --location ‘https://dev.abdm.gov.in/cm/locker-requests/approve’
–header ‘accept: application/json’
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJwaW5jb2RlIjpudWxsLCJzdWIiOiJoaW1hbnNodTUyOTZAc2J4IiwiY2xpZW50SWQiOiJQSFItV0VCIiwicmVxdWVzdGVySWQiOiJQSFItV0VCIiwiZ2VuZGVyIjoiTSIsImRpc3RyaWN0TmFtZSI6IkdIQVpJQUJBRCIsIm1vYmlsZSI6Ijk5NTM0ODA5MzYiLCJmdWxsTmFtZSI6IkhpbWFuc2h1IFNpbmdoIiwiYWRkcmVzc0xpbmUiOiJDL08gQmFsd2FudCBTaW5naCBBbG1peWEgTS02NS1CIFNhbmpheSBOYWdhciBTZWN0b3ItMjMgR2hhemlhYmFkIiwiaGVhbHRoSWROdW1iZXIiOm51bGwsIm1vbnRoT2ZCaXJ0aCI6IjIiLCJzeXN0ZW0iOiJBQkhBLUEiLCJzdGF0ZU5hbWUiOiJVVFRBUiBQUkFERVNIIiwiZGF5T2ZCaXJ0aCI6IjUiLCJwaHJNb2JpbGUiOiI5OTUzNDgwOTM2IiwiZXhwIjoxNjg2NTc3MDYzLCJpYXQiOjE2ODY1Njk4NjMsInBockFkZHJlc3MiOiJoaW1hbnNodTUyOTZAc2J4IiwiZW1haWwiOm51bGwsInR4bklkIjoiOTJjMmIzYWItZDYzYS00OTY3LWEwYTktMzJmMjFiNTc1MTVmIiwieWVhck9mQmlydGgiOiIxOTk2In0.giqZczzHxyCYwSUThZZ6jUtG4riXsvnG39gs_g4FOK0HPfoY1Q7Gx99U7r83j_JmHDJFUVDcOiMhcBIaAOXQ8hkW8r-TbzVI66WNwND_efFd45tkYlLYw453DNA7k4tYBQ56jBNtb04UNjAWE2XG88azuPJ3cnEGYuOT1OrG_AhA458VwHiojnizwcIaMJZKBxQ4AIEn0PdbzmuB–Y7K9UCTcmRDlPNDmMJAyvFLeyCkZuDAqwA_qcASV0PCCySmUAQgzs4-V0rUVaj0GU5yzWURhrisyHXSPs0MzqOzO03RQPKumfxWN9VyhKcCk_9Bve29daiTAqxiOEN2nIFNA’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS011c04bd=01445fed048840a49486656e6e1806e8f25c0b6fd26cb1c81730b701e4f831f36438b312d3014f1c9a160f5694d84a0ffdf35df0a0’
–data ‘{
“subscription”: {
“requestId”: “2244348e-7e78-4ba1-8fc1-0cea0e590897”,
“isApplicableForAllHIPs”: true,
“includedSources”: [
{
“hiTypes”: [
“Prescription”, “DiagnosticReport”, “OPConsultation”, “DischargeSummary”, “ImmunizationRecord”, “HealthDocumentRecord”, “WellnessRecord”
],
“purpose”: {
“text”: “Requested”,
“code”: “PATRQT”,
“refUri”: “string”
},
“hip”: {
“id”: “Yore_Locker_HIP”,
“name”: “YoreCare Locker HIP Facility”
},
“categories”: [
“LINK”,“DATA”
],
“period”: {
“from”: “2023-06-12T11:58:38.709Z”,
“to”: “2025-06-10T08:41:53.039Z”
}
}
],
“excludedSources”: null
},
“autoApproval”: {
“isApplicableForAllHIPs”: true,
“hiu”: {
“id”: “Yore_Locker_HIU”,
“name”: “YoreCare Locker HIU Facility”
},
“includedSources”: [
{
“hiTypes”: [
“Prescription”, “DiagnosticReport”, “OPConsultation”, “DischargeSummary”, “ImmunizationRecord”, “HealthDocumentRecord”, “WellnessRecord”
],
“purpose”: {
“text”: “Requested”,
“code”: “PATRQT”,
“refUri”: “string”
},
“hip”: {
“id”: “Yore_Locker_HIP”,
“name”: “YoreCare Locker HIP Facility”
},
“period”: {
“from”: “2023-06-12T11:58:38.709Z”,
“to”: “2025-06-10T08:41:53.039Z”
}
}
],
“excludedSources”: null
},
“authorization”: {
“requestId”: “c9161e01-122f-4ec9-b1ff-0119ed4f647e”,
“generatePerpetualToken”: true
}
}’
Response
{
“subscriptionId”: null,
“autoApprovalId”: “431782c7-7651-4000-a77a-c393cc3998c5”,
“authorizationId”: null
}
Thank you in advance for your assistance, and I look forward to your prompt response.
Regards,
Himanshu Singh