WhatsApp errors 132000 and 132012: template parameter mismatch

WhatsApp errors 132000 and 132012 are template variable errors. 132000 “Number of parameters does not match” means you sent more or fewer variable values than the template has. 132012 “Parameter format does not match” means a value is in the wrong form for its place in the template, for example text where a media file is expected. Both are usually caused by API integrations. This page shows how to fix them in Fast2SMS.

What the two errors mean

Code Meta’s meaning (at the time of writing) Typical cause
132000 The number of variable values in the request does not match the number of variables in the template Template has {{1}} and {{2}} but the request sends one value, or three
132012 Variable values are not formatted as the template expects Header needs an image, video or document but none is sent; wrong type of value for a button or header

Remember that a template can have variables in more than one place: the header text (one variable at most), the body ({{1}}, {{2}} and so on), and a dynamic website button URL. Each needs its own value.

Fixing it in the Fast2SMS panel

  1. Fill every variable in Bulk WhatsApp

    After you pick a template, Bulk WhatsApp shows one box per variable (Variable 1 ({{1}}), Variable 2 ({{2}}) and so on) and a file box for a media header. The panel will not send until each is filled: you see “Please enter value for …” or “Please select and upload required header …” if something is missing.

    Bulk WhatsApp form with Header (Image) file box and Variable 1 and Variable 2 boxes filled with Customer and 20%
    One box per variable, plus the header file.
  2. With a CSV file, map a column to each variable

    When you send from a CSV or Excel file, choose a column for every variable. Make sure no cell in those columns is empty, because an empty value can make the message fail for that row.

Fixing it in the API

  1. Check how many variables the template has

    Open WhatsApp Manager > Templates and click Sample Code on the template. The example shows the message_id to use and a variables_values parameter with one value per variable, separated by a pipe (|). The template list API (/dev/dlt_manager/whatsapp?type=template) also returns var_count for each template.

    Sample Code window with a cURL request showing message_id, numbers and variables_values=value1|value2
    Sample Code shows how many values the template needs.
  2. Send exactly that many values

    For a template with two body variables, send variables_values=Ravi|DT-1059. Do not leave a value out because it is empty in your database; send a fallback such as “Customer” instead.

    curl -G 'https://www.fast2sms.com/dev/whatsapp' \
      -H 'authorization: YOUR_API_KEY' \
      --data-urlencode 'message_id=20006' \
      --data-urlencode 'numbers=9999999999' \
      --data-urlencode 'variables_values=Ravi|DT-1059'
  3. Send the media for a media header

    If the template has an image, video or document header, add media_url with a public link to the file. A missing or wrong media type is a common cause of 132012.

  4. Watch out for the pipe character

    Because values are separated by “|”, a value that itself contains “|” is split into two values. Remove that character from names, addresses and product titles before sending.

If you use the Meta-format API

If you send Meta’s JSON through Fast2SMS (/dev/whatsapp/{version}/{phone_number_id}/messages), each component needs its own parameters list: one for the header, one for the body, and one per dynamic button. Count the parameters in each component against the approved template.

Frequently asked questions

Can I leave a variable empty?

No. Every variable needs a value. Use a sensible default like “Customer” when you do not have the real value.

Are messages that failed with 132000 refunded?

Yes. Fast2SMS refunds every failed WhatsApp message to your wallet automatically, about two days after sending.

I edited the template. Why do old requests fail now?

If the edit added or removed variables, your integration must send the new number of values once the edit is approved.

Does the header text variable count separately?

Yes. A text header can have one variable of its own, in addition to the body variables.

What is the difference between 132000 and 132001?

132000 is a variable count problem. 132001 means the template name or language was not found, or the template is not approved.