We host WhatsApp bots for many businesses, each on its own number in its own Meta business. When a client says "the bot stopped replying", the cause is almost never our code. It's their side of Meta: no card on file, an unverified business, a number Meta has flagged, or a number that quietly stopped being linked to us. Ops couldn't see any of it. They'd get the client on a call and walk them through Meta Business Settings, screen by screen.

So the ask was one button per number: is it still ours, does it have a payment method, what's its quality rating, and will it reply to customers and send templates.

The obvious field is closed

A WhatsApp Business Account (WABA) has a primary_funding_id field. It's the payment method. Ask for it with a system-user token that manages the account, and Meta says:

You do not have permission to perform this action. This action requires that the Business that owns this App is a Business Solution Provider for WhatsApp.

Tech providers, which is most platforms that onboard clients through Embedded Signup, aren't Solution Providers. We can send messages on the account, create templates and read its quality rating, but we can't see whether a card is on file.

health_status looked like the answer

The phone-number node has a health_status field. It claims to answer the question we care about, "can this number send?", for every layer that can block it: the number, the WABA, the business and the app.

GET /{phone_number_id}?fields=status,quality_rating,
    whatsapp_business_manager_messaging_limit,health_status

On a number with no card, it does name the problem:

can_send_message: BLOCKED
  WABA:     "There is an error with the payment method. This will block
             business initiated conversations."
  BUSINESS: "The Business has not passed business verification."

So the first version of the payment check was: is there a health_status error mentioning payment? We can't see the card, but Meta tells us when the lack of one is the problem.

The noise

On our healthy test number, every entity said AVAILABLE, and two of them still carried errors:

PHONE_NUMBER (AVAILABLE): "WhatsApp Business calling cannot use
                           SIP because it is not enabled"
APP          (AVAILABLE): "This app cannot use SIP for WhatsApp
                           Business calling…"

That's the calling product, not messaging. Show every error and every number looks broken. The rule that worked: only read errors from entities whose can_send_message isn't AVAILABLE, and drop the SIP ones.

Two more things fall out of the same calls:

  • Is it still ours? If the system-user token can read the phone number at all, it's still in our portfolio. A removed number comes back as "Object … does not exist, cannot be loaded due to missing permissions". Then check GET /{waba}/subscribed_apps for your own app id: a number can be readable and still not send its webhooks to you, so the bot never hears the customer.
  • Which WABA? health_status.entities includes the WABA's id, so old records that never saved one still work.

Where it lied

The same day, ops tried the button on two real numbers and got opposite answers:

  • One said BLOCKED with a payment error, and the bot's replies still reached the phone. The error text was honest: it blocks business-initiated conversations, not replies.
  • Another said only LIMITED (business not verified), no payment error at all, and its replies never arrived. Our chat history showed every one of them, because we save a reply when Meta accepts it with a 200, not when it lands.

health_status is Meta's opinion about sending, not a record of delivery. A green health check and a 200 on the send both mean "accepted". Neither means the customer got it.

The webhook we were dropping

Meta reports what actually happened to a message on its status webhook: sent, delivered, read or failed, and a failed status carries an error code. Our handler used those statuses to update rows for template messages. Bot replies have no row, so their failures were matched against nothing and thrown away, without a log line.

So I added one:

if (status === "failed") {
  const phoneNumberId = value.metadata?.phone_number_id;
  console.warn(`[wa-failed] phoneNumberId=${phoneNumberId} to=${s.recipient_id} ` +
    `code=${s.errors?.[0]?.code} ${reason}`);
}

The first test message after it deployed answered the question:

[wa-failed] phoneNumberId=… to=… code=131031 Business account has been locked.

Not the card at all. The WABA's account_review_status was PENDING: Meta hadn't finished reviewing the account, and until it does, every message from it fails, replies included. That field is readable without Solution Provider status, and health_status never mentions it. We've seen the same thing with several clients since: once Meta approves the review, replies start landing with nothing changed on our side.

What the button checks now

Five lines per number, each OK, Warning, Failing or Unknown, with Meta's own reason underneath. Three Graph calls, no client login, no screen share.

  1. Linked with us: the token can read the number, and our app is in the WABA's subscribed_apps.
  2. Payment method: Warning if health_status names a payment error, otherwise Unknown. "No error reported" isn't proof of a card, so it doesn't get to say OK.
  3. Quality rating: green, yellow or red, plus the daily messaging limit.
  4. Replies to users: fails if the number isn't connected, isn't subscribed, the account review isn't APPROVED, or Meta blocks it for a reason other than payment.
  5. Sends templates: the same, plus a warning for payment errors, since those block business-initiated messages.

And when ops still hear "it's not replying" with everything green, the [wa-failed] log has the code. In the first hour it also surfaced a number losing most of a marketing blast to 131049, Meta's per-user cap on marketing messages, which nobody had been able to see either.

What I'd reuse

  • When a platform hides the field you want, look for the field that reports the consequence. We couldn't ask "is there a card?", but we could ask "what's blocking this number?".
  • Filter platform health signals before you show them. Errors on entities that are fine are noise, and noise makes every row look broken.
  • A 200 means accepted, and so does a green health check. Log delivery failures themselves, every one, with the error code: that's the only place the platform tells you what actually happened.
  • Don't let "no error" render as OK. If you can't see the thing, say Unknown.