Introduction Issuing the Manifesto Eletrônico de Documentos Fiscais (MDF-e) with linked CT-e and NF-e is a daily routine in logistics. Still, simple mistakes—like a mistyped access key, the wrong vehicle, or missing transit state codes (UFs)—lead to rejections, shipment delays, and fines. This guide consolidates best practices to add CT-e and NF-e to the MDF-e correctly, with step-by-step instructions, a checklist, and compliance tips. You’ll also see how Meu Rastreio’s MDF-e solution standardizes the process, reduces errors, and boosts operational efficiency—without complications.
MDF-e, CT-e, and NF-e: what they are and how they relate
- NF-e (Nota Fiscal eletrônica): the fiscal document for a sale/transfer of goods.
- CT-e (Conhecimento de Transporte eletrônico): the fiscal document for a transport service provided by a carrier.
- MDF-e: consolidates your transport operation into a single “cover,” linking CT-es and/or NF-es that travel in the same vehicle, route, and time window.
In short:
- Carriers (ETC or TAC, aggregated/independent) usually link CT-es to the MDF-e.
- Companies doing own-account transport or using a leased vehicle may need to link NF-es directly to the MDF-e, when applicable.
When to include CT-e and when to include NF-e in the MDF-e
- Third-party (for-hire) transport service: include the CT-es (one or several) that make up the trip.
- Own-account transport (no CT-e): include the NF-es being carried, when legislation requires an MDF-e.
- Less-than-truckload (LTL): link every CT-e/NF-e that will be on the same vehicle and base route.
- Full truckload (FTL): follow state rules and mark the correct characteristic when issuing the MDF-e.
- Interstate routes: inform all transit UFs. In many states, MDF-e is also required for inter-municipal trips.
Tip: only link documents authorized by SEFAZ (state tax authority). Canceled, denied, or unresolved contingency CT-e/NF-e will be rejected.
Step-by-step: how to include CT-e and NF-e in the MDF-e (road modal)
- Set up issuer and modal data
- Issuer type (ETC/TAC/CTC) and CNPJ.
- Road modal and environment (production/test).
- Active RNTRC and, if applicable, CIOT number for TAC.
- Register vehicle and drivers
- Current plates for tractor and trailers/semi-trailers (valid pattern).
- Drivers’ CPF and valid CNH.
- Check for an open MDF-e on the same vehicle that could block a new one.
- Define origin, destination, and transit UFs
- Loading and unloading municipalities.
- Transit UFs for interstate trips (don’t skip states actually crossed).
- Link the fiscal documents
- CT-e: enter the access key of each knowledge document for the trip.
- NF-e (when no CT-e exists): enter the access key of each invoice being transported. Pro tip: avoid typing keys manually. Import XMLs to prevent typing errors.
- Enter cargo and transport units
- Total gross weight and total cargo value.
- Cargo unit, seals (if any), and specific characteristics (e.g., hazardous, full truckload).
- Insurance and responsibilities
- RCTR-C insurance details (where applicable) and responsibilities in subcontracting/re-dispatch scenarios.
- Validate rules before sending
- Check issuer status, RNTRC, plates, CT-e/NF-e keys, transit UFs, and consistency of values/weights.
- Transmit and review the return
- Store the authorization protocol.
- Make the document available to the driver (printed or digital, per internal procedure).
- Execute the trip and keep control
- Any relevant change (vehicle, route, cargo) after authorization may require a new MDF-e.
- For transshipment or re-dispatch, assess the need for a new manifest.
- Close the MDF-e
- At the end of the route, close the MDF-e with the correct closing municipality.
- Unclosed MDF-es can trigger rejections in future issuances and raise the risk of inspections.
How to include CT-e in the MDF-e: critical points
- Use only authorized, valid CT-es.
- Confirm payer/recipient and CT-e municipalities align with the planned route.
- Sum cargo weight and value coherently with the linked CT-es for the MDF-e total.
- In subcontracting/re-dispatch, follow the rules for who issues the MDF-e and how to reference the original CT-e.
How to include NF-e in the MDF-e: critical points
- Linking NF-es is common in own-account transport (no CT-e issued).
- Use authorized NF-e keys that match what is actually on board.
- Keep origin/destination municipalities consistent between NF-e and MDF-e route.
- In inter-branch transfers, validate registrations and CFOP to avoid inconsistencies that affect validation.
Validation rules that most often cause rejection
- CT-e/NF-e key is nonexistent, canceled, or denied.
- Missing transit UF for interstate trips.
- Plate in an invalid format or conflicting with registration.
- RNTRC nonexistent/inactive when required.
- Mismatch in start/end municipalities between documents and MDF-e.
- Fiscal document does not belong to the issuer responsible for the transport (specific scenarios).
- Attempt to issue a new MDF-e for a vehicle that already has an open, unclosed MDF-e. If rejected, correct the cause, issue a new MDF-e, and when needed, cancel/close the previous one per current rules and deadlines.
Special operations: extra care
- Subcontracting and re-dispatch: clearly define who issues the MDF-e and how to reference the principal carrier’s documents.
- Full truckload (FTL): enable the specific characteristic when the entire vehicle is assigned to a single CT-e/NF-e.
- Transshipment: if a vehicle is changed en route, you may need to close the MDF-e and issue a new one for the next leg.
- Contingency: if SEFAZ is down, issue in contingency and transmit once the service returns, within deadlines.
- Cancellation: only cancel an authorized MDF-e if the trip has not started and is within the allowed time window. Otherwise, close it properly.
Practical example (hypothetical) A mid-sized carrier departs Curitiba/PR to three cities in SC with a dry van truck. The operation is LTL, with 8 different CT-es. The manager:
- Selects the vehicle and driver, validates RNTRC and plates.
- Informs origin as Curitiba, destinations as Joinville, Itajaí, and Florianópolis, and includes SC as the destination UF (no intermediate UFs because the interstate path is direct).
- Links the 8 CT-e keys, and confirms total weight and value.
- Transmits the MDF-e and receives authorization before departure.
- After deliveries, closes the MDF-e in Florianópolis. Result: zero rejections, no unplanned stops, and documentation ready for audit.
Best practices and quick checklist Checklist for every MDF-e:
- Correct issuer and environment (production).
- Active RNTRC and, when applicable, CIOT informed.
- Correct tractor and trailer plates.
- Drivers registered and valid.
- Coherent origin, destination, and transit UFs.
- Authorized CT-es/NF-es verified via XML.
- Total weight and value consistent with documents.
- Special characteristics (FTL, hazardous, seals) when applicable.
- Authorization protocol stored and accessible.
- Closure performed at the end of the route.
Best practices:
- Standardize the process with a visible team checklist.
- Import XMLs to avoid manually typing keys.
- Monitor MDF-es pending closure daily.
- Train drivers on carrying and presenting digital documents.
- Periodically review state rules and SEFAZ/ANTT updates.
How Meu Rastreio simplifies adding CT-e and NF-e to the MDF-e Meu Rastreio provides an MDF-e solution built for real operations, minimizing data-entry failures, speeding up issuance, and ensuring compliance:
- Automatic CT-e and NF-e import via XML: eliminates manual key entry errors.
- Smart pre-send validations: checks key existence/validity, RNTRC, plates, and route consistency to avoid common rejections.
- Suggested transit UFs by route: reduces omissions on interstate trips.
- Event management: cancellation, contingency, and closure in one place, with deadline alerts.
- Operational control center: visibility of issued, pending, and closed MDF-es; indicators for audit and compliance.
- Integrated logistics workflows: sync vehicles, drivers, and documents in a single flow.
- Specialized support: a team fluent in operational logistics and up-to-date with SEFAZ/ANTT rules. Learn more: https://meurastreio.app/pt-BR/mdfe
Trends and insights for logistics managers
- End-to-end fiscal digitalization: from order to POD, the trend is to cut rework and reconcile data in real time.
- Increasingly automated enforcement: cross-validations among CT-e, NF-e, and MDF-e make data consistency critical.
- Efficiency as a competitive edge: standardizing MDF-e issuance and eliminating rejections speeds yard turns, reduces costs, and improves service levels.
Conclusion: standardize now to gain efficiency and safety Adding CT-e and NF-e to the MDF-e correctly is about method: validate registrations, import keys, check the route, and close on time. With well-defined processes and a tool built for SEFAZ rules, your operation runs smoothly, avoids fines, and delivers faster. Ready to see how to reduce rejections and accelerate MDF-e issuance in practice? Book a free demo of Meu Rastreio and talk to a specialist today.














