Create consent request issue

Hi @Shubhanshu_Shukla,

I’m having the below questions related to create a consent request feature in HIU implementation.

  • In API /v0.5/consent-requests/init Is a hip filed mandatory? If yes please let me know the API to get a list of HIPs. In sample HIU while creating a consent request there is no option to select HIP. Without a hip how consent request is generated there?

  • When ever we get any error in callback API like /v0.5/consent-requests/on-init why does the type of timestamp field change from Date to Array?

please look at the below response with the error

{requestId=b54b92bf-355c-4dcb-879a-231ac6606817, error={code=2500, message=consent.hip.id: HIP identifier is not specified.}, timestamp=[2021, 10, 6, 4, 34, 2, 262229000], resp={requestId=c1f7727e-3912-46a6-aa0e-c5df8ea7b4b6}}

Can you clarify the above doubts?

Thanks.