Skip to content
For Business Owners

Integrations for Carriers and TMS: Forcoder’s Experience

By Ana da Forcoder6 min read

Transportation is one of the most challenging sectors for system integration. A single trip involves SEFAZ, ANTT, CIOT and toll voucher administrators, insurers, trackers, shippers, and banks. Each one has its own API, its own manual, its unique ways to fail, and often a legal rule behind it that turns a technical error into a compliance issue.

Forcoder develops integrations for carriers, shippers, and logistics technology companies. In this article, we share what we’ve mastered in this area, how we work, and where you can see proof: LogFrota, the TMS Forcoder built and supports in production.

Why transportation integration is different

In many sectors, a failed integration means rework. In transportation, it can stop a loaded truck, waste a non-reusable number, or pay the same toll voucher twice. That’s why our carrier integrations follow three principles:

  • Uncertain response is neither success nor rejection. When a provider is slow or fails during a purchase or filing, the system checks before retrying.
  • The law comes before the button. Required CIOT, insurance on the CT-e, declared toll voucher provider on the MDF-e: the system checks compliance before sending.
  • The operator decides what’s irreversible. Contingency, issuing, and buying actions are always user-confirmed, never blindly automated.

What Forcoder integrates for transportation

Tax documents

CT-e, MDF-e, NF-e, DC-e, and NFS-e, with contingency, correction letter, closure, and auxiliary documents. Direct issuance to SEFAZ in production.

CIOT

Direct reporting to ANTT and via administrators. In production with ANTT, NDD Cargo, and e-Frete; four more implemented.

Toll voucher

Purchase, route and tollgate lookup, cancellation, and the correct provider on the MDF-e, integrated with six providers.

Insurance

Automatic endorsement of the approved CT-e. In production with AT&M and NDD Averba.

Operations

Trackers, fueling, routes and mileage, fines, cargo tracking via mobile app, and EDI with shippers.

Finance

Freight billing via boleto and Pix, bank reconciliation and statements, integrated with Asaas.

Transportation tax documents

The foundation is issuing CT-e and MDF-e directly to SEFAZ, without dependency on other systems. We built this using open source libraries from the NFePHP project, the carrier’s A1 digital certificate, and a single environment switch. Contingency covers SVC and offline CT-e contingency, as well as MDF-e contingency, and routes with deliveries in multiple states trigger a manifesto per delivery state, closed in the right order.

Technical details are available in SEFAZ integration in practice and in tax document issuing systems.

CIOT, toll voucher, and insurance: lessons learned

Every reported number is real

The CIOT number is generated on declaration and is non-reusable. Declaration takes a few seconds with the provider, and an impatient extra click can submit again. That’s why, in our systems, declarations run in a queue, and repeated requests merge into the one in progress, with the screen tracking the outcome.

Prevent duplicate toll voucher purchases

If a purchase request faces a connection drop, it’s treated as uncertain: the system checks with the provider before allowing another purchase. Canceling the MDF-e also cancels the voucher, and any draft can’t be deleted while it holds the data needed for outside cancellation.

Accepted by SEFAZ but still wrong

Some mistakes pass validation and only show up later. For example, declaring the wrong toll voucher provider on the MDF-e: SEFAZ accepts any valid provider’s Tax ID, even if it’s not the one who sold the voucher. Our code records which provider was used for each purchase and uses the correct one for reporting.

Insurance is tied to CT-e

The endorsement occurs after the CT-e is authorized, with the authorized XML sent to the insurer. The protocol is stored with the CT-e and can be passed to the MDF-e when the carrier chooses.

Operations: tracking, fueling, routes, and EDI

  • Trackers: reads position, odometer, ignition, and identified driver; cargo tracking by driver app, with consent, published in app stores.
  • Fueling: integrated with internal gas station software, in production, bringing liters, odometer, pump, and attendant.
  • Routes and mileage: Google Routes and Geocoding for MDF-e and load manifest mileage.
  • EDI: SFTP box that receives files from the shipper and issues documents automatically, in production.
  • Registrations: Public sources for Tax ID and ZIP code, with cache and fallback source if one fails.

Freight financials

Freight is billed with boleto and Pix. We have integrated collections with Sicoob and Asaas in production, plus Banco do Brasil, Bradesco, Santander, Itaú, Sicredi, and QI Tech through official APIs, as well as statement download for reconciliation. Our article on banking integration covers webhook and settlement best practices.

The proof: LogFrota

Everything described in this article was developed by Forcoder in LogFrota, a TMS in production with management and driver apps published on the App Store and Google Play. This changes the conversation: when you hire Forcoder to integrate your transportation system, you’re not paying for someone to learn on your operation.

How Forcoder works with carriers and logistics companies

  1. Operational mapping. Which documents, which CIOT, toll voucher and insurance providers, which banks, and which shippers.
  2. Official manual review. Before proposing, we read each provider’s documentation and look beyond the obvious.
  3. Integration with simulated provider. Every integration starts in simulation with error-path tests.
  4. Certification with your credentials. The first real call in each provider’s test environment.
  5. Accompanied and monitored production. Every call is logged and integrations have a health status dashboard.

Checklist for hiring transportation integrations

  • The provider already issues CT-e and MDF-e in production
  • Handles uncertain responses in CIOT and toll voucher
  • Declares the correct voucher provider on the MDF-e
  • Endorses insurance after CT-e authorization
  • Integrates with your existing providers and doesn’t force a switch
  • Logs and monitors every integration call

Hire Forcoder

If you need to integrate a TMS, a transportation ERP, or a shipper’s system with these providers, Forcoder brings the experience of having done it live. Check our services, contact us, or reach out via WhatsApp.

Frequently asked questions

Does Forcoder integrate my transportation system without using LogFrota?

Yes. The experience from LogFrota applies to other systems, by module or API. LogFrota is proof of what we know how to do.

Which CIOT administrators have you integrated?

In production: direct reporting to ANTT, NDD Cargo, and e-Frete. Implemented: Tech4Log, TruckPad, REPOM, and AILOG.

Do you integrate with the toll voucher provider I already use?

We have NDD Cargo, Tech4Log, nspedágio, REPOM, Sem Parar, and AILOG. For other providers, we evaluate their documentation.

How long does it take?

Coding usually moves faster than credentialing. Timelines depend on contracts, test environments, and provider permissions. We only estimate after reading the documentation.

Keep reading

Products by Forcoder and our clients

Software Forcoder built and maintains, for itself and for its clients.

Forcoder service

Custom software and integrations

Forcoder builds systems, platform integrations and automations for your operation, from design to infrastructure.

Client case

Nexus Finanças

Banking as a Service (BaaS) platform for Nexus Finanças: a digital account for each partner, with Pix, transfers, bill payments, charges with automatic split and cards, admin and partner dashboards, plus the company's corporate website.

Client case

Torela Real Estate

Real estate portal and system for Torela, in Gramado, Canela and the Rio Grande do Sul coast, integrated with Loft: listings reach the website without double entry, with search by region, city and neighborhood, property pages with photo galleries, favorites, comparison, vacation...

Client case

Permute-se

An asset-matching social network: properties and vehicles with compatibility-based matches, private proposals, a nationwide feed, wanted listings and subscription plans, on the web and in apps published on the App Store and Google Play.

Have a project in mind? Let's make it happen.

Custom websites, systems and integrations, focused on results. Tell us what you need and the Forcoder team will get in touch.