All templates

Automated Alegra Rejected Invoice Alerts

Every morning, WebRun opens Alegra, checks the electronic invoicing status of every invoice issued the day before, flags any that DIAN, SAT, SUNAT, or AFIP rejected or observed, drafts a short heads-up email to each affected customer in Gmail, and posts your finance team a Slack list of exactly what needs fixing.

Runs on WebRun · Strict Lockdown policy
Every day at 8:00 AM WebRunorchestrates each step
1 Alegra check electronic invoice status
2 Gmail draft customer heads-up notices
3 Slack alert finance to what needs fixing
In short

How do I catch electronic invoices that DIAN, SAT, or another tax authority rejected?

WebRun checks Alegra each morning for electronic invoices that DIAN, SAT, SUNAT, or AFIP rejected or flagged for review. It drafts a heads-up email for each affected customer in Gmail, leaves it unsent for your team, and posts finance a Slack list of what needs fixing first.

  • Rejected invoices get caught the same morning, not at month end
  • Every customer heads-up is drafted and ready, not written from scratch
  • Finance sees exactly which invoices block payment or revenue recognition

Built for small business owners in Colombia · Alegra bookkeepers · accounting firms in Mexico and Peru · ecommerce sellers

Step by step

What does WebRun do on every run?

The exact actions WebRun takes, in order - in plain language, so you can adjust anything.

  1. WebRun signs in and gets to work

    Opens app.alegra.com in a real browser with your saved login - no setup, no API keys.

  2. 1
    Alegra - check electronic invoice status
    alegra.com
    WebRun in Alegra: check electronic invoice status
    WebRun opens Alegra to check electronic invoice status.
    • Open Alegra and review the electronic invoicing status of invoices issued the day before
    • Filter to any invoice marked rejected or observed by the tax authority
    • Capture the customer, invoice number, amount, and rejection reason for each

    Done when Every rejected or observed electronic invoice from the last day is listed with its reason.

  3. 2
    Gmail - draft customer heads-up notices
    gmail.com
    WebRun in Gmail: draft customer heads-up notices
    WebRun opens Gmail to draft customer heads-up notices.
    • Draft a short, friendly heads-up to each affected customer explaining a corrected invoice is on its way
    • Reference the specific invoice number so the customer recognizes it
    • Save every message as a draft and leave it unsent for your team to review

    Done when A draft heads-up sits ready in Gmail for every customer whose invoice was rejected.

  4. 3
    Slack - alert finance to what needs fixing
    slack.com
    WebRun in Slack: alert finance to what needs fixing
    WebRun opens Slack to alert finance to what needs fixing.
    • Post finance a list of rejected or observed invoices with the reason and customer name
    • Flag any invoice that is blocking payment or revenue recognition
    • Note that the customer heads-up drafts are waiting in Gmail for review

    Done when Finance has today's list of invoices needing correction, in Slack.

Run settings

How is each run configured?

Starting pageWhere Chrome opens at the start of each run
app.alegra.com
ScheduleRuns automatically on this cadence
Every day at 8:00 AM
DeliveryHow each run's result reaches you
Rejected invoice list · Slack
OutputWhat each run produces - A list of rejected or observed electronic invoices with the reason and customer, plus a ready-to-review heads-up draft in Gmail for each.
Text
Setup & safety

Secure by default

Connect once, stays signed in

WebRun signs in once and keeps each session in a persistent environment, so every run picks up right where it left off.

Your credentials stay in your own private environment - WebRun never stores your passwords.
Strict Lockdown

Every action is checked against this policy before it runs.

Domains ALLOWLIST
Typed input ALLOW
Shell command BLOCK
File uploads BLOCK
Runs in a contained environment More on policies
Good to know

Questions, answered

Will it email customers without my approval?

No. WebRun only drafts the heads-up email in Gmail and leaves it unsent, so nothing reaches a customer until your team reviews it and clicks send.

Which countries' electronic invoicing does it check?

Whatever status Alegra shows for the invoice, whether it was validated by DIAN in Colombia, SAT in Mexico, SUNAT in Peru, or AFIP in Argentina. WebRun simply reads the result Alegra already has.

What if an invoice is only pending, not rejected?

It is left off the list. WebRun only flags invoices marked rejected or observed, so a normal pending validation does not trigger a false alarm.

Put this on autopilot.

Turn it on in minutes - or have our team set it up for you.