← Blog

·

Eduzz + official WhatsApp API: how to automate messages

Updated on November 10, 2026

To automate WhatsApp messages from Eduzz with the official API, you create a webhook configuration in the Eduzz Console, pick the events (invoice paid, waiting payment, canceled, abandoned cart, subscription updated) and, for each event, send a Meta-approved template to the buyer’s phone. Eduzz signs every delivery with HMAC-SHA256 in the x-signature header, and invoice events carry the buyer’s name, email and mobile number. Invoice updates tend to be utility (R$ 0.0350 per delivered message in Brazil); abandoned cart is marketing (R$ 0.3217).

Eduzz is a Brazilian platform for selling digital products such as online courses and memberships. This article is the technical walkthrough. The messaging strategy for digital product sellers is in WhatsApp for online course creators.

Three ways to connect Eduzz to the official WhatsApp API

Eduzz documents more than one integration route. Choose by how much logic you need:

RouteHow it worksWhen to use it
Pluga + WhatsApp Business API“Send message from a template” action, triggered by invoice and contract eventsFew events, no server of your own
n8n with the official Eduzz nodeCommunity node @eduzz/n8n-nodes-eduzz receives events; an HTTP Request node sends the templateVisual logic with filters and waits
Direct webhook to your backendThe Console posts JSON to your URL; you validate and sendVolume, many products, your own CRM

The help center article on the Pluga integration lists the triggers (invoice open, expired, paid, refunded and canceled, plus contract late) and the Meta-side requirements: Business Manager, a number not linked to another API platform, a payment method in WhatsApp Manager and an approved template. According to the article, this action is Premium, available on Pluga’s paid plans.

The official n8n node requires a Console app, a Personal Token and the webhook_read and webhook_write scopes. The rest of this guide covers the third route, which gives the most control. If you are new to the API, start with the official WhatsApp API guide.

Create the webhook in the Eduzz Console

In the Eduzz Console, open Configurações and click + Nova configuração. The form asks for (creating a webhook):

  1. Configuration name.
  2. Access key, used to sign messages.
  3. Delivery URL, which must return HTTP 200–299 on the test.
  4. Maximum events sent in parallel.
  5. Which events you want to receive.

When you activate or verify the URL, Eduzz sends a ping event with data.message: "ping"; just return 2xx (verification event). You only get events for products in the logged-in account. Some events can be filtered by metadata (for example productId), so you don’t receive everything when only one course has a WhatsApp flow.

Every event shares the same envelope: id, event, data and sentDate (webhook introduction). The delivery history screen shows status, number of attempts and your API’s response time, and lets you resend an event manually (history).

Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →

Events that matter for WhatsApp

EventWhen it arrivesMessageLikely category
myeduzz.invoice_paidInvoice paidAccess granted, purchase detailsUtility
myeduzz.invoice_waiting_paymentInvoice awaiting paymentPending boleto or Pix, with linkUtility, no promotional tone
myeduzz.invoice_canceledInvoice canceledCancellation noticeUtility
myeduzz.invoice_refundedInvoice refundedRefund confirmationUtility
myeduzz.contract_updatedSubscription contract updated (the reason comes in data.reason: status change, negotiation, cancellation, suspension, reactivation…)Notice about the subscription changeUtility
sun.cart_abandonmentCheckout abandoned without paymentReminder to finishMarketing

The names come from the webhook reference. The same section lists other invoice states (open, scheduled, expired, chargeback, in recovery, negotiated, awaiting refund); check each exact name in the reference before using it. (A boleto is a Brazilian bank payment slip; Pix is Brazil’s instant payment system.)

The fields you need for WhatsApp live in different places depending on the event, which is the main source of bugs:

  • Invoice: data.buyer.name, data.buyer.cellphone (plus phone and phone2, all nullable), data.items[].name, data.paymentMethod (bankslip, pix, creditCard…), data.bankslipUrl and data.checkoutUrl.
  • Abandoned cart: data.customer.name, data.customer.phone, data.saleRecoveryUrl (checkout URL to recover the sale; the reference’s sample payload carries this URL in data.href, so check a real event) and data.lastStep, which shows how far the person got (mounted, user_data, cart_items, payment_sent, payment_failed) (abandoned cart).
  • Contract: the phone is an object with data.customer.phone.number, countryCode and areaCode.

lastStep helps you pick the tone: someone who reached payment_failed probably had a card problem, while someone who stopped at mounted barely started.

Validate x-signature

Eduzz builds the x-signature header with hmac('sha256', secret_key, request_body) (security). Recompute it over the raw body, before parsing, and compare in constant time. The docs show the function but not the output encoding; the example below uses hex, so confirm it with a real ping before going live. According to the docs, you can register as many keys as you want.

The same principle applies to WhatsApp’s own webhook, covered in WhatsApp webhook signature validation.

Python example (FastAPI)

import hmac, hashlib, os, re, httpx
from fastapi import FastAPI, Request, Response, BackgroundTasks

app = FastAPI()
SECRET = os.environ["EDUZZ_WEBHOOK_SECRET"].encode()
VECTALK = "https://apis.vectalk.com.br/api/messages"
TEMPLATES = {
    "myeduzz.invoice_paid": "eduzz_access_granted",
    "myeduzz.invoice_waiting_payment": "eduzz_payment_pending",
}
seen = set()  # in production: a table with a unique index on the event id

def normalize(phone: str | None) -> str | None:
    d = re.sub(r"\D", "", phone or "")
    if len(d) in (10, 11):  # Brazilian area code + number, no country code
        d = "55" + d
    return d or None

async def send(event: dict):
    data = event["data"]
    to = normalize(data["buyer"].get("cellphone") or data["buyer"].get("phone"))
    if not to:
        return
    payload = {
        "messaging_product": "whatsapp",
        "to": to,
        "type": "template",
        "template": {
            "name": TEMPLATES[event["event"]],
            "language": {"code": "pt_BR"},
            "components": [{
                "type": "body",
                "parameters": [
                    {"type": "text", "text": data["buyer"]["name"].split()[0]},
                    {"type": "text", "text": data["items"][0]["name"]},
                ],
            }],
        },
    }
    async with httpx.AsyncClient() as c:
        await c.post(VECTALK, json=payload,
                     headers={"Authorization": f"Bearer {os.environ['VECTALK_TOKEN']}"})

@app.post("/eduzz")
async def eduzz(request: Request, tasks: BackgroundTasks):
    body = await request.body()
    expected = hmac.new(SECRET, body, hashlib.sha256).hexdigest()
    if not hmac.compare_digest(expected, request.headers.get("x-signature", "")):
        return Response(status_code=401)
    event = await request.json()
    if event["event"] in TEMPLATES and event["id"] not in seen:
        seen.add(event["id"])
        tasks.add_task(send, event)
    return Response(status_code=200)

Return 2xx fast and hand the send to a background task or queue. Eduzz counts attempts in the history, so the same event can arrive again: use the event id as the idempotency key. The queue and retry pattern is in WhatsApp API integration architecture.

For the payment reminder, the template can carry a dynamic URL button pointing to bankslipUrl or checkoutUrl. If the link has a fixed part on your domain, register the base URL in the template and pass only the suffix as a variable. See the component structure in how to send a template message via the API.

Templates and categories

Meta classifies by content: utility is non-promotional and tied to a user’s transaction (template categorization). Examples in English (for Brazilian buyers, write them in Portuguese):

EventSample textCategory
Invoice paid“{{1}}, your payment for {{2}} was confirmed. Your access details were sent to your email.”Utility
Waiting payment“{{1}}, the invoice for {{2}} is awaiting payment. The link is in the button below.”Utility
Subscription late“{{1}}, we couldn’t find the payment for your {{2}} subscription. Update your payment method to keep access.”Utility
Abandoned cart“{{1}}, your sign-up for {{2}} is half done. Need help finishing?”Marketing

Discounts, urgency and “last spots” turn any of them into marketing. Abandoned cart is marketing even without an incentive and requires marketing opt-in. The full recovery playbook, with timing, is in recovering Pix, boleto and abandoned carts.

An invoice reminder for your own customer is utility. Third-party debt collection is prohibited by WhatsApp’s Business Messaging Policy.

How much it costs

For recipients in Brazil, since October 1, 2026 Meta charges R$ 0.0350 per delivered utility template and R$ 0.3217 per marketing template (pricing). A boleto sale with “waiting payment” and “invoice paid” costs R$ 0.07 in messages.

Utility templates sent inside the customer service window have also been charged since October 2026. Service messages (free-form replies within the window) get 1,000 free per number per month and are charged from the 1,001st. Model it in the WhatsApp API pricing calculator. If you also sell on Kiwify or Hotmart, see Kiwify + official WhatsApp and Hotmart + official WhatsApp.

How to do it with Vectalk

Vectalk is a proxy for Meta’s official Cloud API. Your backend, n8n or another tool receives the Eduzz webhook and calls POST https://apis.vectalk.com.br/api/messages with Meta’s template JSON (send template). Delivery statuses and replies arrive as webhooks in Meta’s format (webhooks). Templates are created in the dashboard, with the Template Library, or via the API.

Billing is prepaid: each delivered message is deducted from your balance, with no card at Meta. The number can stay in the WhatsApp Business app through coexistence. Vectalk has no native inbox, AI or bulk sending; support lives in your system or in tools connected to the API. Create your account at apps.vectalk.com.br/register.

Frequently asked questions

Does Eduzz send WhatsApp through the official API without an integration?

In Eduzz’s help center, the documented route to the WhatsApp Business API is the Pluga integration. To use your own templates and logic, connect through the webhook, either directly to your backend or via n8n.

Which field holds the buyer’s phone?

It depends on the event. For invoices, data.buyer.cellphone (or phone/phone2). For abandoned cart, data.customer.phone. For contracts, data.customer.phone, split into countryCode, areaCode and number. Normalize to international format without + before sending.

Can I use Eduzz’s recovery link in the template?

Yes. The sun.cart_abandonment event carries the checkout URL to recover the sale (data.saleRecoveryUrl in the reference; data.href in the sample payload, so check a real event). Use it in a URL button on a marketing template, for contacts with marketing opt-in.

How do I avoid repeated messages?

Store each event id with a unique index and skip repeats. Before sending a scheduled reminder, check that the invoice hasn’t already been paid.


Official sources consulted on November 10, 2026: Eduzz: webhook, Eduzz: creating a webhook, Eduzz: security, Eduzz: ping event, Eduzz: delivery history, Eduzz: invoice paid, Eduzz: waiting payment, Eduzz: abandoned cart, Eduzz: contract updated, Eduzz: n8n, Eduzz: WhatsApp Business API via Pluga, Meta: template categorization, Meta: pricing, WhatsApp Business Messaging Policy, Vectalk: send template, Vectalk: webhooks.

Put your business on the official WhatsApp

Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.