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.

  1. Request for an OTP first using the MOSIP’s resident services generate OTP API
    Request URL

    POST: 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 }
  2. Request for Credential Issuance
    Request URL

    Request Body

    Response Body

  3. Request for downloading the PDF card
    Request URL

    Request Body

    Response Body

  4. 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.