Updated on October 29, 2026
To integrate Nuvemshop with the official WhatsApp Business API, you register store webhooks (such as order/created, order/paid and order/fulfilled) pointing to your backend, fetch the order from the Nuvemshop API and send an approved template through the Cloud API. Order confirmations, payment approvals and shipping updates are utility templates; abandoned cart reminders are marketing. The customer must have agreed to receive messages from your store.
Nuvemshop is the Brazilian brand of Tiendanube, the e-commerce platform used across Latin America (Argentina and Mexico included). Same platform, same API. Below: events, the app, templates per stage and Node.js code.
How the integration works
Nuvemshop doesn’t talk to the WhatsApp API directly. The flow is always:
- The store fires a webhook when something happens to an order.
- Your server receives the notification, which only carries the
store_id, the event name and the orderid. - Your server fetches the full order from the Nuvemshop API (phone, order number, status).
- Your server sends a template through the Cloud API, directly with Meta or through a provider such as Vectalk.
- Meta reports delivery statuses (
sent,delivered,read,failed) on the WhatsApp webhook.
That server can be your own backend, a serverless function or an n8n workflow. The logic deciding which message to send stays with you.
The Nuvemshop events that matter
The Nuvemshop webhook documentation (API version 2025-03) lists these order and shipping events. The most useful for WhatsApp:
| Event | Fires when | Suggested message | Category |
|---|---|---|---|
order/created | Order is created | Order received, with number and payment method | Utility |
order/paid | Payment is confirmed | Payment approved | Utility |
order/packed | Order is packed | Order being prepared (optional) | Utility |
order/fulfilled | Order is shipped | Order on its way, with tracking code | Utility |
fulfillment_order/tracking_event_created | New tracking event | Out for delivery, delivered, failed attempt | Utility |
order/cancelled | Order is cancelled | Cancellation notice | Utility |
There are others (order/updated, order/pending, order/voided…). Don’t subscribe to everything: every extra event is another chance of sending a duplicate message.
There is no abandoned cart webhook. Nuvemshop exposes abandoned checkouts through GET /checkouts, with contact_phone and abandoned_checkout_url. A checkout only shows up there if the shopper reached the second checkout step, and it can be retrieved for 30 days. To recover carts, your system polls that resource.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Step 1: create the app and get the token
There are two routes:
- Custom app for a single store: the merchant creates it in the admin under Aplicativos > Aplicativos sob medida, picks permissions and copies the token, which is shown only once. According to the Nuvemshop help center, this feature isn’t available on the entry-level Começo plan.
- Partner app: for agencies and SaaS products serving many stores. You sign up as a technology partner, create the app, and each store authorizes it through OAuth (
https://www.nuvemshop.com.br/apps/{app_id}/authorize, or thetiendanube.comequivalent). The token doesn’t expire; it only becomes invalid if you request a new one or the store uninstalls the app.
Request only what you need: read_orders (orders and abandoned checkouts) and, if you need the customer object, read_customers.
Every call goes to https://api.nuvemshop.com.br/2025-03/{store_id} (or api.tiendanube.com), with an Authorization: Bearer <token> header and a User-Agent naming your app and a contact. Without the User-Agent, the API returns 400. The rate limit is 2 requests per second per store and app, with bursts of up to 40.
Step 2: register the webhooks
One POST /webhooks per event. The URL must be HTTPS and can’t be localhost or a Nuvemshop/Tiendanube domain.
curl -X POST https://api.nuvemshop.com.br/2025-03/123456/webhooks \
-H "Authorization: Bearer STORE_TOKEN" \
-H "User-Agent: MyWhatsAppIntegration (dev@mystore.com)" \
-H "Content-Type: application/json" \
-d '{ "event": "order/paid", "url": "https://api.mystore.com/webhooks/nuvemshop" }'
What reaches your server is short:
{ "store_id": 123456, "event": "order/paid", "id": 987654321 }
Three rules that shape your code:
- Your endpoint has 3 seconds to return a 2XX. Acknowledge first and process later, in a queue.
- On failure, Nuvemshop retries, up to 16 times over 48 hours.
- Notifications may arrive out of order and more than once. Store which
order + eventpairs already produced a message so the customer isn’t notified twice.
Each notification is signed in the x-linkedstore-hmac-sha256 header (HMAC-SHA256 of the raw body using the partner app’s client_secret). Validate it before processing.
Step 3: create the right templates
Outside the 24-hour customer service window, the only way to start a conversation is an approved template. Under Meta’s criteria, utility means a non-promotional message tied to a user action or request. Meta’s official “order management” examples are exactly confirmation and shipping. Retargeting messages such as “you left items in your cart” are marketing, even if the user asked for them.
Suggested templates (create them in pt_BR, es_AR or es_MX depending on where you sell):
| Template | Body | Button |
|---|---|---|
order_received | Hi {{1}}! We received your order #{{2}}. We’ll let you know here as soon as payment is confirmed. | Order URL |
payment_approved | {{1}}, payment for order #{{2}} was approved. We’re already preparing your items. | — |
order_shipped | Your order #{{1}} has shipped. Tracking code: {{2}}. | Tracking URL |
cart_reminder (marketing) | You left items in your cart. Want to complete your purchase? | Dynamic checkout URL |
Don’t put coupons or offers in a utility template: Meta can recategorize it as marketing. See the criteria in WhatsApp template categories.
The Nuvemshop order includes a language field with the language the customer used at checkout, which you can use to choose the template language.
Step 4: the code
Node.js example (Express, Node 18+). It validates the HMAC, acknowledges immediately, fetches the order and sends the template through Vectalk, which accepts the same payload as the Cloud API.
import express from "express";
import crypto from "node:crypto";
const app = express();
app.use("/webhooks/nuvemshop", express.raw({ type: "*/*" }));
const NS = "https://api.nuvemshop.com.br/2025-03";
const sent = new Set(); // in production, use a database or Redis
const hasOptIn = async (phone) => true; // replace with your consent store
app.post("/webhooks/nuvemshop", (req, res) => {
const hmac = crypto
.createHmac("sha256", process.env.NUVEMSHOP_CLIENT_SECRET)
.update(req.body)
.digest("hex");
if (hmac !== req.get("x-linkedstore-hmac-sha256")) return res.sendStatus(401);
res.sendStatus(200); // reply within 3 seconds
handle(JSON.parse(req.body)).catch(console.error);
});
async function handle({ store_id, event, id }) {
const key = `${id}:${event}`;
if (sent.has(key)) return;
const r = await fetch(`${NS}/${store_id}/orders/${id}`, {
headers: {
Authorization: `Bearer ${process.env.NUVEMSHOP_TOKEN}`,
"User-Agent": "MyWhatsAppIntegration (dev@mystore.com)",
},
});
const order = await r.json();
const phone = (order.contact_phone || "").replace(/\D/g, "");
if (!phone || !(await hasOptIn(phone))) return;
const templates = {
"order/created": ["order_received", [order.contact_name, order.number]],
"order/paid": ["payment_approved", [order.contact_name, order.number]],
};
if (!templates[event]) return;
const [name, vars] = templates[event];
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: phone,
type: "template",
template: {
name,
language: { code: "pt_BR" },
components: [{
type: "body",
parameters: vars.map((v) => ({ type: "text", text: String(v) })),
}],
},
}),
});
sent.add(key);
}
app.listen(3000);
Two caveats. The phone number comes in as the customer typed it: normalize it to international format with the country code and handle the error when the number isn’t on WhatsApp. And the tracking code lives in the fulfillment order’s tracking_info (GET /orders/{id}/fulfillment-orders), not in the event.
Pending payments: Pix and boleto
In Brazil, many orders start with payment_status set to pending because the shopper picked Pix (the Central Bank’s instant payment system) or boleto (a bank payment slip that can take days to clear) and hasn’t paid yet. The usual flow:
order/createdwith pending payment: sendorder_receivedwith the payment link or instructions.- Schedule a check a few hours later. If the order is still
pending, send a payment reminder for that same order. order/paid: cancel the scheduled reminder and sendpayment_approved.
A payment reminder for an order the customer placed is utility, as long as it carries no promotion. The full timing and copy strategy is in recovering Pix, boleto and abandoned carts, and the same patterns apply to Shopify and WooCommerce.
Opt-in: what Nuvemshop’s checkout gives you and what’s missing
Meta requires that the person has agreed to receive messages from your business, with the business name stated clearly. The opt-in doesn’t have to mention WhatsApp and can be collected on your website.
Nuvemshop has an accepts_marketing field on the customer, but the documentation says it reflects consent to offers and news by email, and it’s read-only in the API. So don’t treat it as WhatsApp opt-in. Collect consent at a point you control (sign-up, thank-you page, a conversation started by the customer) and store the date, source and accepted wording. For marketing, like cart reminders, this is essential. See how to build that base in WhatsApp opt-in list.
Brazil’s data protection law (LGPD) also applies to the phone numbers and message history you process. This article isn’t legal advice; the practical summary is in LGPD and WhatsApp.
Ready-made app or your own integration?
The Nuvemshop app store has WhatsApp apps. Before installing one, check whether it uses the official API or connects through a QR code to WhatsApp Web, which goes against WhatsApp’s terms and puts the number at risk.
Building your own pays off when you want control over copy, timing, opt-in and cost, or when a CRM also needs the same events.
How much it costs
Meta charges each delivered template by category and by the recipient’s country. For Brazilian numbers, since October 1, 2026: marketing BRL 0.3217; utility BRL 0.0350. Since the same date, utility templates sent inside the customer service window are also charged. Rates for Argentina or Mexico differ; see WhatsApp API pricing by country.
How to do it with Vectalk
Vectalk is a proxy for Meta’s official Cloud API. Your backend calls POST https://apis.vectalk.com.br/api/messages with the same JSON as Meta, and status webhooks arrive in the format described in Meta’s documentation. Templates can be created in the dashboard, using the Template Library, or through the API. Billing uses prepaid balance: each delivered message is deducted from it, with no card registered at Meta. The number can stay on the WhatsApp Business app through coexistence.
The bridge to Nuvemshop is your backend or a tool like n8n. Check sending templates in the docs, the official WhatsApp API guide and sign up at apps.vectalk.com.br/register.
Frequently asked questions
Does Nuvemshop have an abandoned cart webhook?
Not in the official event list. Abandoned checkouts are available at GET /checkouts, with phone and checkout link, and your system has to poll them.
Can I use the order’s phone number to send WhatsApp messages?
The phone number lets you send, but permission comes from consent. Messages about an order the customer placed are utility; offers and cart reminders require marketing opt-in.
Why did I receive the same webhook twice?
Nuvemshop warns that events can be duplicated and arrive out of order, and it retries when your endpoint doesn’t return 2XX within 3 seconds. Use the id + event pair as an idempotency key.
Does this work for Tiendanube stores in Argentina and Mexico?
Yes. The API is the same (api.tiendanube.com), and Meta supports templates in es_AR and es_MX. Only the per-message rate changes with the customer’s country.
Official sources checked on October 29, 2026: Nuvemshop webhooks (API 2025-03), Nuvemshop API authentication, Order, Abandoned checkout, Fulfillment order, Customer, API intro (limits and headers), Custom apps (Nuvemshop help center), Meta template categorization, WhatsApp opt-in, Template languages, WhatsApp Business Platform pricing, Sending templates with Vectalk.
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.
