Share APIs not getting response

Hello @IntegrationSupport,

When we use profile/share in the testing environment, it’s working fine but when we use it in the production environment, we not getting any response from your side and for your reference, I kept CURL and image below

curl --location ‘https://api.yore.care/v1/patients/profile/share
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJwaW5jb2RlIjpudWxsLCJzdWIiOiJoaW1hbnNodXNpbmdoNTI5NkBhYmRtIiwiY2xpZW50SWQiOiJQSFItV0VCIiwicmVxdWVzdGVySWQiOiJQSFItV0VCIiwiZ2VuZGVyIjoiTSIsImRpc3RyaWN0TmFtZSI6IkdIQVpJQUJBRCIsIm1vYmlsZSI6Ijk5NTM0ODA5MzYiLCJmdWxsTmFtZSI6IkhpbWFuc2h1IFNpbmdoIiwiYWRkcmVzc0xpbmUiOiJDL08gQmFsd2FudCBTaW5naCBBbG1peWEgTS02NS1CIFNhbmpheSBOYWdhciBTZWN0b3ItMjMgR2hhemlhYmFkIiwiaGVhbHRoSWROdW1iZXIiOiI5MS0zODE2LTQxMDAtMTczNCIsIm1vbnRoT2ZCaXJ0aCI6IjIiLCJzeXN0ZW0iOiJBQkhBLUEiLCJzdGF0ZU5hbWUiOiJVVFRBUiBQUkFERVNIIiwiZGF5T2ZCaXJ0aCI6IjUiLCJwaHJNb2JpbGUiOiI5OTUzNDgwOTM2IiwiZXhwIjoxNjg2NzMyNjk0LCJpYXQiOjE2ODY3MjU0OTQsInBockFkZHJlc3MiOiJoaW1hbnNodXNpbmdoNTI5NkBhYmRtIiwiZW1haWwiOm51bGwsInR4bklkIjoiYmE3YWMyNTQtNGUxYi00ZjY4LTk4OWUtODdiYzIyODYxMmQxIiwieWVhck9mQmlydGgiOiIxOTk2In0.FhLhdblCukEiy1fC0VeSO-DMmqMZa4n1qo-b0xGG34yG5Bbm0iTFjSlfl6naef25ooYBQlCZ3zgbVwIJypoJ7IgSOW-WKJgnMnDfo0IUPmZkAMyCe-0-7RGlkt4XJbg2RD9xaX0LW7MXSQr7E-rFvBvAPgSUXni0SWcqufSBq89WI-yAJ2gDTAc2a2XF53iGenKmwJoWnRAWHH4MqoUUsZPcQEpzrMUaomCu2GrXUcC2ORRAErHH24YA8DfE60CAExQkGY35VygGdWLDJ4Ekyq2JmCCwrRHGvyVbgk0X-YQO9CnTvY0_AgKd7_Xm0cOs3csKJagqz86SJzH0NvU8bw’
–header ‘Content-Type: application/json’
–header ‘Cookie: connect.sid=s%3AS571m7dbknCyAImSbzh5-oJL9UkDSAaN.w2rck5OSBLxVnGfhY3k8CMRmIZ7RN09iQBbtlEevE%2BA’
–data ‘{
“requestId”: “5ad39e69-6c47-487d-97eb-6e142b9eb7c0”,
“intent”: {
“type”: “Requested”
},
“location”: {
“latitude”: “string”,
“longitude”: “string”
},
“hipDetails”: {
“hipId”: “IN3410000260”,
“code”: “12345”
}
}’

Thank you in advance for your assistance, and I look forward to your prompt response.

Regards,
Himanshu Singh

@himanshu0502 Incorrect URL used :
Production URL : https://live.abdm.gov.in
if you are not live you cannot access it as we share key for production access after approval of your milestones by NHA.

@IntegrationSupport, Thank you for your reply
But it always responds with the status code 404 not found


Kindly help with it .

@IntegrationSupport, please resolve this query

@IntegrationSupport, Waiting for your valuable response

@himanshu0502 Can you please explain why you are using live URL. Testing to be done in sandbox environment only. image

@IntegrationSupport What can we do to make the OPD Registration work in the Production Environment, as currently when we are running the following API’s in the production level then we are getting the response “Unauthorized” or “Bad Request”.

Kindly provide the curl’s API for the same, asap so that we can make our product live and provide a valuable contribution to NHA.

Email: himanshu@adsindia.tech

@himanshu0502 Hello, can you please share screenshot of the payload from postman?
@Sachin please help ADS team.

@himanshu0502,

Let us connect over a call to understand and resolve this issue, kindly let me know you availability on the mail (abdm.pc20@nha.gov.in). and share this devforum link on that mail.

CC: @IntegrationSupport

@IntegrationSupport, I am attaching both screenshot and curl’s

curl --location ‘https://live.ndhm.gov.in/cm/v1/patients/profile/share
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJwaW5jb2RlIjpud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A’
–header ‘Content-Type: application/json’
–data ‘{
“requestId”: “11aa46fb-a1aa-4c78-bd39-b70510f2b9d2”,
“intent”: {
“type”: “string”
},
“location”: {
“latitude”: “string”,
“longitude”: “string”
},
“hipDetails”: {
“hipId”: “IN3410000260”,
“code”: “12345”
}
}’

Kindly check and update me where I am getting wrong.

Regards,
Himanshu Singh

@Sachin Please check this.

@himanshu0502

let us connect for this, i have sent you the mail on meeting details.