cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

Required alternative/solution to download certificate for beneficiaryID on Sandbox server #434

Open mit41196 opened 3 years ago

mit41196 commented 3 years ago

Hi Team,

I want to test certificate/download & v2/appointment/beneficiaries APIs on sandbox server of cowin to complete our integration. As per cowin guidelines, we can submit for functional demo testing only after complete integration in order to access production server API key. How can we test this on sandbox server as there does not exist any possible way to associate any certificate with specific beneficiary? Kindly let us know is there any alternative way to download certificate for beneficiary ID of sandbox server otherwise for beneficiary that exists on sandbox server, we always get the following attached error case for download/certificate API.

Can you suggest how to resolve this case on sandbox server so that we can be able to show proper functional demo as per the requirement @cowinapi. Looking forward to your response as soon as possible, team, It would be much appreciated. Thank you.

ErrorCertificate

arunim2405 commented 3 years ago

This is not a solution but just a tedious last resort, use public API to test and integrate the download certificate API and then change it back to protected once you've checked the solution

Cosmonaut191 commented 3 years ago

@mit41196 Hi, did you register yourself for access to the sandbox APIs. If yes, may I know the turnaround time for the registration to get completed from the date of registration. Thanks in advance.

bkpdada commented 3 years ago

@arunim2405 how can we download the certificate after OTP verification in Public API? It's asking for 'beneficiary_reference_id'. Can you help me with that?

arunim2405 commented 3 years ago

@bkpdada decode the token you get from the auth api, after decoding you will get primary beneficiary id