---
title: "Save the invoice email template"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Save the invoice email template

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="put">PUT</span>
<code class="cvo-op-path-code">/v1/email-template</code>
</div>
</div>

Saves a subject and a text. Each may use the fields `{{rechnungsnummer}}`, `{{verkaeufer}}`, `{{kaeufer}}`, `{{betrag}}` and `{{faellig}}`, filled from the invoice being sent; a fact the invoice does not state is left empty. Any other field is refused. Only a signed-in person can save it.

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The saved version. |
| `400` | A field is unknown, a part is empty or too long, or the body names another key (`invalid_email_template`). Nothing was saved. |
| `401` | No usable credential, or not a signed-in person (`invalid_credentials`, `session_required`). |
| `503` | No database is configured (`store_unavailable`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/save-the-invoice-email-template/index.mdx
