Updated on October 29, 2026
In e-commerce, the official WhatsApp Business API is used to update customers at each stage of an order and to bring back shoppers who abandoned their cart. Order confirmation, payment approved, shipping with tracking, delivery and a survey about a specific order use utility templates, as long as they contain no promotional content. Abandoned cart reminders, coupons and product recommendations are marketing, even when the customer asked to be reminded.
This guide shows which message to send at each store event, which template category to use, what it costs and how to connect your store platform’s events to the API, with a Node.js example.
Message map: store event, message and category
The template category sets the price and the sending rules. Meta reviews the category at approval and can change it later, so the text must match what you declared. The rules below follow the template categorization guidelines.
| Store event | Message | Category | Note |
|---|---|---|---|
| Order created | Confirmation with order number and summary | Utility | No coupon or product suggestion |
| Payment pending | Notice that the order’s payment is pending | Utility | Order data only; with an offer, it becomes marketing |
| Payment approved | Payment confirmation | Utility | Can include the estimated shipping time |
| Order shipped | Tracking code and delivery estimate | Utility | Button with a dynamic tracking link |
| Item backordered | Notice that an item is out of stock, with a refund option | Utility | Meta cites this case as a utility example; offering a credit or discount turns it into marketing |
| Order delivered | Delivery confirmation and a channel for problems | Utility | An order-specific survey is also utility |
| Refund processed | Amount and timing of the refund | Utility | No offer to buy again |
| Abandoned cart | Reminder of the items left in the cart | Marketing | Marketing even if the customer requested the reminder |
| Repurchase or related product | Suggestion based on the last purchase | Marketing | Requires marketing opt-in |
| Thank-you coupon | Discount on the next purchase | Marketing | Promotional content |
Two Meta rules explain the table. A template is utility only if it is non-promotional and, at the same time, specific to the user (an order, account or transaction) or essential to them. And templates with mixed content, such as an order update with a promotion, are treated as marketing. For more cases, see how Meta categorizes templates.
A note for Brazilian stores: many orders there are paid by Pix (Brazil’s instant payment system run by the Central Bank) or boleto (a bank payment slip that can take days to clear), so the “payment pending” message matters more than in card-only markets. Recovering Pix, boleto and abandoned carts on WhatsApp covers that flow.
Order confirmation
This is the first message the customer receives and the one that builds the most trust in the channel. Keep only the essentials: order number, amount, payment method and when they’ll hear from you next.
Creating the template through Vectalk, which uses the same format as Meta and resolves the WABA from the instance token:
curl -X POST https://apis.vectalk.com.br/api/templates \
-H "Authorization: Bearer YOUR_INSTANCE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "order_confirmed",
"language": "en_US",
"category": "UTILITY",
"components": [
{ "type": "HEADER", "format": "TEXT", "text": "Order confirmed" },
{
"type": "BODY",
"text": "Hi {{1}}! We received your order {{2}} for {{3}}. We will let you know here when it ships.",
"example": { "body_text": [["Ana", "#10482", "$189.90"]] }
},
{ "type": "FOOTER", "text": "Example Store" }
]
}'
The template stays PENDING until Meta approves it. Check the exact path and examples in the template creation documentation.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Shipping status
Tracking is the most natural utility case: Meta lists “your package is on its way, the tracking number is X and the estimated delivery is Y” among its order management examples. A URL button with a dynamic part takes the customer straight to the order’s tracking page:
{
"messaging_product": "whatsapp",
"to": "5584999999999",
"type": "template",
"template": {
"name": "order_shipped",
"language": { "code": "en_US" },
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "#10482" },
{ "type": "text", "text": "Oct 24" }
]
},
{
"type": "button",
"sub_type": "url",
"index": "0",
"parameters": [{ "type": "text", "text": "10482" }]
}
]
}
}
Don’t send a message for every carrier event. Pick the milestones that matter to the customer (shipped, out for delivery, delivered, delivery problem) and ignore internal sorting events.
Cart recovery
The abandoned cart reminder appears in Meta’s guidelines as an example of retargeting, which is marketing “even if requested by users”. That has three consequences:
- It needs marketing opt-in. Consent to receive order updates doesn’t cover offers. Ask for both separately at checkout.
- It’s subject to the per-user limit. Meta may stop delivering marketing templates to people who already received many, with error
131049. Some reminders won’t arrive, and that’s expected. - It costs more. For recipients in Brazil, marketing costs R$ 0.3217 (Brazilian reais) per delivered message, versus R$ 0.0350 for utility.
Don’t try to pass the cart reminder off as utility. When Meta detects a business repeatedly classifying marketing as utility, the restrictions escalate: a warning, a cap on utility volume for at least 7 days, conversion of all the account’s utility templates to marketing for 7 days (30 for repeat violations) and, if the problem spreads, the same restriction across the whole portfolio for 30 days.
For carts, a single reminder a few hours after abandonment, with the cart link and an opt-out button, is usually enough. The guide to bulk messaging on the official API covers opt-in, opt-out and marketing limits in detail. Also keep in mind that Meta will stop supporting marketing messages on the Cloud API on October 13, 2027; from then on, cart reminders and other marketing go through the Marketing Messages API.
Post-purchase
Post-purchase mixes both categories, and the wording decides which applies:
- Order survey. “We delivered your order #10482. Was there any problem?” is utility. Meta requires the survey to be specific to an order or interaction; a generic survey isn’t approved as utility. See NPS surveys on WhatsApp for wording that works.
- Exchanges and returns. Confirming receipt of the returned item and of the refund is utility.
- Repurchase, review with coupon, product launch. All of this is marketing.
When the customer replies, the 24-hour window opens and support can continue with free-form messages. Since October 1, 2026, utility templates sent inside that window are charged normally, and free-form replies have an allowance of 1,000 free service messages per number per month (pricing page). See the WhatsApp 24-hour customer service window.
How much it costs to notify an order
| Message | Category | Meta rate per delivered message (Brazil) |
|---|---|---|
| Confirmation, payment, shipping, delivery | Utility | R$ 0.0350 |
| Abandoned cart, repurchase, coupon | Marketing | R$ 0.3217 |
| Free-form reply in customer service | Service | Free up to 1,000 per number per month; then R$ 0.0350 |
A store that sends four utility notifications per order pays Meta about R$ 0.14 per order, before volume tiers. Utility has progressive discounts by monthly volume across the portfolio; marketing doesn’t. The details are in WhatsApp API pricing in Brazil, and the official rates are on the WhatsApp Business rate card. If you sell to other countries, rates depend on the recipient’s market: see WhatsApp API pricing by country.
Opt-in at checkout
Checkout is the best place to ask for consent, because the customer is already entering their phone number. Meta asks that the opt-in make clear the person agrees to receive communications and from which business, and it recommends separate opt-ins per message category (Get opt-in for WhatsApp). For a store, that means two independent checkboxes:
- Order updates: “I want to receive updates about my orders (confirmation, payment, shipping and delivery) from Example Store on WhatsApp.”
- Offers: “I want to receive offers and news from Example Store on WhatsApp. I can unsubscribe anytime.”
Leave both unchecked, so each one is an active choice by the customer. Store the date, time, source and accepted text for each. Customers who uncheck offers keep receiving order updates, and anyone who asks to opt out of everything must stop receiving both categories, as Meta’s policy requires.
Integration with store events
Most e-commerce platforms send webhooks when an order changes status. The WhatsApp integration is a service that translates those events into templates:
Store platform ──webhook──▶ your service ──▶ queue ──▶ worker
│
map event ▶ template ▶ POST /api/messages (Vectalk)
│
Vectalk ──status webhook──▶ your service (delivered, read, failed)
Principles that prevent the most common problems:
- Idempotency. Platforms resend webhooks. Use the order and event pair as a key and never send the same update twice.
- Consent by category. Store order and marketing opt-ins separately and check them before each send.
- Normalized phone numbers. The API expects the number in international format without the “+”, such as
5584999999999. Validate it at checkout. - Store the message ID. Save the
wamidreturned by the API with the order, to match it against statuses and support conversations.
Node.js example
The example receives generic store events and sends the matching template. Adapt the event names and body format to your platform.
import express from 'express';
const VECTALK = 'https://apis.vectalk.com.br/api/messages';
const TOKEN = process.env.VECTALK_TOKEN; // instance token
// store event -> template and parameters
const MAP = {
'order.created': (o) => ({
name: 'order_confirmed',
body: [o.customer.name, `#${o.number}`, o.formattedTotal],
}),
'order.paid': (o) => ({
name: 'payment_approved',
body: [o.customer.name, `#${o.number}`],
}),
'order.shipped': (o) => ({
name: 'order_shipped',
body: [`#${o.number}`, o.deliveryEstimate],
urlButton: String(o.number),
}),
'order.delivered': (o) => ({
name: 'order_delivered',
body: [o.customer.name, `#${o.number}`],
}),
};
const sent = new Set(); // in production: a table with a unique key (order, event)
function buildTemplate({ name, body, urlButton }) {
const components = [
{ type: 'body', parameters: body.map((text) => ({ type: 'text', text })) },
];
if (urlButton) {
components.push({
type: 'button', sub_type: 'url', index: '0',
parameters: [{ type: 'text', text: urlButton }],
});
}
return { name, language: { code: 'en_US' }, components };
}
async function notify(event, order) {
const rule = MAP[event];
if (!rule || !order.customer.orderUpdatesOptIn) return;
const key = `${order.number}:${event}`;
if (sent.has(key)) return;
const r = await fetch(VECTALK, {
method: 'POST',
headers: { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
messaging_product: 'whatsapp',
to: order.customer.whatsapp, // e.g. 5584999999999
type: 'template',
template: buildTemplate(rule(order)),
}),
});
if (!r.ok) throw new Error(`Failed to notify ${key}: ${await r.text()}`);
const { messages } = await r.json();
sent.add(key);
return messages[0].id; // save it with the order
}
const app = express();
app.use(express.json());
app.post('/store/events', (req, res) => {
res.sendStatus(200); // respond fast; process afterwards
const { event, order } = req.body;
notify(event, order).catch((e) => console.error(e));
});
app.listen(3000);
For production, replace the Set with a table with a unique key and the direct processing with a queue with retries. Also validate the signature your e-commerce platform sends on its webhooks.
Reading statuses back
Status events arrive at the webhook you registered with Vectalk, with the same payload as Meta. With them, the store knows whether the update was delivered and read, and can fall back to another channel when the message fails. The article on WhatsApp API webhooks shows how to structure that receiver, and message status via webhook details sent, delivered, read and failed.
Frequently asked questions
Can I add a coupon to the order confirmation?
You can, but the template becomes marketing. Meta treats any template with mixed content, such as an order update with a promotion, as marketing. Keep updates and offers in separate templates.
Does the customer need to authorize order updates?
Yes. Meta’s policy requires opt-in before sending messages. A checkbox at checkout, separate from the offers one, covers both cases and shows the customer what they’ll receive.
Can I show catalog products on WhatsApp?
Yes. The API supports single-product, multi-product and catalog messages, and there are marketing templates specifically for catalogs and product carousels. Vectalk documents sending them in product messages, and WhatsApp API catalog explains the setup.
How many cart reminders can I send?
Meta doesn’t set a number, but it applies the per-user marketing limit and measures quality by blocks and reports. One reminder per cart, with an opt-out button, is a conservative starting point.
Does it work with the number the store already uses in the app?
With coexistence, the same number can stay on the WhatsApp Business app while automated updates go out through the API. See WhatsApp API coexistence.
Get started with Vectalk
With Vectalk, your store sends with the same payloads as Meta and receives the same webhooks, with one token for all accounts and coexistence with the app. You don’t add a card at Meta: you pay a monthly fee and keep a prepaid balance, and each delivered message is deducted from it. Create your account at apps.vectalk.com.br/register or reach the team through the contact page.
Sources checked on October 29, 2026: Template categorization, Marketing templates, Per-user marketing limits, Marketing Messages API overview, Pricing, Rate card on the WhatsApp Business site, Get opt-in for WhatsApp.
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.
