How to download a UIN card (in PDF) in MOSIP?
Here we have documented the steps to download a UIN card (in PDF) in MOSIP.
Instructions
Step by step guide to download a PDF card.
Request for an OTP first using the MOSIP’s resident services generate OTP API
Request URLPOST: https:/{base_URL}/resident/v1/req/otp
Request Body
{ "id": "mosip.identity.otp.internal", "individualId": "4279865235", "metadata": {}, "otpChannel": ["PHONE","EMAIL"], "requestTime": "2021-04-20T05:09:45.410Z", "transactionID": "1234567890", "version": "1.0" }
Response Body
{ "id": "mosip.identity.otp.internal", "version": "1.0", "transactionID": "1234567890", "responseTime": "2021-04-20T05:09:55.221Z", "errors": null, "response": { "maskedMobile": "XXXXXX8538", "maskedEmail": "XXkXXiXXbXXaXXiXXnXX9@gmail.com" }, "metadata": null }
Request for Credential Issuance
Request URLRequest Body
Response Body
Request for downloading the PDF card
Request URLRequest Body
Response Body
When you save it as PDF you will get the below output.
The PDF is generated using a template available in the template database. The implementation of print service should be changed by every country.