Send WhatsApp conversion event
Forward a WhatsApp Business Messaging conversion event to Meta's Conversions API with action_source = business_messaging and messaging_channel = whatsapp.
Supported events:
LeadSubmittedQualifiedLeadPurchaseAddToCartInitiateCheckoutViewContentOrderCreatedOrderCanceledOrderReturned
The endpoint looks up the originating CTWA click ID (ctwa_clid) captured on the first inbound message of the conversation. It replays it on every event so Meta can attribute the conversion back to the Click-to-WhatsApp ad that drove the chat.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Body
application/jsonWhat every request needs
WhatsApp SocialAccount ID.
LeadSubmitted | QualifiedLead | Purchase | AddToCart | InitiateCheckout | ViewContent | OrderCreated | OrderCanceled | OrderReturnedEvent names accepted by Meta's CAPI for Business
Messaging. Other standard pixel events including Lead,
CompleteRegistration, Subscribe, Schedule, Contact,
StartTrial, AddPaymentInfo, Search, and
SubmitApplication are rejected with subcode 2804066
("Messaging Event Invalid Event Type") on
action_source = business_messaging events. Custom event
names are also rejected.
Use LeadSubmitted (NOT Lead) when a lead comes in and
QualifiedLead once your team qualifies it. OrderCreated,
OrderCanceled and OrderReturned track an order placed in
the chat; send value and currency with them (and with
Purchase) to report the order amount.
Stable dedup key. Reuse to suppress duplicate events (Meta dedupes against pixel events with the same id).
Optional parameters9 fields
Unix seconds. Defaults to the time of the request when omitted. Meta's attribution window is 7 days from click; events older than that lose attribution.
Zernio Conversation _id (preferred lookup). The
conversation must have a captured ctwa_clid in metadata
(set automatically by the WhatsApp webhook on the first
inbound message after a CTWA ad click).
Contact phone number, digits only with no '+'. When used
in lieu of conversationId, the handler resolves to the
most recent CTWA-attributed conversation for this phone
on the supplied account.
Conversion value (e.g. order total).
ISO 4217 currency code (e.g. USD).
Optional product / content identifiers.
User email. Normalized + SHA-256 hashed before sending to Meta.
Stable customer identifier. Lowercased + SHA-256 hashed before sending to Meta.
Meta test_event_code passthrough, sent at the request root
(a root-level test_event_code is accepted as an alias). The
event shows in Events Manager's Test Events tab for the
dataset whose current test code matches. Meta still
processes it like any other event, so remove it in production.
Responses
Success· the request worked
Errors· the request failed
How it behaves
Configuration prerequisite
On the WhatsApp account metadata:
metaCapiDatasetId: the Meta dataset ID linked to the WABA. Provision one withPOST /v1/whatsapp/dataset.
The WABA ID (already set automatically at connect time) is forwarded as user_data.whatsapp_business_account_id, the per-channel attribution identifier Meta requires for WhatsApp events. No Facebook Page ID is needed (that field is the Messenger-branch identifier).
Identifying the conversation
Identify the conversation by either conversationId (preferred) or phoneE164 (digits only, no +). At least one is required.
If the conversation has no captured ctwa_clid, the request returns 422 because there is nothing to attribute.
Token and dataset coupling
The WhatsApp account's accessToken must have access to the configured metaCapiDatasetId. By default a WABA's system-user token is scoped to the WABA's own Business Manager and cannot post to a pixel owned by a different Business; Meta returns code 100 in that case.
To fix it, either:
- share the dataset with the WhatsApp app's Business in BM, or
- use a dataset already in the same Business as the WABA.
List conversion events
Returns the most recent conversion events sent through `POST /v1/whatsapp/conversions` for the given WhatsApp account. It is sourced from delivery logs (Axiom `late` dataset), so the visible window is bounded by log retention (about 30 days). Useful for rendering a "recent activity" panel on the conversions setup tab without standing up a parallel persistence layer. ### Per-event payload It mirrors the structured log we write on every successful send: - `eventName` - `conversationId` - `eventsReceived` - `eventsFailed` - `traceId` - `durationMs` - the wall-clock `timestamp`
List account notifications
Returns Meta-originated events recorded for a WhatsApp account, newest first: - template review outcomes (approved, rejected, paused, category changes) - WABA status changes (restricted, disabled, reinstated, disconnected) Events are captured from Meta webhooks as they happen. The feed starts at the account's first recorded event and is not backfilled. Complements the push events `whatsapp.template.status_updated` and `account.disconnected` with a pollable history.