API encryption issue in P1(PHR API)

@IntegrationSupport

Out Client ID is SBX_001699

and PHR ID added in bridge is SBX_001699_PHR

when calling “https://dev.abdm.gov.in/cm/v1/apps/phrAddress/auth-confirm” API Endpoint We get 400 bad request with error code 1417 Please Let us know how to encrypt this data because we could not find any reference for encryption data in this API

We Want To Integrate P1 for PHR App so Please Resolve our query ASAP because we stuck in P1 for that

curl --location ‘https://dev.abdm.gov.in/cm/v1/apps/phrAddress/auth-confirm
–header ‘Content-Type: application/json’
–header ‘Accept: /
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NzkwNDY5OTEsImlhdCI6MTY3OTA0NjM5MSwianRpIjoiNGQzZDU1ZjktODU2Zi00OWQxLWFiNmEtNGI5YWJhNTQyN2U0IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhYmJlNTM5OS1kODE3LTQwZjAtYmNiMi0wNDY1YmQ3NzA5NmMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxNjk5Iiwic2Vzc2lvbl9zdGF0ZSI6IjY3NTNlNjIyLTlkYmItNGU2Ni05MjAzLWU2NjE2MzJiZjMzZSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAxNjk5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny42NSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiY2xpZW50SWQiOiJTQlhfMDAxNjk5IiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDE2OTkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjY1In0.JYX0MP28ArgfIynSElrIZyz9aJK30-3SCeBF6PnCfayiCw-fWsmDZTDv4kJdXmXf1uFzZGeZTxcDjHfZFs_x4VITJJNAgiWjUehaMjer3ay206eYcEd4lJ3um8ZgZMJ8s8hXc4Rg_TwNekMUMSMTEHnQmhe9yJZSIJTsZtnPaY9nq_iMQHXLNxiDnhiEI6jeHMB9mog6twfDACmhJa9YNyaGKI5_lf7mv19R3HOqp0_shULrAvwY_AovS4ghWiw_spKXcwwn_7wkPdWhhZvenDktA5Ov0pI2Jg3ImA0VQdH_kPzuLeWNM0ODDi0F2jyg5V4x4bvZ4zDS2fLrnXU2Zg’
–header ‘Cookie: TS011c04bd=01445fed0496a49a5ca7306f5288820bd80b90d19e95a78842ef7766a5fa6074bbda1bec7d26c27e63dafed683ba8641cf34f103ea’
–data ‘{
“transactionId”: “bd99357d-fd14-4b92-8b09-2086978c7bc2”,
“authCode”: “825586”,
“requesterId”: “SBX_001699_PHR”
}’

Got This Error
{
“error”: {
“code”: 1417,
“message”: “Input Data must be encrypted. Plain text is not allowed.”
}
}

Issue Resolved Please Refer to this thread answer

Is the HIP sharing the records in FHIR format and which FHIR bundle you are trying to send.
Please go through this particular link, You will understand encryption:

2 Likes