BizKitHub
PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSING

Template uses variables that were not sent.

From BizKitHub Docs, the API error code reference

HTTP 422Public 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.

How to resolve

  1. 1

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

  2. 2

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

Example response

The API answers with HTTP 422 and a JSON body. Match on errorCode, not on message. Messages may be reworded, codes are stable.

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