Locker subscription id is n=null while using approval post api

@IntegrationSupport
@Ramandeep1
POST API: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

}

}`

RESPONSE RECIEVED:
{ "subscriptionId": null, "autoApprovalId": "752b573a-fd08-4cad-a23d-21ef4de266eb", "authorizationId": "208a2a95-43bd-48d7-a76a-2383f31148a9" }

I have also faced this issue.
Please make sure that you are using the right subscription id generated against the auth request.
“The Ids on auth/on-it and the locker request (/patients/requests) were different, the later one worked.”

Thanks @prakharmohan for supporting other integrators, @Rohit007 I hope your issue has been resolved.

Thanks

  1. https://dev.ndhm.gov.in/cm/patients/requests (screenshot-1)
  2. https://dev.abdm.gov.in/cm/locker-requests/approve (screenshot-2)

Correct subscription-id need to be passed here as subscription : requestId , that we received from the response of https://dev.ndhm.gov.in/cm/patients/requests for particular locker.
Then we will get the subscription-id in response.

Yes it got resolved but for more clarity can you provide sample json needed for the body to make this request.
I had one question if we have included hiType where we can mention which Hitype to include then why we have exclude hiType list in the body if we can already not mention the Hitype in the Include Hitype list if we want to exclude!