# PDF Template Change for Vaccine Certificates

Any template-related changes can be done by updating the HTML template in the etcd manager. Supported fields include the following:&#x20;

| Beneficiary Details     | Vaccination Details | Previous Dose Details     |
| ----------------------- | ------------------- | ------------------------- |
| name                    | vaccine             | vaxEvents\[].dateOfVax    |
| age                     | vaccinationDate     | vaxEvents\[].doseType     |
| gender                  | vaccineBatch        | vaxEvents\[].vaxName      |
| identity (masked value) | vaccineICD11Code    | vaxEvents\[].vaxType      |
| nationality             | vaccineProphylaxis  | vaxEvents\[].vaxBatch     |
| beneficiaryId           | vaccineType         | vaxEvents\[].countryOfVax |
| recipientAddress        | vaccineManufacturer |                           |
|                         | vaccineValidDays    |                           |
|                         | vaccinatedBy        |                           |
|                         | vaccinatedAt        |                           |
|                         | certificateId       |                           |
|                         | dose                |                           |
|                         | totalDoses          |                           |

### **Example: Adding a field such as ‘nationality’ to the PDF template.**

### Steps to add ‘nationality’ to the PDF templat&#x65;**:**

* Go to the Manage keys in the etcd-manager.&#x20;
* Go to the “vaccineCertificateTemplate” key and click on the Edit key to update the template. In this case, the ‘nationality’ field is being added. The value expected for the “vaccineCertificateTemplate” configuration is html and can be customised as per your needs.&#x20;
* The same will be reflected in the PDF of the vaccination certificate. Click on Save. A popup will appear as “operation successful.” Click on Close.

![](/files/tDbPaXt5zpWH2zV7pyuL)

* Call “GET VaccineCertificate API,” which will return the PDF certificate template. Verify if the new field ‘nationality’ is getting reflected.

![Sample certificate](/files/rNIUSPropCK6vuE3gjYu)

[![Creative Commons License](https://i.creativecommons.org/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)*All content on this page by* [*eGov Foundation*](https://egov.org.in/) *is licensed under a* [*Creative Commons Attribution 4.0 International License*](http://creativecommons.org/licenses/by/4.0/)*.*  &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://divoc.digit.org/platform/configuration/configuration-management-via-etcd/pdf-template-change-for-vaccine-certificates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
