Contact
Solutions

Systems that power day-to-day management.

Cloud platforms, integrations and dashboards built into your daily operations.

Technology
We implement our own BI and AI solutionsLearn more →
Industries

We know how your industry works.

Specialists who know each industry's taxes, metrics and pitfalls from the inside.

Logistics and Freight Forwarding
WIP, margin per shipment and cost per carrier under controlSee how we help →
About us

Alongside decision-makers since 2006.

Partners with over 25 years of experience and a team that knows you by name.

Meet Solidy →
Our team
Behind every number, people.Meet the team →

Accounts Payable Automation in Brazil: From Invoice to Payment

Accounts payable automation in Brazil: when to use XML, DDA, OCR, RPA or an API, what a bot should never decide and how to test the business case.

By Rocélio Tenório Mar 26, 2026

Accounts payable automation in Brazil starts from a different place than in most countries. Global AP tools are usually built to read PDF invoices, while a Brazilian subsidiary receives most of its invoices as XML files authorized by the tax authority and most of its bills as boletos (bank payment slips) registered in the banking system. Capturing that data at the source tends to cost less and fail less often than reading an image. What still has to stay with a person is the decision to pay.

What does accounts payable automation mean in Brazil?

It means the document enters the system with no typing, is checked by rules and reaches an approver ready for a decision. Headquarters often ask the local team to plug into the group’s invoice-capture tool, and three technologies show up in the same sentence even though they do different jobs. OCR turns an image into text, and it can misread. RPA is a bot that repeats clicks on a screen, and it can stop when the screen changes. An API is a direct conversation between two systems. Before buying any of them, sort the documents the subsidiary receives by the quality of the data behind them:

Document Best way to capture it Limit to keep in mind
NF-e (electronic invoice for goods) XML downloaded from the tax authority by the recipient’s CNPJ (corporate taxpayer number), using the company’s digital certificate The download depends on the recipient statement events described below. The issuer must also send the file or make it available
Registered boleto DDA (Débito Direto Autorizado, the banks’ electronic presentment of boletos), fed into the ERP by file or by an API from the bank or a provider It shows the boleto. It does not pay on its own and does not prove the expense is owed
NFS-e (electronic invoice for services) XML or API, where available Coverage depends on whether the vendor’s municipality issues on the national platform or keeps its own system
Tax payment forms and utility bills The portal of the agency or utility, through an API or RPA DDA providers report that these charges sit outside DDA
Receipts, PDF invoices from foreign vendors, paper documents OCR with human review The least reliable source: use it only for what is left

The order of the table is the order of the project. Every document captured at the source is one less for the OCR to interpret and for someone to correct. On service invoices, municipalities have been required since January 1, 2026 either to let taxpayers issue the national-standard NFS-e or to share the invoices from their own system with the national NFS-e data environment (Complementary Law 214/2025, art. 62, § 1), so check city by city how your main service vendors are covered.

What do XML and DDA solve, and what do they leave open?

The NF-e comes with a mechanism that has no equivalent in most ERPs designed abroad: the recipient statement (Manifestação do Destinatário). The buyer registers one of four events against each invoice: awareness of issuance, confirmation of the transaction, transaction unknown and transaction not completed. According to the Goiás State Department of Economy, the mechanism lets a company see every invoice issued in Brazil against its registration, including misuse by fraudulent issuers, and releases the XML download for invoices with an awareness or confirmation event. For accounts payable, that works as an early warning: an unknown invoice shows up before it turns into a payment.

The national rule (Ajuste SINIEF 07/05) makes the events mandatory only for some segments, such as fuel and wholesale distribution of beverages and cigarettes, and each state can extend the list. Two consequences matter for anyone who automates:

  • Awareness creates an obligation. The awareness event can be registered within 10 days of the invoice’s authorization, and a company that registers it to download the XML then owes one of the three conclusive events.
  • Silence counts as confirmation. Since June 1, 2026, the conclusive events can be registered within 90 days of authorization (the window was 180 days until May 31, 2026). After 90 days with no event, the transaction is deemed to have occurred, with the same effects as a confirmation. The segments listed in Annex II of the Ajuste have shorter deadlines, from 10 to 70 days depending on the event and the route.

The routine therefore needs a report of invoices with no conclusive event, reviewed well before day 90, and it cannot wait for an invoice to reach the payment run to flag it as unknown. An event can be corrected, but only within 30 days of the first statement. Confirm the deadlines and the segments covered with the state tax authority (Sefaz) in each state where the subsidiary operates.

The order of the events also matters. The Goiás guidance notes that a confirmed invoice can no longer be canceled by the issuer, so an automatic confirmation, registered before anyone knows whether the goods arrived, gives up a protection. Tie the confirmation to the goods receipt recorded in the system, never to the arrival of the XML. Awareness does not prevent cancellation, which is why the invoice status should be checked again before payment is released.

DDA gathers the registered boletos issued against the company’s CNPJ at any participating bank. Enrollment is done with the company’s own bank, as Bradesco explains, and Santander’s manual is clear that nothing is debited automatically: payment depends on authorization. DDA removes the typing of the boleto’s payment line, but it cannot say whether that boleto should be paid. The answer comes from matching it against the invoice and, where one exists, the purchase order.

Why does matching decide whether the project pays off?

Capture with no matching only speeds up the error. A simple rule compares vendor, CNPJ, amount, due date and, where they exist, purchase order and goods receipt. What matches goes to approval. What does not goes to an exception queue with the reason written down.

The rule has to understand Brazilian tax routines, or the queue fills with false alarms. When withholding applies, the amount paid to the vendor is lower than the gross amount on the invoice. Payments for cleaning, security, maintenance and professional services, among others, are subject to a 4.65% withholding of CSLL, Cofins and PIS (Law 10,833/2003, arts. 30 and 31), with exceptions that include vendors under the Simples Nacional regime (art. 32), and other withholdings can apply to the same invoice. The rate applies to payments made in 2026. PIS and Cofins give way to CBS in 2027, so confirm the withholding rule for payments from January 2027 before hard-coding it. A bot that demands equality between invoice and boleto will block those payments every month, and the amounts withheld still have to reach the monthly tax compliance calendar. Installments, discounts, late interest and invoices split into more than one boleto need the same treatment.

Another inexpensive check is for duplicates: use the boleto’s payment line, or the combination of vendor, invoice number and amount, as a key that stops the same payable from entering twice, for example once through DDA and once as a PDF sent by email.

Check as well whether CNPJ fields accept letters. Brazil’s federal tax authority began assigning alphanumeric CNPJs to new registrations in July 2026 (Normative Instruction RFB 2,229/2024), with the first one issued on July 31, 2026, and existing numbers remain valid. A vendor master or a global template that validates the field as digits only will reject vendors that receive the new format, a point that also belongs on the checklist for choosing an ERP for a Brazilian subsidiary.

What should the bot never decide?

Automation changes the nature of the risk. With manual entry, an error is usually isolated. With a wrong rule, it repeats on every payable until someone notices. Three controls should stay out of the bot’s reach:

  • Payment approval. The bot prepares the batch, and whoever holds the approval limit releases it at the bank with their own access. A bank credential shared with a bot erases the separation between the person who books and the person who pays.
  • Changes to a vendor’s bank details. A request by email is the path most of these frauds take. The change goes through a confirmation in another channel, with a contact already on file, made by someone other than the person who books the invoice.
  • New vendor registration. If the bot accepts any issuer, a well-formatted fake boleto passes through capture with no friction. The payee and CNPJ on the boleto must match the approved vendor record. A receivable assigned to a factoring company or a securitization vehicle, with the assignment documented, goes to the exception queue.

Approval limits should follow the powers granted in the subsidiary’s articles of association and the group’s delegation of authority, and the exception rules need to be in writing so that local management and headquarters can audit them. The principle underneath is segregation of duties: the person who prepares is never the one who checks. These are the same controls described in our article on payment fraud controls for a subsidiary in Brazil, applied here to an automated flow.

Is a scanned paper document as good as a digital original?

No, and the difference matters when the team wants to discard paper. Decree 10,278/2020 deals with the digitization of paper. It does not apply to documents born digital, such as the XML of an NF-e, or to documents from transactions in the financial system. If the company scans supporting documents to prove something to a public body and discards the original, the file needs a digital signature under ICP-Brasil (Brazil’s public key infrastructure) and the technical standards and minimum metadata set out in the decree’s annexes (art. 5). Between private parties, any method agreed by both or accepted by the party receiving the document is valid, and with no prior agreement article 5 applies (art. 6).

The image an OCR tool uses to extract data does not meet those requirements on its own. For expenses, the federal tax authority has stated in a formal ruling (Solução de Consulta Cosit 171/2020) that originals may be destroyed only when those requirements are met. Retention also has no fixed five-year term: the National Tax Code (art. 195, sole paragraph) requires supporting documents to be kept until the statute of limitations runs on the tax credits arising from the transactions they refer to, and that count varies case by case. A group retention policy written for another jurisdiction should be checked against this rule before it is applied in Brazil.

How do you know whether the numbers work?

Automation proposals usually promise hours saved, but the gain depends on volume and on the share of documents that go straight through with no intervention. The example below is hypothetical, and each assumption should be replaced with the subsidiary’s own figures: 7 minutes to handle a document by hand, 1 minute to approve one that went straight through, 8 minutes in total to resolve and approve an exception and a cost of R$ 45 per hour.

Documents per month Straight through Hours before Hours after Hours saved Value saved per month
600 50% 70 45 25 R$ 1,125
600 70% 70 31 39 R$ 1,755
1,000 70% 116.7 51.7 65 R$ 2,925

If the tool and its maintenance cost R$ 2,500 per month, also a hypothetical figure, the project pays for itself on hours saved alone only from about 855 documents a month, with 70% going straight through (3.9 minutes saved per document). The calculation leaves out implementation: add that investment to the monthly cost, spread over the period in which the company expects to recover it. The formula to carry forward is this:

Break-even volume = monthly cost of the solution ÷ (minutes saved per document ÷ 60 × hourly cost)

Two warnings about this math. Hours saved turn into money only if the team is reassigned or stops growing. Otherwise the gain is capacity, and the business case sent to headquarters should say so. The calculation also excludes late-payment penalties, duplicate payments and fraud avoided, which can justify the project at a lower volume. Measure those events over 12 months of history before estimating, in place of a market percentage.

In practice, the real constraint is often master data. Duplicate vendors and cost centers used in different ways generate exceptions in series. Cleaning up the vendor master first usually returns more than buying a better OCR.

Where should a subsidiary start?

  1. Count one month of documents by type and by source. That number decides everything that follows.
  2. Switch on what already exists: XML by CNPJ and DDA at the bank. Check first what the ERP and the bank already offer.
  3. Write the rules for matching, approval limits and recipient statement events, and follow the exception queue for a few weeks.
  4. Only then evaluate OCR and RPA for what is left, with an owner for maintenance and a plan for the day the bot stops.
  5. Track four numbers: the straight-through rate, time per exception, late payments and duplicates blocked.

Those numbers also matter to whoever is accountable for cash. Payables with current data improve the forecast of outflows that supports cash flow management at a Brazilian subsidiary, and the same clean data feeds bank reconciliation with Open Finance data at the other end of the payment.

Frequently asked questions

Do we need to replace the ERP to automate accounts payable?

Often not. XML capture, DDA and matching rules can run in a layer integrated with the current system, by file or API. Replacement enters the conversation when the ERP accepts neither integration nor the import of payables.

RPA or API: which one should we choose?

Where an API exists, it tends to be more stable because it does not depend on the layout of a screen. RPA serves systems and portals with no integration, and it needs monitoring, since a change on the screen can stop the bot.

Does OCR remove the need for review?

Not for fields that move money. Amount, due date, payee and bank details read from an image should be matched against another source or reviewed by a person.

Does DDA pay boletos on its own?

No. It makes registered boletos available electronically, and payment depends on authorization. That is different from automatic debit (débito automático), which is contracted in advance.

How Solidy can help

Solidy already serves subsidiaries of multinational companies in Brazil. Our digital transformation practice works on automation with RPA, AI and integrations, and a project like this one starts with the count of your payables by type and source, before any tool is chosen.

Talk to Our Digital Transformation Team

Sources

  • Confaz, Ajuste SINIEF 07/05, consolidated text: clause 7, § 7 (issuer sends the XML or makes it available), clauses 15-A to 15-C (events, 10 days for awareness, 90 days for conclusive events as amended by Ajuste SINIEF 14/26, published in the Official Gazette on April 9, 2026 and in effect since June 1, 2026, 30 days for corrections) and Annex II (mandatory segments and their deadlines). confaz.fazenda.gov.br
  • Goiás State Department of Economy, Recipient statement (Manifestação do Destinatário), an older guidance page used for the benefits, the XML download and the effect of confirmation on cancellation. For deadlines and corrections, the Ajuste above prevails. goias.gov.br
  • Bradesco, Débito Direto Autorizado (DDA): enrollment and registered boletos from participating banks. banco.bradesco
  • Santander, DDA user manual (Manual de utilização do DDA): payment only with authorization and the difference from automatic debit. santander.com.br
  • NFE.io, API DDA: o que é, como funciona e como integrar ao ERP (software vendor, secondary source for the charges that sit outside DDA). nfe.io
  • Complementary Law 214/2025, art. 62, § 1 (municipalities and the national NFS-e from January 1, 2026). planalto.gov.br
  • NFS-e Portal, the national NFS-e project (O projeto NFS-e): adoption by each municipality through an adhesion agreement. gov.br/nfse
  • Law 10,833/2003, arts. 30 to 32 (withholding of CSLL, Cofins and PIS/Pasep at 4.65% and its exceptions). planalto.gov.br
  • Federal Revenue of Brazil, alphanumeric CNPJ (CNPJ Alfanumérico): assignment to new registrations, Normative Instruction RFB 2,229/2024 and timeline, with the first alphanumeric CNPJ on July 31, 2026. gov.br/receitafederal. News release on the first alphanumeric CNPJ (Receita Federal gera o primeiro CNPJ em formato alfanumérico), July 31, 2026. gov.br/receitafederal
  • Decree 10,278/2020, arts. 2, 5, 6, 9 and 11 (digitization of documents). planalto.gov.br
  • Federal Revenue of Brazil, Solução de Consulta Cosit 171 of December 28, 2020, summary (published in the Official Gazette on January 5, 2021), reproduced by IBET. ibet.com.br
  • National Tax Code (Código Tributário Nacional, Law 5,172/1966), art. 195, sole paragraph. planalto.gov.br

Information only, updated November 2026. The numerical examples are hypothetical. Not a substitute for advice on your specific case.

Rocélio TenórioFounding partner, Solidy Consulting. For more than 25 years, he has worked in corporate finance, controllership, structuring and restructuring of SMEs and subsidiaries of multinational groups, in Brazil and abroad.
Share