Automate Collections with n8n and Mercado Pago: 2026 Guide

Automate collections with n8n and Mercado Pago: generate payment links, send WhatsApp reminders, and reconcile payments via webhook. Full workflow, step by step.

Deepyze Team··6 min read

Chasing payments is the job nobody wants to do and every SMB does anyway: open the spreadsheet, see who owes, send the awkward message, check whether they paid. Automating collections with n8n and Mercado Pago means building a loop where the system generates the payment link, sends staggered reminders over WhatsApp and email, and automatically reconciles every payment received via webhook — without anyone copying anything by hand. One person stops spending 2-4 hours a day on collections, and customers pay sooner because the reminder always arrives, not "whenever someone remembers."

Why collections is the first workflow worth automating

Of all the processes we automate for companies across LATAM, collections has the fastest payback for three reasons:

  • The cost of not doing it is measurable in cash: every day of delay in getting paid is working capital you're financing yourself.
  • It's a 100% rules-based process: due date, amount, payment status. There's no human judgment to model.
  • Mercado Pago has a mature API and webhooks: everything you need —creating links, querying payments, receiving notifications— is available and documented.

A distributor we worked with went from an average collection period of 38 days to 24 in the first quarter, just from consistent reminders and immediate reconciliation. They didn't change the credit policy: what changed is that the reminder always went out.

The full workflow, end to end

The loop has three n8n workflows that work together:

  1. Generation: when an invoice is issued (from your system, a spreadsheet, or the CRM), n8n creates the payment link in Mercado Pago and sends it to the customer along with the invoice.
  2. Reminders: a scheduled workflow reviews unpaid invoices every morning and fires the appropriate reminder based on the days overdue.
  3. Reconciliation: a webhook receives the Mercado Pago notification when a payment comes in, verifies it, and marks the invoice as paid in the spreadsheet or CRM.

Let's walk through each piece.

Step 1: generate the payment link with the Mercado Pago API

From an HTTP Request node, n8n makes a POST to /checkout/preferences with the title, the amount, and an external_reference (the invoice number — this reference is the key to all the reconciliation that follows). Mercado Pago returns the init_point: the payment link you send to the customer through whichever channel you prefer. If your invoices originate in your own system, exposing that event is a typical API development job; if they originate in a spreadsheet, a Google Sheets trigger is enough.

Step 2: staggered reminders over WhatsApp and email

The cadence that works best in our projects, conservative and without harassing:

Timing Channel Message tone
3 days before the due date Email Friendly heads-up + payment link
Due date Email + WhatsApp Direct reminder with link
3 days overdue WhatsApp Check-in: "did you have any trouble with the payment?"
7 days overdue WhatsApp + email Firm, with a breakdown of what's owed
15 days overdue Internal alert Escalated to a person on the team

Two details that separate a serious system from a spam bot: the reminder stops the instant the payment comes in (which is why webhook reconciliation is critical), and WhatsApp messages go through the official API with approved templates. We cover how to set up that channel in the guide on automating WhatsApp with n8n.

How much cash do you have stuck in overdue invoices right now? Book an intro meeting and we'll put together a diagnosis of your collections loop at no cost.

How to handle the Mercado Pago webhook in n8n (the part everyone gets wrong)

Mercado Pago notifies payment events to the URL you configure in the developer panel (the old IPN notifications are deprecated; use Webhooks). The correct flow in n8n:

  1. Webhook node receives the notification. The payload brings type: "payment" and a data.id. Important: the notification doesn't say whether the payment was approved — it only flags that something happened with that ID.
  2. Respond 200 immediately (Respond Immediately mode). Mercado Pago expects the response within seconds; if your workflow is slow, it retries and you get duplicate notifications. This is one of the three classic mistakes we explain in what a webhook is in n8n.
  3. Query the payment: with an HTTP Request to /v1/payments/{data.id} you get the real status (approved, pending, rejected) and the external_reference that links the payment to your invoice.
  4. Verify idempotency: before recording, check whether that payment ID already exists in your spreadsheet or CRM. If it does, the workflow ends there. Without this, every Mercado Pago retry duplicates the payments you've recorded.
  5. Validate the signature in the x-signature header to make sure the notification really came from Mercado Pago and not from someone who found your URL.

Only if the status is approved and the payment wasn't already recorded does the workflow reconcile: it marks the invoice as paid, stops the pending reminders, and notifies the team channel.

Recording everything in a spreadsheet or in the CRM

Where does the master record live? It depends on your operational maturity:

  • Google Sheets: perfect to start. One row per invoice with status, payment date, and payment ID. n8n has a native node and the team already knows how to use spreadsheets.
  • CRM: if collections are tied to customers and salespeople (commissions, credit limits, history), the record should live in the CRM. With HubSpot or Pipedrive you use the native node; with a custom CRM you connect via API and can model your loop exactly: installments, partial payments, credit notes.

The usual trap is starting in a spreadsheet and never migrating: once you pass ~200 monthly invoices or need partial payments, the spreadsheet starts breaking silently.

The numbers: what to expect

Typical, conservative results for this loop in services and distribution SMBs:

  • 60-75% of invoices get collected without human intervention (the rest require real handling: disputes, customers in trouble).
  • Collection period reduced by 25-40% in the first 3 months, almost entirely explained by the consistency of the reminders.
  • 2-4 hours of daily admin work recovered, which in LATAM equals between USD 300 and 700 a month in labor cost.

The full implementation —the three workflows, the integration with your invoicing, and the approved WhatsApp templates— usually takes 2 to 4 weeks and involves an investment of USD 1,500 to 4,000 depending on the case, plus USD 10-30/month of infrastructure if you go self-hosted.

When this workflow is NOT for you

Honesty first:

  • If you issue fewer than ~30 invoices a month, the savings don't justify the implementation; Mercado Pago's automatic subscriptions or a disciplined manual reminder are enough.
  • If your collections are B2B with purchase orders, withholdings, and bank transfers, the payment link doesn't apply the same way: reconciliation goes through the bank statement, a different project (also automatable, but with a different architecture).
  • If your invoicing is still chaotic (amounts negotiated after invoicing, due dates that don't get entered), first you fix the process, then you automate it. Automating chaos only makes it faster.

The next step

The collections loop is the typical gateway to AI automation: once it works, the same webhooks and the same database feed cashflow reports, scoring of late-paying customers, and collection forecasts.

If you want to implement it without fighting the Mercado Pago documentation, at Deepyze we build this workflow end to end: we map your current loop, implement it at a fixed price agreed in advance, and leave it monitored in production. We work in your time zone and respond with a concrete proposal within 24 hours. Tell us how you collect today and we'll tell you exactly what can be automated.

Frequently asked questions

Can you automate collections with n8n and Mercado Pago?+

Yes. With the Mercado Pago API, n8n can generate payment links, send staggered reminders over WhatsApp and email, and reconcile every payment received via webhook. The full loop runs without human intervention except for the cases that get escalated.

How does n8n receive a Mercado Pago payment notification?+

Mercado Pago sends a webhook notification to the URL you configure, with the event type and the payment ID. The workflow responds 200 immediately and then queries the payments API with that ID to confirm whether the status is approved before reconciling.

What happens if Mercado Pago sends the same notification twice?+

It's expected: Mercado Pago retries if it doesn't get a fast response. That's why the workflow must be idempotent: before recording the payment, it checks whether that payment ID already exists in the spreadsheet or CRM and, if it was already processed, it ends without duplicating anything.

How much does it cost to implement an automated collections system?+

A complete loop with n8n —payment links, reminders, and reconciliation— usually costs between USD 1,500 and 4,000 to implement depending on complexity, plus infrastructure (USD 10-30/month). For an SMB with 100+ monthly invoices, it pays for itself within a few months.

Do I need the WhatsApp Business API for the reminders?+

To do it seriously, yes: the official WhatsApp Business API (via Meta or a BSP) lets you send approved templates reliably and legally. Unofficial solutions are cheap but risk getting your number blocked — unacceptable in collections.

Want this working in your company?

At Deepyze we turn manual processes into systems that work on their own: AI automation, web and mobile apps, and custom software. Tell us your case and you will have a concrete proposal within 24 hours.

Sin compromiso · Respuesta en 24 hs · Equipo en tu mismo huso horario

Keep reading