# Click-to-WhatsApp ads and the free entry point window

> How a Click-to-WhatsApp ad opens a free entry point window, how long it lasts, which messages are free, and how to detect and attribute it in webhooks.

Published 2026-11-02. Z-API Omni team.

A free entry point window opens when a user messages you from a Click-to-WhatsApp ad on Android or iOS and you reply inside the customer service window. Your reply is free and starts the window. Meta's developer pricing page says "The FEP window may remain open for up to 7 days". While it is open, "Meta does _not_ charge for marketing, utility, authentication or service messages" ([Meta pricing, accessed 2026-11-02](https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing)). Meta Business Agent messages are still charged.

## How the window opens

Meta's page covers users on "our Android or iOS app (since our desktop and web apps are not supported)". The sequence has three steps.

1. The user's message opens a customer service window, the 24-hour window for free-form replies.
2. You respond inside that window with a marketing, utility, authentication or service message.
3. "That message is _not_ charged and opens a Free Entry Point ("FEP") window, starting from the time when you responded."

The clock starts at your reply. If you answer after the customer service window has closed, there is no free entry point window to open. A first reply after 24 hours costs you the whole free period.

Meta's example walks through one exchange. The user writes from the ad, the business answers with a marketing carousel, a support agent replies, and an order confirmation follows. The result is "**0 charges**". The window belongs to the business and user pair, not to one Messaging account. "The Messaging account that funded the Click to WhatsApp ad does not get exclusive use of the window". Any account sending on that number sends free while it is open.

## 7 days or 72 hours

Meta publishes two durations. The developer pricing page, which carries the notice "This page reflects pricing updates that became effective as of October 1, 2026", says up to 7 days. The WhatsApp Business pricing page still read "for the following 3 days (72 hours), all of your messages are not charged" on 2026-11-02 ([WhatsApp Business pricing, accessed 2026-11-02](https://whatsappbusiness.com/products/platform-pricing/)). That page also still says "we do not charge for service messages", which stopped being true on 1 October 2026. It names a Facebook Page call-to-action button as a second entry point, which the developer page does not list.

On 2026-10-28 the same gap was there, and [the post on the October 2026 billing change](/academy/articles/meta-whatsapp-service-message-charges-october-2026/) recommended budgeting from the developer page. That still holds. "Up to 7 days" is also a ceiling Meta does not promise to reach. Read the window state from the status webhooks instead of computing it.

## Detect an ad lead in the inbound webhook

A message that came from the ad carries a `referral` object inside `messages[]`. Meta documents it on the [text message webhook reference](https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/reference/messages/text) (accessed 2026-11-02). This is Meta's example, trimmed to the message:

```json
{
  "referral": {
    "source_url": "https://fb.me/3cr4Wqqkv",
    "source_id": "120226305854810726",
    "source_type": "ad",
    "body": "Summer Succulents are here!",
    "headline": "Chat with us",
    "media_type": "image",
    "image_url": "https://scontent.xx.fbcdn.net/v/t45.1...",
    "ctwa_clid": "Aff-n8ZTODiE79d22KtAwQKj9e_mIEOOj27vDVwFjN80dp4_0NiNhEgpGo0AHemvuSoifXaytfTzcchptiErTKCqTrJ5nW1h7IHYeYymGb5K5J5iTROpBhWAGaIAeUzHL50",
    "welcome_message": {
      "text": "Hi there! Let us know how we can help!"
    }
  },
  "from": "16505551234",
  "id": "wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQUQ0N0VFMDA2MTQ0RkJFNkNDNAA=",
  "timestamp": "1750275992",
  "text": { "body": "Can I get more info about this?" },
  "type": "text"
}
```

`source_id` is the ad ID and `ctwa_clid` is the click ID. Meta omits `ctwa_clid` "for messages originating from an ad in WhatsApp Status". Code that requires it drops those leads, so treat it as optional. Meta includes `referral` "only if message sent via a Click to WhatsApp ad", so save it on the message where it appears.

## Detect the window in status webhooks

Meta marks free entry point messages in the `pricing` object of each status webhook ([status webhook reference](https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/reference/messages/status), accessed 2026-11-02). `pricing.type` is `free_entry_point`, which "Indicates the message is free because it was sent within an open free entry point window". `pricing.category` is `referral_conversion`, "a free entry point conversation".

The `conversation` object helps too. From Graph API v24.0 it "will be omitted entirely, unless the webhook is for a message sent within an open free entry point window". In that case `conversation.id` "will be unique per window". `expiration_timestamp`, "when the conversation will expire", appears on the `sent` status only.

This Node.js function reads a status webhook and returns the window details per message:

```javascript
function freeEntryPointInfo(body) {
  const out = [];
  for (const entry of body.entry ?? []) {
    for (const change of entry.changes ?? []) {
      for (const s of change.value?.statuses ?? []) {
        const isFep = s.pricing?.type === "free_entry_point";
        out.push({
          message_id: s.id,
          status: s.status,
          free_entry_point: isFep,
          window_id: isFep ? s.conversation?.id ?? null : null,
          expires_at: s.conversation?.expiration_timestamp
            ? new Date(Number(s.conversation.expiration_timestamp) * 1000).toISOString()
            : null
        });
      }
    }
  }
  return out;
}

console.log(freeEntryPointInfo({ entry: [{ changes: [{ value: { statuses: [{
  id: "wamid.EXAMPLE", status: "sent", timestamp: "1750276000", recipient_id: "16505551234",
  conversation: { id: "8f842dbba350821654c9dfed31f5635c", expiration_timestamp: "1750880800",
    origin: { type: "referral_conversion" } },
  pricing: { pricing_model: "PMP", type: "free_entry_point", category: "referral_conversion" }
}]}}]}]}));
```

Store `expires_at` per user and check it before a marketing send. While the window is open, a template that would otherwise be charged goes out free. After it closes, the normal rate card applies.

## Attribute the lead to the ad

Write the referral to your own table on the first message:

```sql
CREATE TABLE whatsapp_ad_leads (
  wa_id         text PRIMARY KEY,
  first_msg_id  text NOT NULL,
  ad_id         text NOT NULL,          -- referral.source_id
  ctwa_clid     text,                   -- null for WhatsApp Status ads
  headline      text,
  received_at   timestamptz NOT NULL
);

INSERT INTO whatsapp_ad_leads (wa_id, first_msg_id, ad_id, ctwa_clid, headline, received_at)
VALUES ('16505551234', 'wamid.HBgLMTY1...', '120226305854810726', 'Aff-n8ZT...', 'Chat with us', to_timestamp(1750275992))
ON CONFLICT (wa_id) DO NOTHING;
```

`ON CONFLICT DO NOTHING` keeps the first ad that brought the user in. Use an append-only table instead if you want every ad touch.

To report a sale back to Meta, use the [Conversions API for Business Messaging](https://developers.facebook.com/docs/marketing-api/conversions-api/business-messaging) (accessed 2026-11-02). Meta's guide says "Upon receiving the `ctwa_clid`, store it with the conversation". Then, "When a conversion has happened within a conversation, send the corresponding `ctwa_clid` via the Conversions API". The event goes to `POST /{DATASET_ID}/events` with `action_source` `business_messaging` and `messaging_channel` `whatsapp`. You get the dataset ID from `POST /{WHATSAPP_BUSINESS_ACCOUNT_ID}/dataset`, which returns the existing one if a dataset is already linked.

```bash
curl -X POST "https://graph.facebook.com/v26.0/DATASET_ID/events?access_token=ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "data": [{
      "event_name": "Purchase",
      "event_time": EVENT_UNIX_TIME,
      "action_source": "business_messaging",
      "messaging_channel": "whatsapp",
      "user_data": {
        "whatsapp_business_account_id": "WABA_ID",
        "ctwa_clid": "CTWA_CLID"
      },
      "custom_data": { "currency": "USD", "value": 123 }
    }]
  }'
```

## On the QR connection

The free entry point window is a pricing rule of Meta's WhatsApp Business Platform, and the `pricing` and `conversation` fields come from the Cloud API. A QR connection has no per-message cost to waive. Z-API Omni offers both connections in the same account, and on the official connection Meta's fees are passed through as Meta bills them ([View documentation](https://developer.omni.z-api.io/en)).

<!-- TODO:test Omni snippet: whether the Omni webhook for an inbound WhatsApp message on the official connection passes Meta's referral object (source_id, ctwa_clid) and the status pricing.type unchanged, and under which field names -->

*Z-API Omni team*
