Share Profile Flow

Hey @all,
We have made some implementation change in **profile/share** API,
We have published the details completely.

Please use end point and payload in below given format,

/v1/patients/profile/share

Request body

{ "requestId": "{{$guid}}", "intent": { "type": "string" }, "location": { "latitude": "string", "longitude": "string" }, "hipDetails": { "hipId": "HIP_Code", "code": "12345" } }

Responses :

{ "status": "SUCCESS", "healthId": "string", "tokenNumber": "string" }

/v1.0/patients/profile/share (Share patient profile details)

Request body :

{ "requestId": "ea00912c-f4f4-49b5-8c30-b9353ca0dc42", "timestamp": "2022-08-29T10:16:09.1299564", "intent": { "type": "string" }, "location": { "latitude": "string", "longitude": "string" }, "profile": { "hipCode": "12345", "patient": { "healthId": "phrAddress", "healthIdNumber": null, "name": "String", "gender": "M", "address": { "line": "Delhi,North West", "district": "North West", "state": "Delhi", "pincode": null }, "yearOfBirth": 1991, "dayOfBirth": 18, "monthOfBirth": 10, "identifiers": [ { "type": "MOBILE", "value": "XXXXX" }, { "type": "NDHM_HEALTH_NUMBER", "value": null } ] } } }

Responses
202 Request accepted

/v1.0/patients/profile/on-share (Response to patient’s share profile request)
Request body :

{ "requestId": "5f7a535d-a3fd-416b-b069-c97d021fbacd", "timestamp": "2022-08-26T07:58:36.759Z", "acknowledgement": { "status": "SUCCESS", "healthId": "<username>@<suffix>", "tokenNumber": "string" }, "error": { "code": 1000, "message": "string" }, "resp": { "requestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } }

Responses
202 Request accepted

Thanks

This gives us the below error
{ "error": { "code": 1500, "message": "Unknown error occurred" } }

@IntegrationSupport

Hi @sankalp,
Please use only this curl for share profile API

curl --location --request POST ‘https://dev.abdm.gov.in/cm/v1/patients/profile/share
–header ‘X-Auth-Token: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJkcmF0aG9yZTgzQHNieCIsImNsaWVudElkIjoiREVFUEFLX0xUSSIsInN5c3RlbSI6IkFCSEEtQSIsInJlcXVlc3RlcklkIjoiUEhSLVdFQiIsInBock1vYmlsZSI6bnVsbCwiZXhwIjoxNjczMzMxODMwLCJpYXQiOjE2NzMzMjQ2MzAsInBockFkZHJlc3MiOiJkcmF0aG9yZTgzQHNieCIsInR4bklkIjoiMzVkZDZlMTItNWYyMC00YTdlLWFlMzctNmQ3MjA1OWExYmIzIn0.MVLKLyQSj1UuazlQu9F3uNMIu7oVDRaZl1yWeVTTOQGVM6f6KjsH-KRLF0j8LB_DmMvwOSwF78Z-tVFbTRK615LFtSF3fX_1y1cI4DvHGNCTFQf3MQ6_L5FtpRWzOgFwOVfqEvtcqwbXOpSMGGwIy8G32MwYQHPXvAh2hr1vixeweVlzkSrVn7znEtJJrKaSN6TiTrEjWLAf3UIz5Z9Zrgz9Il6en_sbI7CqZvUEZS3PimxVnr9eWzR53yWqgE1pNQUToEdWSkof5HV27x7JEOjbc9knKeyk1ko8O6Rm4y3CzWxsAdpiN4HRwVEMzghoTqyS3SRrCAd43c8iuoW5Rg’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01445fed0417ea6635e2fa96e3a9787f5312c48c897ed81e6f65e076d8d33b3d58353b70ed46c5b51603a3cfa226c479912ecf0cdc; TS011c04bd=01445fed0452ddce52227e6a81f72e8ebdeef9a460e35667c7f0ee7de4e3932e7f62f4e4acddefbe1da3b0d0264572f53e06343a4b’
–data-raw ‘{
“requestId”: “50729ce6-72c7-4fed-a31d-0264fdf1f121”,
“intent”: {
“type”: “REGISTRATION”
},
“location”: {
“latitude”: “28.644800”,
“longitude”: “77.216721”
},
“hipDetails”: {
“hipId”: “IN3410000286”,
“code”: “10055-9999”
},
“source”: “ANDROID”
}’

1 Like