Updated on November 10, 2026
To connect Omie to WhatsApp through the official API, you read accounts receivable from the Omie API, get the boleto link and barcode with the ObterBoleto method, and send a Meta-approved utility template to the customer’s phone. Omie webhooks tell your system when something changes, and the payment confirmation becomes a second message. The reminder can only cover your own customer’s invoice: collecting third-party debt is prohibited.
Omie is a Brazilian cloud ERP, and a boleto is a Brazilian bank slip, a payment document with a due date and a barcode that the customer pays at a bank, in an app or at a lottery outlet. Below: the Omie calls that matter, the rate limits, the template, a Node.js script and the policy precautions.
What you can do with Omie and WhatsApp
Omie stores customers, receivables and boletos. Its “Omie no WhatsApp” feature lets ERP users talk to the system by text or voice message (register customers, check balances, generate boletos and more), according to Omie’s help center. On the official pages we checked, we found no automatic sending of reminders to end customers through the official WhatsApp API. That connection is made by your own system (or a tool like n8n) that talks to both APIs:
| Moment | Omie data | WhatsApp message |
|---|---|---|
| Boleto issued | Receivable + ObterBoleto | “Your R$ X boleto is due on DD/MM” with a button to the PDF |
| Day before the due date | ListarContasReceber (open) + data_vencimento | Reminder with the barcode number |
| Overdue | Receivable still open after the due date | Open invoice notice, with a new copy |
| Payment recorded | A new query on the receivable’s status | Payment confirmation |
To design the reminder schedule (how many reminders, on which days), see the guide to WhatsApp billing reminders. For the general ERP picture, see WhatsApp API ERP integration. This article focuses on Omie.
How the Omie API works
Omie’s documentation (in Portuguese) sets three rules for every call:
- Every request is a POST. GET calls return error 400.
- JSON or SOAP. For JSON, use
Content-Type: application/json. - Fixed envelope. The body carries
app_key,app_secret,call(the method name) andparam(a list with the parameters).
The app_key and app_secret credentials belong to the app you create in the Omie developer portal. Each service has its own URL. The three that matter for billing, according to the service list:
| Service | URL | Methods used here |
|---|---|---|
| Accounts receivable – entries | https://app.omie.com.br/api/v1/financas/contareceber/ | ListarContasReceber, ConsultarContaReceber |
| Accounts receivable – boletos | https://app.omie.com.br/api/v1/financas/contareceberboleto/ | ObterBoleto |
| Customers | https://app.omie.com.br/api/v1/geral/clientes/ | ConsultarCliente |
List what is coming due
ListarContasReceber accepts filtrar_apenas_titulos_em_aberto, filtrar_cliente, filtrar_por_status, issue-date and registration-date filters, and pagination (pagina, registros_por_pagina; Omie recommends up to 100 records per page). The method’s documentation has no explicit due-date filter, so filter on data_vencimento (dd/mm/yyyy) in your code. Each item in conta_receber_cadastro includes, among other fields, codigo_lancamento_omie, codigo_cliente_fornecedor, data_vencimento, valor_documento and status_titulo.
Get the boleto
ObterBoleto takes nCodTitulo (the receivable’s codigo_lancamento_omie) or cCodIntTitulo (the integration code). The response includes cLinkBoleto (PDF link), cCodBarras (barcode; the documentation doesn’t mention the linha digitável, the typeable payment line), cNumBoleto, dDtEmBol and cCodStatus, which is "0" when the request succeeded. The official walkthrough is Obtendo o boleto via API.
Get the phone number
ConsultarCliente with codigo_cliente_omie returns telefone1_ddd (area code) and telefone1_numero. Join them with 55 (Brazil’s country code) in front: the WhatsApp API expects digits only, no +.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Omie rate limits
Omie limits API usage, and a sloppy billing script hits those limits fast. According to the consumption limits page:
- 960 requests per minute per IP;
- 240 requests per minute per IP + App Key + method combination;
- up to 4 simultaneous requests per IP, App Key and method (some methods allow only one at a time);
- querying the same ID twice within 60 seconds returns data only the first time;
- on the 10th failed request for the same IP, App Key and method, there’s a 30-minute block (HTTP 425).
Cache each customer’s phone number and handle errors instead of retrying the call in a loop.
Omie webhooks
Omie also sends events by webhook. According to Utilizando os Webhooks no Omie, an administrator opens the app in the developer portal, clicks to add a new webhook, enters the URL and selects the events to receive. Omie sends a test notification when you save.
Delivery behavior, according to Características e recomendações dos Webhooks:
- the endpoint must return 2XX within 7 seconds;
- the main queue makes up to 3 attempts; after that, the event goes to a reprocessing queue that retries every 10 minutes for up to 5 days;
- events are delivered in order (FIFO) per app and endpoint, and a failing event holds back the ones behind it.
In other words: if your endpoint sends the WhatsApp message inside the request and takes too long, it blocks the whole queue. Store the event, return 200 and process it later. The available events appear on the webhook setup screen. If you’d rather not depend on webhooks, a daily job with ListarContasReceber covers most reminder schedules.
The utility template
Outside the 24-hour window, the WhatsApp API only sends approved templates. A boleto reminder for your own customer is utility: the message is about a purchase or service they contracted and contains no offer. Meta recategorizes as marketing any template that mixes the notice with a promotion, as explained in the template categorization page.
Sample text to submit (in Portuguese for Brazilian customers; English version shown):
Hi {{1}}. The {{2}} boleto for {{3}} is due on {{4}}. Barcode: {{5}}. If you’ve already paid, please disregard this message.
Add a dynamic URL button based on your own domain (for example, https://pague.suaempresa.com.br/b/{{1}}) that redirects to cLinkBoleto, since the variable part of the button is only the end of the URL. Variables, buttons and the send JSON are covered in how to send a template through the WhatsApp API, and what gets a template rejected in WhatsApp template rejected.
Node.js example: reminder the day before
The script runs once a day, lists open receivables due tomorrow, fetches the boleto and the phone number and sends the template. It uses the Vectalk URL; on the Cloud API directly, swap it for Meta’s URL with your PHONE_NUMBER_ID.
const OMIE = "https://app.omie.com.br/api/v1";
const auth = { app_key: process.env.OMIE_KEY, app_secret: process.env.OMIE_SECRET };
async function omie(service, call, param) {
const r = await fetch(`${OMIE}/${service}/`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ ...auth, call, param: [param] }),
});
const data = await r.json();
if (!r.ok) throw new Error(`${call}: ${r.status} ${JSON.stringify(data)}`);
return data;
}
const dd = (d) => d.toLocaleDateString("pt-BR", { timeZone: "America/Sao_Paulo" });
const phoneCache = new Map();
async function phone(customerCode) {
if (phoneCache.has(customerCode)) return phoneCache.get(customerCode);
const c = await omie("geral/clientes", "ConsultarCliente", { codigo_cliente_omie: customerCode });
const tel = "55" + `${c.telefone1_ddd}${c.telefone1_numero}`.replace(/\D/g, "");
const out = { tel, name: c.nome_fantasia || c.razao_social };
phoneCache.set(customerCode, out);
return out;
}
async function sendReminder({ to, name, amount, ref, due, code, token }) {
return 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: "boleto_vencimento",
language: { code: "pt_BR" },
components: [
{ type: "body", parameters: [name, amount, ref, due, code].map((text) => ({ type: "text", text })) },
{ type: "button", sub_type: "url", index: "0", parameters: [{ type: "text", text: token }] },
],
},
}),
}).then((r) => r.json());
}
async function run() {
const tomorrow = dd(new Date(Date.now() + 864e5));
let pagina = 1, total = 1;
do {
const list = await omie("financas/contareceber", "ListarContasReceber", {
pagina,
registros_por_pagina: 100,
filtrar_apenas_titulos_em_aberto: "S",
});
total = list.total_de_paginas || 1;
const due = (list.conta_receber_cadastro || []).filter((t) => t.data_vencimento === tomorrow);
for (const t of due) {
const b = await omie("financas/contareceberboleto", "ObterBoleto", { nCodTitulo: t.codigo_lancamento_omie });
if (b.cCodStatus !== "0" || !b.cLinkBoleto) continue; // receivable without a boleto
const { tel, name } = await phone(t.codigo_cliente_fornecedor);
if (tel.length < 12) continue; // customer without a phone number
const amount = Number(t.valor_documento).toLocaleString("pt-BR", { style: "currency", currency: "BRL" });
const res = await sendReminder({
to: tel, name, amount, ref: `título ${t.codigo_lancamento_omie}`,
due: t.data_vencimento, code: b.cCodBarras, token: String(t.codigo_lancamento_omie),
});
console.log(t.codigo_lancamento_omie, res.messages?.[0]?.id || res.error?.message);
}
pagina++;
} while (pagina <= total);
}
run();
Production notes:
- Pagination. The script walks the pages up to
total_de_paginas; pages of up to 100 records follow Omie’s recommendation. - Idempotency. Store receivable + reminder type + date before sending, so a rerun doesn’t send twice.
- Status. The returned
wamidlinks the send to its status in the webhook; see message status webhooks.
Without code, the same flow fits in n8n with HTTP Request nodes, as in the guide to n8n with the WhatsApp Business API.
What it costs and what changed in October 2026
Each utility template delivered to a Brazilian number costs R$ 0.0350 (Brazilian reais) on Meta’s rate card in effect since October 1, 2026. Since that date, utility is charged even when sent inside the customer service window, and each number’s allowance of 1,000 service messages per month doesn’t cover utility. A schedule with three reminders for 2,000 boletos a month, for example, is up to 6,000 templates, or R$ 210.00 in Meta fees if all are delivered. Simulate your case in the WhatsApp API pricing calculator.
When the customer replies, the 24-hour window opens and your team’s free-form replies are service messages. Full rules on Meta’s pricing page.
Policy precautions
- Only your own customers’ invoices. The WhatsApp Business Messaging Policy prohibits collecting third-party debt. A collection agency using another company’s Omie database doesn’t qualify.
- Informative tone. Threats and “last chance” messages generate blocks and reports, which lower the number’s quality.
- Consent. Record that the customer agreed to receive notices by WhatsApp (in the contract, sign-up or checkout).
- LGPD. Brazil’s data protection law treats phone numbers and financial data as personal data; the most common legal basis is performance of a contract (art. 7, V, of Law 13,709/2018). This is not legal advice; check with a lawyer.
How to do this with Vectalk
Vectalk is a proxy for Meta’s official Cloud API: your system calls https://apis.vectalk.com.br/api/messages with the same template JSON as Meta and receives the same webhooks. The utility template is created in the dashboard (there’s a Template Library to start from) or through the API, and the logs show every send. Billing is prepaid credit: each delivered message is deducted from your balance, and you don’t need to add a card at Meta.
Vectalk has no built-in inbox, bulk sending or AI: the reminder logic runs in your system or in an orchestrator like n8n, and replies arrive at the webhook you configure. For the fundamentals, read the official WhatsApp API guide. Endpoints at docs.vectalk.com.br and sign-up at apps.vectalk.com.br/register.
For similar ERPs and billing platforms, see Bling + WhatsApp and Asaas + WhatsApp.
Frequently asked questions
Does Omie send WhatsApp messages by itself?
“Omie no WhatsApp” is for ERP users to talk to the system; on the official pages we checked, we found no automatic sending of reminders to end customers through the official WhatsApp API. That integration is done by your own system or an orchestrator that reads Omie data and calls the WhatsApp API.
Can I send the boleto PDF as an attachment?
Yes, with a document-header template. But a URL button that opens the boleto is simpler, because the Omie link already exists.
Is a boleto reminder utility or marketing?
Utility, as long as it only covers the customer’s invoice and has no offer. If you add “check out our new plan”, Meta recategorizes it as marketing, which costs R$ 0.3217 per message in Brazil.
My number uses coexistence. Does it work?
Yes. With coexistence, the number stays on the WhatsApp Business app and on the API at the same time, and customer replies show up in both. See the coexistence guide.
Official sources consulted on November 10, 2026: Omie API characteristics and recommendations, Omie API consumption limits, Getting the boleto via API (Omie), Using webhooks in Omie, Omie webhook characteristics, Omie on WhatsApp, Omie API service list, Template categorization (Meta), WhatsApp platform pricing (Meta), WhatsApp Business Messaging Policy, Vectalk documentation.
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.
