PUBLIC_EMAILER_TEMPLATE_VARIABLES_MISSINGTemplate uses variables that were not sent.
Z BizKitHub Docs, dokumentacja kodów błędów API
Nazwy i opisy kodów prowadzimy po angielsku.
HTTP 422Publiczne 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 rozwiązać
- 1
Add the listed keys to `variables` (use `null` for an intentionally empty value).
- 2
Order variables (orderNumber, payLink, …) need `orderHash`.
Przykładowa odpowiedź
API odpowiada statusem HTTP 422 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.
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"
}