BizKitHub
PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSING

Template uses variables that were not sent.

Aus BizKitHub Docs, der Referenz der API-Fehlercodes

Titel und Beschreibungen der Codes pflegen wir auf Englisch.

HTTP 422Öffentliche API
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.

So beheben Sie es

  1. 1

    Add the listed keys to `variables` (use `null` for an intentionally empty value).

  2. 2

    Order variables (orderNumber, payLink, …) need `orderHash`.

Beispielantwort

Die API antwortet mit HTTP 422 und einem JSON-Body. Vergleichen Sie errorCode, nicht message. Meldungen können umformuliert werden, Codes bleiben stabil.

application/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"
}