@IntegrationSupport @Ramandeep1
Recieving subscription Id null in this case
this is the JSON body for the post request I used
https://dev.abdm.gov.in/cm/locker-requests/approve
{
“subscription”: {
"requestId": "8008ce86-ca87-4b7a-a2da-15e9ddd10db3",
"isApplicableForAllHIPs": true,
"includedSources": [
{
"hiTypes": [
"Prescription"
],
"purpose": {
"text": "Self requested",
"code": "PATRQT",
"refUri": ""
},
"hip":null,
"categories": [
"LINK","DATA"
],
"period": {
"from": "2023-03-16T12:14:27.7529687",
"to": "2070-01-01T00:00:00Z"
}
}
],
"excludedSources": [
{
"hiTypes": [
"DiagnosticReport", "OPConsultation", "DischargeSummary", "ImmunizationRecord", "HealthDocumentRecord", "WellnessRecord"
],
"purpose": {
"text": "Self requested",
"code": "PATRQT",
"refUri": ""
},
"hip":null,
"categories": [
"LINK","DATA"
],
"period": {
"from": "2040-03-16T10:41:57.910Z",
"to": "2042-03-16T10:41:57.910Z"
}
}
]
},
“autoApproval”: {
"isApplicableForAllHIPs": true,
"hiu": {
"id": "Locker_India_3",
"name": "Locker_India_3"
},
"includedSources": [
{
"hiTypes": [
"Prescription"
],
"purpose": {
"text": "Self requested",
"code": "PATRQT",
"refUri": ""
},
"hip":null,
"period": {
"from": "2023-03-16T12:14:27.7529687",
"to": "2070-01-01T00:00:00Z"
}
}
],
"excludedSources": [
{
"hiTypes": [
"DiagnosticReport", "OPConsultation", "DischargeSummary", "ImmunizationRecord", "HealthDocumentRecord", "WellnessRecord"
],
"purpose": {
"text": "Self requested",
"code": "PATRQT",
"refUri": ""
},
"hip":null
}
]
},
“authorization”: {
"requestId": "208a2a95-43bd-48d7-a76a-2383f31148a9",
"generatePerpetualToken": true
}
}