PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSINGTemplate uses variables that were not sent.
Z BizKitHub Docs, referencia chybových kódov API
Názvy a popisy kódov udržiavame v angličtine.
HTTP 422Verejné 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.
Ako to vyriešiť
- 1
Add the listed keys to `variables` (use `null` for an intentionally empty value).
- 2
Order variables (orderNumber, payLink, …) need `orderHash`.
Ukážka odpovede
API odpovie statusom HTTP 422 a telom vo formáte JSON. Porovnávajte errorCode, nie message. Správy sa môžu preformulovať, kódy zostávajú rovnaké.
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"
}