Sendra / Guides

Fix WhatsApp API errors 131047, 131042, 131026 and more

Error 131047 means the 24-hour reply window has closed, so send an approved template. Error 131042 means there's a payment problem in Meta. Error 131026 means WhatsApp couldn't deliver the message. Errors 132000 and 132001 are about templates.

By BobWork. Updated .

Quick fixes

Code What it means and what to do
131047 More than 24 hours since the customer last wrote. Send an approved template.
131026 WhatsApp couldn't deliver it. Check the number and that the person can receive WhatsApp messages. If they haven't written in the last 24 hours, use a template.
131042 Meta couldn't charge your business for a message. Add or fix your card using the Meta billing link in the error. Meta doesn't say which code it uses when free replies run out, so also check the error text.
132000 The number of template values is wrong.
132001 There's no template with that name and language.

131047: the 24-hour window is closed

More than 24 hours have passed since the customer's last message. Trying the same text again won't help.

  1. Send an approved template instead.
  2. If the customer replies, a new 24-hour window starts.
  3. In your app, save the time of each customer's last message and check it before sending free text.

Test it for free: in Sendra's sandbox, send text to a number that hasn't written to you. The message is accepted with a warning, then fails with 131047. Set up the sandbox.

131042: Meta has a payment problem

Meta's reasons include no payment account on this WhatsApp account and a credit line that's over its limit.

  1. Open Meta billing for the same WhatsApp account that sent the message.
  2. Add or fix the payment method. A new card can take 5 to 10 minutes to start working.
  3. Read the full error text before you send the message again.

Payment problems can also start once a number has used its free replies. See the October 2026 rules. The sandbox doesn't charge anything, so it can't test real payment problems.

131026: the message can't be delivered

Meta lists several possible reasons, and the code doesn't always tell you which one it is. Check that:

  • the number includes its country code and uses WhatsApp
  • the person has accepted WhatsApp's current terms
  • they're using a supported version of WhatsApp

Don't keep sending the same message. Ask the person to update WhatsApp or message you first, or contact them another way they agreed to.

Test it for free: in the sandbox, send a message to +12025550101. It's accepted first, then always fails with 131026, even if you haven't simulated a message from it.

132000: the number of template values is wrong

The number of values you sent doesn't match the template. Count its placeholders, then send one value for each, in the right order.

Test it for free: in the sandbox, send sandbox_order_update without exactly two values.

132001: the template wasn't found or isn't approved

Check three things:

  1. The name: it must match exactly.
  2. The language: en and en_US are different.
  3. Its status: Meta must have approved it in that language.

Test it for free: in the sandbox, send hello_world with the language set to en. Its language is en_US.

Handle errors safely

  • Handle both kinds of failure. Some errors come back straight away. Others arrive later in a status update.
  • Don't retry every error. Trying again won't fix a closed window, the wrong template or a missing card.
  • Check before you send again. After a timeout or server error, the first message may still have been sent. Check your message list first, so the customer doesn't get it twice.
  • Keep the whole error. Save the code and the full text, but don't save API keys in your logs.

Sendra returns Meta's code when Meta provides it. See all Sendra errors.

Common questions

How do I fix WhatsApp error 131047?

Send an approved template, or wait for the customer to message you. You can send free text for 24 hours after their last message.

How do I fix WhatsApp error 131042?

Open Meta's billing settings. Check that this WhatsApp account has a working payment method, then read the full error for the exact problem. A card on Sendra can't pay Meta's fees.

Does error 131026 mean someone blocked me?

Don't assume that. Meta lists several possible reasons, including a number that isn't on WhatsApp, terms the customer hasn't accepted and an old version of the app.

Why did a message fail after the API accepted it?

Accepted means the request was received. It doesn't mean the message was delivered. Check later status updates, because the message can still fail.

Sources

Checked 2 December 2026. Prices and features change, so check the links before you decide. If something here is out of date, tell us and we'll fix it.

Related

Try it before you connect a number

Sign up free and create a sandbox key. You don't need a phone or a Meta account, and test messages never reach real people.

Start freeConnect a number with Claude Code