@IntegrationSupport Yes firstly we called this API ("/subscription-requests/cm/init") and after that, we called this API (“https://dev.abdm.gov.in/gateway/v0.5/users/auth/init”) but in the first request we got Bad request as a response and in second we didn’t get any response. For reference, I’m attaching CURL and images
Subscription CURL
curl --location ‘https://dev.abdm.gov.in/gateway/v0.5/subscription-requests/cm/init’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODcxNzAzMzEsImlhdCI6MTY4NzE2OTczMSwianRpIjoiN2VlM2JhOWQtNTQ4Ni00ZmJmLWJhMTYtMzQwMDQyZmI1ZGMyIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkZjIzMTFiYi0wODVlLTQxNjEtYWMyNC0wYzA3M2NjNDFhZTciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAzMjc5Iiwic2Vzc2lvbl9zdGF0ZSI6IjMyMGZjNGI0LTMxMmQtNGE2OC1hZjlmLWM3NDNiYTk3ZWIzNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAzMjc5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny40MiIsImNsaWVudElkIjoiU0JYXzAwMzI3OSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDMyNzkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjQyIn0.di6I2Col_NecVbdWpNdkZw0E4qBcgRdSBNwNzcJGzcIMIZJxhRkNaCI1LkXzinMmXJj44PqW-UIemyTn4woh6kLL2SgD7F2rpKvhzVEvdkGGa_uZ9pGq7d5syihWTVoYhncwxT74tHVRoWtT__EPrYtlFtGwIVcRYnDaCXFperGciCh9H14R0wclVHb3g6gS_T0zz_0fkgpM0AbpjUEpo0lvjXI9Oa5u0sZz73185_vW0FClwCYMXYxjHypGMeeJDHLXfBLti1lYod5Pxkn6sIRThhoE4AnOQHnySp2ZlDERr-Sang4tlEyMkYPZcD6wsHGR20oWubemHzjl91Ot0g’
–header ‘Cookie: TS011c04bd=01445fed04ee48c1fe605975fd09b00cc77770361d3282cb5c9265872a01bd85e2c3f411b36fb56297534f1a7dd84d021f24b832be’
–data-raw ‘{
“requestId”: “708de54a-1549-49d3-a9fb-7d6110b01520”,
“timestamp”: “2023-06-19T10:31:29.701Z”,
“subscription”: {
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”
},
“patient”: {
“id”: “gautam654@sbx”
},
“hiu”: {
“id”: “YoreLocker2023”
},
“hips”: [
{
“id”: “Yore_Locker_HIP”
}
],
“categories”: [
“LINK”,“DATA”
],
“period”: {
“from”: “2010-01-31T08:54:51.397Z”,
“to”: “2030-01-31T08:54:51.397Z”
}
}
}’
Response
auth/init CURL
curl --location ‘https://dev.abdm.gov.in/gateway/v0.5/users/auth/init’
–header ‘accept: /’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Accept: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODcxNzAzMzEsImlhdCI6MTY4NzE2OTczMSwianRpIjoiN2VlM2JhOWQtNTQ4Ni00ZmJmLWJhMTYtMzQwMDQyZmI1ZGMyIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkZjIzMTFiYi0wODVlLTQxNjEtYWMyNC0wYzA3M2NjNDFhZTciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAzMjc5Iiwic2Vzc2lvbl9zdGF0ZSI6IjMyMGZjNGI0LTMxMmQtNGE2OC1hZjlmLWM3NDNiYTk3ZWIzNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAzMjc5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny40MiIsImNsaWVudElkIjoiU0JYXzAwMzI3OSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDMyNzkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjQyIn0.di6I2Col_NecVbdWpNdkZw0E4qBcgRdSBNwNzcJGzcIMIZJxhRkNaCI1LkXzinMmXJj44PqW-UIemyTn4woh6kLL2SgD7F2rpKvhzVEvdkGGa_uZ9pGq7d5syihWTVoYhncwxT74tHVRoWtT__EPrYtlFtGwIVcRYnDaCXFperGciCh9H14R0wclVHb3g6gS_T0zz_0fkgpM0AbpjUEpo0lvjXI9Oa5u0sZz73185_vW0FClwCYMXYxjHypGMeeJDHLXfBLti1lYod5Pxkn6sIRThhoE4AnOQHnySp2ZlDERr-Sang4tlEyMkYPZcD6wsHGR20oWubemHzjl91Ot0g’
–header ‘Cookie: TS011c04bd=01445fed04ee48c1fe605975fd09b00cc77770361d3282cb5c9265872a01bd85e2c3f411b36fb56297534f1a7dd84d021f24b832be’
–data-raw ‘{
“requestId”: “83eb30bc-95dd-4706-9f9d-16bf451bc5f7”,
“timestamp”: “2023-06-19T10:31:09.673Z”,
“query”: {
“id”: “gautam654@sbx”,
“purpose”: “KYC_AND_LINK”,
“authMode”: “DIRECT”,
“requester”: {
“type”: “HEALTH_LOCKER”,
“id”: “YoreLocker2023”
}
}
}’
Thanks for your fast assistance and please look into it.
Kindly update asap.
Regards,
Himanshu Singh