# EmailTemplates

> An e-mail template per kind of document and language: subject, text, cc and attachments.

Subject: Documents.

An e-mail template per kind of document and language: subject, text, cc and attachments.

Label in Fledge: Mailconfigurator.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/EmailTemplates` |
| Key | `administration_id`, `config_type`, `email_template_id`, `language_code_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, BASISAPP |
| Write licenses | BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/EmailTemplates?$filter=administration_id eq 1&$select=config_type,email_template_id,language_code_id,attachments,filename,bcc&$top=50
GET https://odata-api.fledge.nl/v2-8/EmailTemplates(administration_id=1,config_type='{config_type}',email_template_id={email_template_id},language_code_id={language_code_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `config_type` (key) | String, not null | Gerelateerde tabel. The kind of document, as a table code: vofh quotation, vboh order confirmation, vplh picklist, vpbh delivery note, vfch sales invoice, aanm payment reminder, iofh purchase quotation, iboh purchase order, pknp a blank e-mail. |
| `email_template_id` (key) | Int32, not null | Volgnummer |
| `language_code_id` (key) | Int32 | Taalkode. The language; 0 is the template for any language. |
| `attachments` | String | Attachments. Full paths of files sent with every e-mail of this template, separated by \|. Documents linked to the template in DocumentLinks (linked_table mcfg) are sent too. |
| `bcc` | String | Bcc |
| `cc` | String | Cc |
| `document_category_id` | String | Documentcategorie code |
| `filename` | String | Bestandsnaam |
| `memo` | String | Standaardtekst |
| `reply_to` | String | Reply to |
| `subject` | String | Onderwerp |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `DocumentCategory` → [DocumentCategories](https://docs.fledge.nl/en/api/reference/DocumentCategories.md) (one)
- `LanguageCode` → [LanguageCodes](https://docs.fledge.nl/en/api/reference/LanguageCodes.md) (one)

---

Source: https://docs.fledge.nl/en/api/reference/EmailTemplates
