BizKitHub
PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSING

Template uses variables that were not sent.

Z BizKitHub Docs, reference chybových kódů API

Názvy a popisy kódů udržujeme v angličtině.

HTTP 422Veřejné 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.

Jak to vyřešit

  1. 1

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

  2. 2

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

Ukázka odpovědi

API odpoví statusem HTTP 422 a tělem ve formátu JSON. Porovnávejte errorCode, ne message. Zprávy se mohou přeformulovat, kódy zůstávají stejné.

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