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

The protected API for downloading Certificate throwing 500 error #443

Closed BhawanjitSinghSaini closed 3 years ago

BhawanjitSinghSaini commented 3 years ago

The protected API for downloading Certificate throwing 500 error

https://cdndemo-api.co-vin.in/api/v2/registration/certificate/download

BhawanjitSinghSaini commented 3 years ago

The Error

{"errorCode":"CERTIFICATE00002","error":"parsing body body from \"\" failed, because json: cannot unmarshal string into Go struct field CertificationRequestV2RecipientAddress.recipient.address.pincode of type int64"}

big89 commented 3 years ago

In response of this API call, you will get pdf data in binary format that you need to display as pdf file.

curl -X GET "https://cdndemo-api.co-vin.in/api/v2/registration/certificate/download?beneficiary_reference_id=1234567890123" -H "accept: application/pdf" -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxx"

Thanks, Logicmaker

BhawanjitSinghSaini commented 3 years ago

@big89 yes i know that. But i am getting this error.