> For the complete documentation index, see [llms.txt](https://midatechnologies.gitbook.io/mida-developer-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://midatechnologies.gitbook.io/mida-developer-portal/midaforms/offer-letters.md).

# Offer letters

#### Create offer letter

Field description

<table><thead><tr><th width="51">#</th><th width="160">Field</th><th width="302">Description</th><th>Type</th><th data-type="checkbox">isOptional?</th></tr></thead><tbody><tr><td>1</td><td>name</td><td>Offer letter name</td><td>string</td><td>false</td></tr><tr><td>2</td><td>productId</td><td>Linked loan product ID</td><td>UUID</td><td>false</td></tr><tr><td>3</td><td>templateHtml</td><td>HTML template body</td><td>string</td><td>false</td></tr><tr><td>4</td><td>templateVariables</td><td>Variable names used in the template</td><td>string[]</td><td>false</td></tr><tr><td>5</td><td>isActive</td><td>Active status (default: true)</td><td>boolean</td><td>true</td></tr></tbody></table>

API Url

<pre><code><strong>POST {base url}/integrations/v1/offer-letters
</strong></code></pre>

Sample

```
{
  "name": "Personal Loan Offer Letter",
  "productId": "a3f1e2d4-5c6b-7a89-b012-34567cdef890",
  "templateHtml": "<html><body><p>Dear {{customerName}}, your loan of {{loanAmount}} has been approved.</p></body></html>",
  "templateVariables": ["customerName", "loanAmount"],
  "isActive": true
}
```
