Hi @Shubhanshu_S, @Pankaj, @neha.parnami,
I am trying to validate the Abha Address using DEMOGRAPHICS as Fetch Mode, but I am not getting Abha Address and Abha Number and residential address (address) in callback response of /auth/on-confirm.
HIP ID: TatamdHip.
Kindly take a look into it
Below is the request and response payload for /auth/confirm and /auth/on-confirm api calls:
{{GATEWAY_HOST}}/v0.5/users/auth/confirm:
Request Payload:
{
“requestId”: “{{$guid}}”,
“timestamp”: “{{$isoTimestamp}}”,
“transactionId”: “4d0d5173-72f9-4eb8-9eef-eb2bba06ead4”,
“credential”: {
"authCode": null,
"demographic": {
"name": "Vinita Prakash Demblani",
"gender": "F",
"dateOfBirth": "1992-10-16",
"identifier": {
"type": "MOBILE",
"value": "+917709767701"
}
}
}
}
Callback API:
https://webhook.site/e8141542-18fc-48e6-9258-4b4cffbe4e62/v0.5/users/auth/on-confirm
Response:
{
“requestId”: “684dadab-2a75-48a9-bd10-9e25df3323f8”,
“timestamp”: “2022-11-03T09:39:59.225978”,
“auth”: {
“accessToken”: “eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJ2aW5pdGF2YWxpZGF0ZTFAc2J4IiwicmVxdWVzdGVyVHlwZSI6IkhJUCIsInJlcXVlc3RlcklkIjoiVGF0YW1kSGlwIiwicGF0aWVudElkIjoidmluaXRhdmFsaWRhdGUxQHNieCIsInNlc3Npb25JZCI6ImZjMTdkMTYzLWNiYzktNGZlMi1iOGIyLTUwNDhjNjllYTlmMyIsImV4cCI6MTY2NzU1NDc5OSwiaWF0IjoxNjY3NDY4Mzk5fQ.OTkwZbV0qhlZFSkoNzxJ0U1T6cFbjFm_HauEQAEemYkVqn-GK1eoM30fGloYJH39dBzw_wEvb5V7EauZeBOKDgVVy-2Pt7KijLaR89Hro0jmeIK7nre4AAKX5kYpkA1YUSVdjm7i0XUR4USL_X9Eue1X2XRDk09XlsCLvEqTW7pU8vmxnYP4h9nq2b7eyQdr46f1g5dhnPRSu4C6HHn9lgDfDYGPrHpSHbWCQ8OCUZM7YC2vC-0_M0yWcyO7-T15yKaRNIJNZxzCZd8Fkngtwn4bE8AkaHkoBfHggio3_9BNiiFtv_2JQcWgGsGTuYThnzz1dN4AyjS5Igbm20S16g”,
“patient”: {
“id”: null,
“name”: “Vinita Prakash Demblani”,
“gender”: “F”,
“yearOfBirth”: 1992,
“monthOfBirth”: 10,
“dayOfBirth”: 16,
“address”: null,
“identifiers”: [
{
“type”: “MOBILE”,
“value”: “+917709767701”
}
]
}
},
“error”: null,
“resp”: {
“requestId”: “1b5b6fca-e606-4fc5-8ff8-4b9bc665cb85”
}
}