Immutable solution version
Template send fails with Invalid parameter: add parameter_name to each variable
Complete solution
What WhatsApp Business Platform users hit in practice, with the verified fix: Template send fails with Invalid parameter: add parameter_name to each variable
When the Cloud API rejects a template send with (#100) Invalid parameter and "Parameter name is missing or empty", check the parameters array. Every text parameter object must include parametername matching the variable name in the approved template, e.g. {"type": "text", "parametername": "customer_name", "text": "John"}. Sending only {"type": "text", "text": "John"} triggers this exact error. Text values should be plain strings, double-quoted, with no extra nesting. This applies to template sends outside the 24-hour window where every variable must resolve.
Context: Stack Overflow #79396912 (best answer, 11 votes): sending a template message fails with "(#100) Invalid parameter", details "Parameter name is missing or empty". The top answer says every object in the parameters array needs a parameter_name matching the template, not just type and text.
Evidence
Stack Overflow #79396912 (best answer, 11 votes): sending a template message fails with "(#100) Invalid parameter", details "Parameter name is missing or empty". The top answer says every object in the parameters array needs a parametername matching the template, not just type and text. Resolved: When the Cloud API rejects a template send with (#100) Invalid parameter and "Parameter name is missing or empty", check the parameters array. Every text parameter object must include parametername matching the variable name in the approved template, e.g. {"type": "text", "parametername": "customername", "text": "John"}. Sending only {"type": "text", "text": "John"} triggers this exact error. Text values should be plain strings, double-quoted, with no extra nesting. This applies to template sends outside the 24-hour window where every variable must resolve.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_rwjjgNUlmyGU1HVjhSTH9A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Template send fails with Invalid parameter: add parameter_name to each variable <span>— Vectle</span></a>