# PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSING: Template uses variables that were not sent.

- Category: Public API
- HTTP status: 422
- Reference: https://docs.bizkithub.com/en/errors/PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSING

## What happened

The subject or body of the template contains `{{ variable }}` placeholders with no value. Nothing was sent, so the recipient never gets a half-filled e-mail. The error context lists the missing names.

## How to resolve

1. Add the listed keys to `variables` (use `null` for an intentionally empty value).
2. Order variables (orderNumber, payLink, …) need `orderHash`.

## Example response

```json
{
  "state": "error",
  "code": 422,
  "message": "Template uses variables that were not sent.",
  "errorCode": "PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSING",
  "hint": "The subject or body of the template contains `{{ variable }}` placeholders with no value. Nothing was sent, so the recipient never gets a half-filled e-mail. The error context lists the missing names.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSING"
}
```
