Hi team,
@IntegrationSupport
I am sending an api address for care context discovery in M2
API - https://dev.abdm.gov.in/hiecm/api/v3/patient/care-context/discover
headers = {
‘REQUEST-ID’: str(uuid.uuid4()),
‘TIMESTAMP’: current_timestamp,
‘Authorization’: f’Bearer {self.session_token[“accessToken”]}’,
‘Content-Type’: ‘application/json’,
‘X-AUTH-TOKEN’: payload[“x-auth-token”],
‘X-CM-ID’: “sbx”,
‘X-HIP-ID’: “MTPL_001”,
}
X-AUTH-TOKEN is the auth token from verify/login from M1
When i hit this api with request
request. = {
“hipId”: “ABDM_HIP”,
“unverifiedIdentifiers”: [
{
“type”: “ABHA_ADDRESS”,
“value”: “danish.6362@sbx”
}
]
}
response = requests.post(
url, headers=headers, data=json.dumps(request))
Here i get the response as
{“error”:{“code”:2500,“message”:“Unknown error occurred”}}
Can you tell me what am i doing wrong here
Regards
Danish