How to generate a DANFE (Brazilian electronic invoice) using an access key | Floripa Guide

How to generate a DANFE using an access key

How to generate a DANFE (Brazilian electronic invoice)
Photo by Kampus Production

In the dynamic world of Brazilian logistics and accounting, losing a physical document is a common setback, but one that can cause major headaches. If you've ever found yourself needing a tax document and only having that endless sequence of numbers on hand, this guide is for you. The access key for the Electronic Invoice (NF-e) is the master code that unlocks data recovery and the issuance of the Auxiliary Document of the Electronic Invoice (DANFE).

In this article, we'll delve into the technical and practical details of how to transform those 44 digits into a document ready for printing or digital sending. Whether it's for releasing a truck at a tax checkpoint or organizing the entry of goods into your inventory, mastering the art of generating the document using the key is an essential skill for any modern professional.

The anatomy of the access key and its usefulness.

Before we move on to the practical part, it's essential to understand what these 44 numbers that make up the access key are. It's not a random sequence; each block of numbers carries vital information about the operation. The first two digits indicate the state code (UF) of the issuer; the next four show the year and month of issuance; then we have the 14 digits of the issuing company's CNPJ (Brazilian corporate tax ID).

The sequence continues with the invoice model (usually 55), the series, the invoice number, and the type of issuance. The last digits make up the invoice's own numerical code and a check digit. Having this key means possessing the unique identity of that transaction in the national database. Therefore, when consult DanfeBy doing so, you are directly accessing the source of fiscal truth, ensuring that the generated document is authentic and up-to-date with the SEFAZ (State Finance Secretariat) status.

The technical process behind online generation.

Many users wonder how a website can "generate" a document from just a number. The process is a technological integration: when you enter the key into a generator, the system sends a request to the State Treasury Department's servers. If the invoice is authorized, the basic data is returned, allowing the platform to fill in a standardized DANFE layout.

This agility is what allows companies to maintain workflow even when the original XML file has been lost or has not yet been processed by the finance department. Key-based generation is a contingency and agility solution, transforming what would be a bureaucratic problem into a procedure that takes seconds.

8 efficient platforms for generating DANFE using an access key.

Efficient platforms for generating DANFE (Brazilian electronic invoice).
Photo by Kampus Production

To ensure you always have options at hand, we've listed seven platforms below that offer DANFE generation and viewing services using the access key. These options are ideal for different user profiles, from drivers on the road to financial managers in the office.

1. Nfe.io

Nfe.io is widely recognized in the market for its robust tax automation. Although it is a complete platform for issuing and managing invoices, it offers intuitive tools for viewing them. It is an excellent choice for those seeking a professional and secure interface, focused on companies that handle a constant volume of documents and require technical reliability.

2rd victory

Sieg is a giant when it comes to managing tax documents. Its tools are designed to make life easier for accountants and administrators. By using Sieg's solutions to generate DANFE (Brazilian electronic invoice), the user has a system that prioritizes data organization. It's ideal for those who need not only the visual document, but also want to understand the complete status of the invoice and its linked events.

3. NF-e Connection

Focused on automating document receipt, Conexão NF-e has a very agile query and visualization tool. The key difference here is its integration capability; the platform allows you to view the DANFE (Documento Auxiliar da Nota Fiscal Eletrônica - Auxiliary Document of the Electronic Invoice) and organize this information for your ERP or accounting system, avoiding manual typing errors and ensuring that the printed document is exactly what is in the government database.

4. NF-e Assistance

Auxílio NF-e is a practical and straightforward platform, widely used by professionals who need speed without complications. Its interface is simple: you paste the key and the system generates the PDF. It's a favorite tool for those "in the field" who need a document for immediate viewing on mobile devices, without having to go through complex workflows.

5. Focus NFe

Focus NFe stands out for its powerful API, but also offers user-friendly interfaces for manual queries. It's a platform that deeply understands the structure of Brazilian tax documents. When generating a DANFE here, you are guaranteed that the layout will follow all the latest technical standards, ensuring that... bar-code It's perfect for reading by fiscal scanners.

6. Quick DANFE:

For those who can't afford to waste a second, the Quick Danfe It's the preferred choice. The focus is on a "straight to the point" user experience: enter, insert the key, print. No distractions, no excessive advertising, and no unnecessary complexity.

Beyond speed, we deliver reliability. The generated document is 100% compliant with SINIEF regulations, guaranteeing complete barcode legibility at any inspection point. Optimize your logistics and eliminate bureaucracy with a tool that understands the urgency of your business.

7. Bling

Although Bling is known as a complete ERP for micro and small businesses, its external invoice viewing tool is extremely useful. If you already use the system to manage your store or inventory, you can use the... query functionality To import and view DANFEs (Brazilian electronic invoices) from suppliers using only the access key, centralizing your management in one place.

8. SmartNFe

SmartNFe offers an intelligent approach to invoice management. It allows users to view and generate documents in a very intuitive way. The platform is praised for the clarity of the information displayed and the stability of its servers, something crucial when government portals are slow. It's a great alternative for maintaining high productivity.

Requirements for perfect printing

After generating the document on one of these platforms, the final step is printing. For the DANFE (Documento Auxiliar da Nota Fiscal Eletrônica - Auxiliary Document of the Electronic Invoice) to be practically valid during transport, it must be printed on plain paper (usually A4), but with extra attention to the quality of the ink. A faulty barcode can prevent customs officials from validating the invoice, which can lead to unnecessary detentions.

Always preview the generated PDF file before sending it to the printer. Check that the carrier's information and total values ​​are legible. Remember: the DANFE (Brazilian electronic invoice) is the business card of your cargo to the authorities, and the clarity of the printed information is the responsibility of the carrier and the issuer.

FAQ

How do I print the DANFE using the access key?

To print, you must choose one of the online generation platforms mentioned, enter the 44-digit access key in the search field, and request a preview. Once the PDF document is generated on the screen, use the print function of your browser or PDF reader, ensuring that the scale is set to 100% on A4 paper.

Where can I find the access key?

The access key is always printed in the upper right corner of any DANFE you already have. If you don't have the physical document, it can be found in the XML file of the invoice (in the tag). This information can be found in the purchase confirmation emails sent by the supplier. If you are the buyer and have lost everything, the sender is obligated to provide this information.

Is it possible to download the complete XML file using only the key?

Currently, the Brazilian Federal Revenue Service restricts the download of the complete XML file only to those who possess a Digital Certificate (A1 or A3) and are involved in the transaction (such as buyer, seller, or transporter). However, for viewing and printing the DANFE (Documento Auxiliar da Nota Fiscal Eletrônica - Auxiliary Document of the Electronic Invoice) for transport and verification purposes, the access key without a certificate is usually sufficient in most public query tools.

What should I do if the access key is invalid?

If the system returns that the key is invalid, first check if there was a typing error in the 44 digits. If the numbers are correct, the invoice may be very recent (less than 10 minutes) and has not yet been propagated to the national servers, or the invoice may have been issued in a test environment, which has no real fiscal value for the circulation of goods.

How can I check an invoice using my CPF (Brazilian tax identification number)?

Searching by CPF (Brazilian taxpayer ID) is more restricted and generally requires the user to access their state's Finance Department portal using a gov.br system password or digital certificate. Unlike the access key, which is public for summary consultation, searching by CPF falls under the realm of data privacy, requiring authentication to list all invoices issued against that document.


ADVERTISING

See also other features