autoApprovalId is null in locker setup

hi, @IntegrationSupport,

when i approve locker-requests then why autoApprovalId is null,

My Request Object is in lockerSetups (https://dev.ndhm.gov.in/cm/patients/requests);

{
"subscription": {
    "id": "7b78539f-956a-400a-a779-6dc4700debe9",
    "createdAt": "2023-08-07T15:58:07.231903",
    "lastUpdated": "2023-08-07T15:58:07.231903",
    "purpose": {
        "text": "Health Locker Test",
        "code": "Healthray_health_locker_test",
        "refUri": "string"
    },
    "patient": {
        "id": "darshanbabariya3@sbx"
    },
    "hiu": {
        "id": "HEALTHRAY_LOCKER",
        "name": "Jonsan Healthray Locker"
    },
    "hips": null,
    "categories": [
        "LINK",
        "DATA"
    ],
    "period": {
        "from": "2022-01-31T08:54:51.397",
        "to": "2023-01-31T08:54:51.397"
    },
    "status": "REQUESTED",
    "requesterType": "HEALTH_LOCKER",
    "subscriptionId": null
},
"authorization": {
    "requestId": "10f29a58-4706-454d-bf1b-6b3b947a4678",
    "patientId": "darshanbabariya3@sbx",
    "status": "REQUESTED",
    "purpose": {
        "code": "KYC_AND_LINK",
        "text": "KYC, Link records"
    },
    "authMode": "DIRECT",
    "requester": {
        "type": "HEALTH_LOCKER",
        "id": "HEALTHRAY_LOCKER",
        "name": "Jonsan Healthray Locker"
    },
    "createdAt": "2023-08-07T10:28:00.558073",
    "lastUpdated": "2023-08-07T10:28:00.558073"
}

Request approve payload and url is
https://dev.abdm.gov.in/cm/locker-requests/approve

{
"authorization": {
    "generatePerpetualToken": true,
    "requestId": "10f29a58-4706-454d-bf1b-6b3b947a4678"
},
"autoApproval": {
    "excludedSources": [],
    "hiu": {
        "id": "HEALTHRAY_LOCKER_TEST",
        "name": "Jonsan Locker Test"
    },
    "includedSources": [
        {
            "hiTypes": [
                "Prescription",
                "OPConsultation",
                "DiagnosticReport",
                "DischargeSummary",
                "ImmunizationRecord",
                "HealthDocumentRecord",
                "WellnessRecord"
            ],
            "period": {
                "from": "2022-01-31T08:54:51.397Z",
                "to": "2023-01-31T08:54:51.397Z"
            },
            "purpose": {
                "text": "Health Locker Test",
                "code": "Healthray_health_locker_test",
                "refUri": "string"
            },
            "hip": null
        }
    ],
    "isApplicableForAllHIPs": true
},
"subscription": {
    "excludedSources": [],
    "includedSources": [
        {
            "categories": [
                "LINK",
                "DATA"
            ],
            "hiTypes": [
                "Prescription",
                "OPConsultation",
                "DiagnosticReport",
                "DischargeSummary",
                "ImmunizationRecord",
                "HealthDocumentRecord",
                "WellnessRecord"
            ],
            "period": {
                "from": "2022-01-31T08:54:51.397",
                "to": "2023-01-31T08:54:51.397"
            },
            "purpose": {
                "text": "Health Locker Test",
                "code": "Healthray_health_locker_test",
                "refUri": "string"
            },
            "hip": null
        }
    ],
    "isApplicableForAllHIPs": true,
    "requestId": "7b78539f-956a-400a-a779-6dc4700debe9"
}

}

@Sachin Can you please look into this thread.

any update @IntegrationSupport, @Sachin

@Jonsan_devganiya Please share your SBX Client ID

@IntegrationSupport, @Sachin
SBX Client ID - SBX_001372

We have escalated the concerned issue with the tech team. Will revert once we receive resolution.

@Jonsan_devganiya You are using the wrong date range and purpose code.

Attaching the screenshot for your reference.


Please use like this: “period”: { “from”: “2022-06-22T08:54:51.397”, “to”: “2024-12-18T08:54:51.397” }, “purpose”: { “code”: “PATRQT”, “refUri”: “string”, “text”: “Self Requested” } }