Updated on November 10, 2026
To connect Hotmart to the official WhatsApp Business API on your own number, you register a webhook in Hotmart (Tools > Webhook), receive purchase events in your backend, n8n or Make, and send an approved template through the official API for each event. An approved purchase becomes a welcome message with course access, and a generated boleto or PIX becomes a payment reminder; both fit the utility category. Cart abandonment also arrives through the webhook, but that message is marketing and needs extra care.
This article is the Hotmart-specific map: event names, where the phone number sits in the payload, how to validate the request origin and which template to send in each case. The general playbook for courses and coaching is in WhatsApp for online course creators, and the timing of PIX, boleto and cart reminders is in recovering PIX, boleto and abandoned carts. Quick context for readers outside Brazil: PIX is Brazil’s instant payment system and a boleto is a bank payment slip that can take a few days to be paid.
Hotmart’s WhatsApp features vs. a webhook on your own number
Hotmart’s blog says the platform has native WhatsApp features, such as cart recovery, purchase notifications and access reminders, and that they don’t require external tools. It does not say these features use the official WhatsApp API or that messages go out from the creator’s number. If you want everything to come from your official number, with your templates and your delivery reports, the documented path is the webhook.
The webhook only notifies your URL when a transaction changes status; your system picks the template and calls the API. If you’re new to the API, the official WhatsApp API guide covers numbers, templates and billing.
How to set up the webhook in Hotmart
According to Hotmart’s Help Center, the path is:
- Log in at app.hotmart.com.
- In the left-hand menu, click Tools > Show all.
- Open Webhook (API and notifications).
- Click + Register Webhook, give it a name, select the events and enter the delivery URL.
- Choose whether the configuration applies to all products or to one product, then save.
In the developer documentation, the current event version is 2.0.0: the payload’s version field shows the version chosen when the configuration was created. A few details shape the integration:
- Authentication: each account has a unique token, the hottok, sent in the
X-HOTMART-HOTTOKHTTP header of every request. Hotmart recommends validating it before processing the data. To change the key, you need to contact support. - Retries: failed posts are retried automatically up to five times, or until your URL responds successfully. You can also resend manually from the history or from the sale details.
- Failing URL: if the URL returns an error, Hotmart deactivates the configuration automatically. An endpoint that goes down switches your messages off.
- History and testing: the History tab shows sends, statuses and payloads for up to 60 days, and the My settings tab lets you run a test send.
Since the same notification can arrive more than once, use the event’s id field so you don’t message the same buyer twice.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Hotmart events and the template for each one
The documentation lists these purchase events: PURCHASE_CANCELED, PURCHASE_COMPLETE, PURCHASE_BILLET_PRINTED, PURCHASE_APPROVED, PURCHASE_PROTEST, PURCHASE_REFUNDED, PURCHASE_CHARGEBACK, PURCHASE_EXPIRED and PURCHASE_DELAYED. Cart abandonment has its own event, PURCHASE_OUT_OF_SHOPPING_CART, and Hotmart Club has CLUB_FIRST_ACCESS.
| Event | WhatsApp use | Likely category |
|---|---|---|
PURCHASE_APPROVED | Welcome with login or access link | Utility |
PURCHASE_BILLET_PRINTED | Payment reminder with the boleto link | Utility |
PURCHASE_EXPIRED | Notice that the payment expired, with a link to generate a new one | Utility, if there’s no offer |
PURCHASE_REFUNDED | Refund confirmation | Utility |
PURCHASE_DELAYED | Notice of the buyer’s own pending charge | Utility |
CLUB_FIRST_ACCESS | Stop the access reminder sequence | Sends nothing |
PURCHASE_OUT_OF_SHOPPING_CART | Cart reminder | Marketing |
Before turning on the sequence, check in the History tab which event arrives in each situation. This matters most for PIX: the documentation includes the pix_code, pix_qrcode and pix_expiration_date fields inside purchase.payment, but doesn’t say which event carries them.
PURCHASE_CHARGEBACK and PURCHASE_PROTEST call for action by your team, not an automated message.
Where the buyer’s phone number is
In purchase events, the phone comes in data.buyer.checkout_phone, filled in on the checkout page. For Brazilian buyers, the area code comes separately in data.buyer.checkout_phone_code. For international sales, the country code already comes with the number. For example, a buyer with area code 31 and phone 999999999 becomes 5531999999999 on WhatsApp (55 is Brazil’s country code).
Cart abandonment uses a different field: data.buyer.phone, which the documentation describes as the lead’s phone already including the country code.
Hotmart only sends the data the buyer filled in, and the creator decides which fields the checkout asks for. No phone at checkout, no WhatsApp. The API expects the number in international format without +, so normalize it before sending.
The flow: Hotmart → your system → official API
In a backend, n8n or Make, the order is the same:
- Receive the POST and compare
X-HOTMART-HOTTOKwith your account’s token. - Respond 2xx quickly, so Hotmart doesn’t retry or deactivate the URL.
- Discard events whose
idhas already been processed. - Map
eventto an approved template and build the phone number. - Check opt-in and, for reminders, whether the purchase is still pending.
- Send the template and store the message ID to track delivery.
An example in Node.js with Express:
import express from "express";
const app = express();
app.use(express.json());
const HOTTOK = process.env.HOTMART_HOTTOK;
const processed = new Set(); // in production, use a database or Redis
const TEMPLATES = {
PURCHASE_APPROVED: "access_granted",
PURCHASE_BILLET_PRINTED: "payment_pending",
PURCHASE_REFUNDED: "refund_confirmed",
};
function phone(buyer) {
const number = String(buyer.checkout_phone || "").replace(/\D/g, "");
if (number.length < 8) return null;
const areaCode = String(buyer.checkout_phone_code || "").replace(/\D/g, "");
return areaCode ? `55${areaCode}${number}` : number; // international: country code included
}
app.post("/webhooks/hotmart", async (req, res) => {
if (req.get("X-HOTMART-HOTTOK") !== HOTTOK) return res.sendStatus(401);
res.sendStatus(200);
const { id, event, data } = req.body;
if (processed.has(id)) return;
processed.add(id);
const name = TEMPLATES[event];
const to = data?.buyer ? phone(data.buyer) : null;
if (!name || !to) return;
const variables = [data.buyer.first_name || "", data.product?.name || ""];
if (event === "PURCHASE_BILLET_PRINTED") {
variables.push(data.purchase?.payment?.billet_url || "");
}
await fetch("https://apis.vectalk.com.br/api/messages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VECTALK_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
messaging_product: "whatsapp",
to,
type: "template",
template: {
name,
language: { code: "pt_BR" },
components: [{
type: "body",
parameters: variables.map((text) => ({ type: "text", text })),
}],
},
}),
});
});
The opt-in check, the wait before the payment reminder and failure handling are left out on purpose. In n8n, the same design becomes a Webhook node, a condition node on event and an HTTP Request node calling the API. The walkthrough is in n8n with the WhatsApp Business API.
Three utility templates for Hotmart
Meta defines utility as a message with no promotional intent, tied to a user action (such as a purchase) or essential to the user. Order confirmations and payment reminders are among the official examples. The texts below are models to adapt (shown in English; for Brazilian buyers you’d write them in Portuguese). Meta decides the final category.
access_granted
Hi {{1}}! Your purchase of {{2}} has been approved. Your access to the content is now active. Use the email from your purchase to log in. URL button: “Access course”.
payment_pending
Hi {{1}}. Your order for {{2}} is awaiting payment. If you’d still like to complete it, use the boleto link: {{3}}. If you’ve already paid, please disregard this message.
refund_confirmed
Hi {{1}}. We’ve confirmed the refund for your purchase of {{2}}. The reversal time follows the rules of the payment method you used.
A coupon, a time-limited bonus or “last spots” turns any of them into marketing. The criteria are in WhatsApp template categories.
Cart abandonment: marketing, with offer opt-in
According to Hotmart’s documentation, PURCHASE_OUT_OF_SHOPPING_CART starts when someone fills in details such as name or email at checkout. The event also covers people who left the page open for a long time, and the check runs every 30 minutes. The payload includes name, email, phone, product and offer code, but no transaction or payment link.
On Meta’s categorization page, “you left items in your cart” is a marketing example, and Meta says retargeting is marketing even when the user asked for it. In practice:
- use a marketing template, at the marketing rate;
- send it only to people who agreed to receive offers, not just order updates;
- send one reminder, not a sequence;
- cancel the send if a
PURCHASE_APPROVEDarrives for the same email.
Opt-in and LGPD
Meta requires that people agree to receive messages from your business and that the notice clearly states the business name. The collection method is up to you. On a Hotmart checkout, that usually means a line saying order updates will be sent by WhatsApp and a separate consent for offers, storing the date, source and accepted text.
Brazil’s data protection law, the LGPD (Law 13,709/2018), requires a legal basis for each use of the phone number and an easy way to stop receiving messages. Details are in LGPD and WhatsApp. This content is informational and does not replace advice from a lawyer.
How much each message costs
Meta charges per delivered template. For recipients in Brazil, since October 1, 2026: utility costs R$ 0.0350 and marketing costs R$ 0.3217 (Brazilian reais). Utility is charged even inside the 24-hour customer service window. The free tier of 1,000 service messages per month, per number, does not cover utility. For a launch, the WhatsApp API pricing calculator helps you estimate the total.
How to do it with Vectalk
Vectalk is a proxy for Meta’s official Cloud API. You create templates in the dashboard, with the Template Library, or through the API, and send with POST https://apis.vectalk.com.br/api/messages using the same body as Meta plus an instance token. Delivery statuses arrive at the webhooks registered with POST https://apis.vectalk.com.br/api/webhooks. Each delivered message is deducted from your prepaid balance, with no card on file at Meta, and coexistence keeps the number on the WhatsApp Business app.
Vectalk has no native inbox, AI or bulk messaging. The Hotmart webhook logic lives in your backend, n8n or Make. See the documentation or create an account at apps.vectalk.com.br/register. If you also sell on other platforms, see the Kiwify and Eduzz guides.
Frequently asked questions
Does Hotmart have a native integration with the official WhatsApp API?
Hotmart’s blog mentions native WhatsApp features, but doesn’t say they use the official API or the creator’s number. To use your own official number, connect the webhook to the API.
What is the hottok and how do I validate it?
It’s your Hotmart account’s unique token, sent in the X-HOTMART-HOTTOK header of every notification. Compare it with the value stored on your server and reject anything that doesn’t match. To change the token, contact Hotmart support.
Which field holds the buyer’s WhatsApp number?
In purchases, data.buyer.checkout_phone, with the area code in data.buyer.checkout_phone_code for Brazilian buyers. In cart abandonment, data.buyer.phone, already with the country code.
Does Hotmart resend the webhook if my server goes down?
Yes, up to five times or until it gets a positive response. If the URL keeps failing, the configuration may be deactivated.
Official sources consulted on November 10, 2026: Hotmart Help Center: how to set up the Webhook (Postback), Hotmart Developers: purchase events 2.0.0, Hotmart Developers: cart abandonment 2.0.0, Hotmart Developers: Club first access, Hotmart blog: WhatsApp to recover sales (Portuguese), Meta: template categorization, Meta: getting opt-in, Meta: pricing, 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.
