webmania®
  • Contact

Region and language

Brazil

  • PTPortuguês (Brasil)
  • ENEnglish
  • ESEspañol
Sign in Book a demo
Solutions
Fiscal IssuerFiscal MonitorTax ReconciliationArtificial Intelligence

Document guide

NF‑e (electronic invoice)NFS‑e (service invoice)CT‑e and CT‑e OS (freight bills)NFC‑e (consumer receipt)DC‑e (content declaration)MDF‑e (cargo manifest)NFCom (telecom invoice)CIOT (road freight code)Tax payment slips

Tax intelligence and security

ByPass®Webmania® TaxesTax reformSecurityWebmania® Trust Center
Brazil tax guide

Start here

Brazil tax guideComplete guide

Popular chapters

NF‑e · Electronic invoiceNFS‑e · Service invoiceCT‑e · Freight billTax reformGlossary
Industries
Technology & SaaSRetail & CommerceLogistics & TransportationEnterprise

By company size

Mid-sized Companies

Other industries

ManufacturingBanks & FintechsServices & Subscriptions
Developers
See all documentation →

Tax & Invoicing

Goods invoice (NF‑e)Service invoice (NFS‑e)Telecom invoice (NFCom)Fiscal Monitor

Logistics & Transport

Freight bill (CT‑e)Cargo manifest (MDF‑e)Content declaration (DC‑e)CIOT / PEF (ANTT)

Payments & Management

GNREDARE‑ICMS SPDUA‑ESB2B Management

Resources

Docs for LLMs (llms.txt)Webmania® Status (in Portuguese)SEFAZ Monitor (in Portuguese)City Hall Monitor (in Portuguese)
Company

Webmania

About WebmaniaCustomers
ContactPortuguês (Brasil)
Sign in →Book a demo
Fiscal IssuerIssue NF‑e, NFS‑e, CT‑e and other documents from the panel or the API→Fiscal MonitorReceive the invoices issued to your CNPJs, straight from SEFAZ and city halls→Tax ReconciliationCheck the new CBS tax against the Federal Revenue before you pay→Artificial IntelligenceUnderstand rejections, set up taxes and update records with AI→

Document guide

NF‑eElectronic invoiceNFS‑eService invoiceCT‑e and CT‑e OSFreight billNFC‑eConsumer receiptDC‑eElectronic content declarationMDF‑eCargo manifestNFComTelecom invoice

Document guide

CIOTRoad freight registration codeTax payment slipsGNRE, DARE‑ICMS SP and DUA‑ES from the NF‑e

Tax intelligence and security

ByPass®ERP values without recalculationWebmania® TaxesSet up your Tax ClassesTax reformIBS, CBS and the Selective TaxSecurityCertificate, data and Trust CenterWebmania® Trust CenterSecurity, privacy and subprocessors

Not sure where to start?

Book a demo →

Tax & Invoicing

Goods invoiceNF‑e, NFC‑e, CC‑e and MDeService invoiceNFS‑eTelecom invoiceNFComFiscal MonitorXML download

Logistics & Transport

Freight billCT‑e and CT‑e OSCargo manifestMDF‑eContent declarationDC‑eCIOT / PEF (ANTT)Freight payment

Payments & Management

GNREState tax payment slipDARE‑ICMS SPSão Paulo state ICMSDUA‑ESEspírito Santo payment slipB2B ManagementManage your companies
Ready for LLMs and SDKsAI-ready documentation, with official SDKsllms.txt# Webmania® documentation- NF‑e - NFS‑e Open llms.txt

Live status (in Portuguese): Webmania® Status · SEFAZ Monitor · City Hall Monitor

See all documentation →
Technology & SaaSThe tax layer of your software, through REST APIs.Learn more →Technology team
Retail & CommerceNFC‑e and NF‑e at the checkout and online, by API.Learn more →Retail operation
Logistics & TransportationCT‑e and MDF‑e built into your transportation system.Learn more →Logistics operation
EnterpriseHigh volumes, with VIP Support and governance.Learn more →Enterprise operation

By company size

Mid-sized CompaniesOperations that are scaling up

Other industries

ManufacturingNF‑e at the volume of your operationBanks & FintechsNFS‑e for fees and servicesServices & SubscriptionsNFS‑e at large scale

Not sure where to start?

Book a demo →

Webmania

About WebmaniaThe tax infrastructure and intelligence behind 100,000+ active company IDs (CNPJs).Meet Webmania →CustomersHow companies in different industries issue and monitor their tax documents.See our customers →ContactQuestions about operating in Brazil? Our team replies in your language.Talk to our team →

In numbers

15 million+tax documents per month
1.2 billion+API requests per year
100,000+active company IDs (CNPJs)
99.95%availability

Not sure where to start?

Book a demo →

Start here

Brazil tax guideNew to Brazil? The invoices, taxes and approvals of a sale, explained on one page.Start reading →

Go deeper

Complete guideEvery tax document in detail: when you need it, how to issue, cancel and correct it.Open the complete guide →

Goods and services

NF‑eElectronic invoiceNFC‑eConsumer receiptNFS‑eService invoiceNFComTelecom invoice

Transport

CT‑eFreight billMDF‑eCargo manifestCIOTRoad freight codeDC‑eContent declaration

Taxes and reform

Tax payment slipsGNRE, DARE and DUATax reformCBS and IBS, 2026–2033Tax ClassTax rules, set onceGlossaryTax terms, explained

Not sure which documents your operation needs?

Book a demo →
  • CIOT REST API
  • Quick guide
    • Who Can Issue
    • CIOT Lifecycle
    • Payment FlowComing soon
  • SDKs & LLMs
    • LLM-ready
    • Webmania SDKs
    • Examples
  • Authentication
  • Response format
  • Notifications
    • Notification Fields
    • Notification Example
  • Declare an Operation
    • Declaration Data
    • Request Example
    • Origin and Destination
    • Vehicles
    • Payment Information
    • Cargo Data
    • Operational Indicators
    • Minimum Freight Rate
    • Rules by Channel
    • Payment Methods
    • Additional Data
    • Declaration Responses
  • Lookups
    • Look Up a CIOT
    • Carrier Status
    • Carrier Fleet
    • Exception List
  • Operation Management
    • Cancel an Operation
    • Amend an Operation
    • Close an Operation
  • Freight PaymentComing soon
    • Pay an Installment
    • Installment Status
    • Reprocess a Payment
    • Add or Change an Installment
    • Pix Receipt
    • Open Installments
  • Toll VoucherComing soon
    • Route Planner
    • Buy a Toll Voucher
    • Look Up a Toll Voucher
    • Toll Voucher Receipt
    • Cancel a Toll Voucher
  • IPEF AccountComing soon
    • Account Balance
    • Account Statement
  • Error Messages
  • Contingency
  • CIOT in the MDF-e
  • Infrastructure
  • Request limits
  • Changelog
⚡ Follow in real time (in Portuguese): Status | SEFAZ Monitor | City Hall Monitor

Last updated: December 2, 2026 · v2.2.0

Region and language

Brazil

  • PTPortuguês (Brasil)
  • ENEnglish
  • ESEspañol
View Markdown index (in Portuguese)
View Markdown indexLists the sections with links (in Portuguese)Open in ChatGPTReads the index and fetches only the sections it needsOpen in ClaudeReads the index and fetches only the sections it needs

CIOT / PEF REST API

Documentation for getting the CIOT in ANTT's electronic freight payment system (PEF).

CIOT with ANTT, through the API CIOT with ANTT, through the API

The Webmania® REST API declares road freight operations, gets the CIOT from ANTT (the national land transport agency) and tracks each operation until it is closed. Before you declare, you can check the carrier's status and fleet in the RNTRC (ANTT's national registry of road cargo carriers). Through a partner IPEF (Instituição de Pagamento Eletrônico de Frete, an electronic freight payment institution), the same API also pays the freight installments and buys the toll voucherComing soon. To start, read the Quick guide.

What is the CIOT? The CIOT (Código Identificador da Operação de Transporte) is the road freight registration code. ANTT assigns it to each paid road freight job, in which a hiring party (the contratante) pays a hired carrier (the contratado) to move cargo by road. It proves that the operation was declared in the PEF (ANTT's electronic freight payment system), and you can report it in transport tax documents such as the MDF-e (the electronic cargo manifest of the trip). Each operation is registered through one of two channels, chosen by the API:

Direct channel with ANTT

For an ETC (road freight company) not treated as a TAC (independent truck driver), with an active RNTRC, that carries the cargo in its own name. Webmania registers the operation directly with ANTT, in the company's own name. The company's CNPJ (company ID) goes in cpf_cnpj_contratado.

Issuing through a partner

When the hired carrier is a TAC (independent truck driver), a TAC-equiparado (an ETC with up to 3 vehicles) or a CTC (freight cooperative), or when tipo_operacao=3 (TAC-Agregado, a TAC who works exclusively for one hiring party): the operation goes through a partner IPEF. Contact us.

Send a single JSON body to POST /2/ciot/declaracao. The API routes the declaration automatically by operation type. For types 1 and 2, it also uses the hired carrier's profile in the RNTRC.

Brazilian terms you will see. They keep their Brazilian names in the payload:
CIOT: the code ANTT generates when a paid road freight operation is registered. It goes into the MDF-e of the trip.
ANTT: the national land transport agency, which regulates road freight and issues the CIOT.
RNTRC: the carrier's registration with ANTT, required for paid road cargo transport. Field rntrc_contratado.
ETC / TAC: the carrier profiles in the RNTRC: ETC is a road freight company, TAC an independent truck driver. With the operation type, the profile decides the issuing channel.
MDF-e: the electronic cargo manifest of the trip, authorized by SEFAZ, where the CIOT is reported.
CNPJ / CPF: the company ID (14 digits) and the individual taxpayer ID (11 digits) of the hired and hiring parties. Fields cpf_cnpj_contratado and cpf_cnpj_contratante.
Every term in plain English: glossary of Brazilian tax terms.

This API is in beta. The endpoints and fields in this documentation are available, but they may change during the beta. Changes are listed in the Changelog. Need to issue other document types? See the documentation
Availability and Security
High availability, scalable and redundant servers at the highest PCI DSS security level, on Amazon Web Services, the global leader in cloud computing.
Storage
Secure, encrypted and unlimited archiving of tax documents on Amazon S3.
REST API Integration
Works with every programming language through JSON, with low latency on a global infrastructure.
Automatic CIOT
Get the CIOT (road freight registration code) from ANTT and use it in transport tax documents.
RNTRC Validation
Real-time lookup of the carrier's status, fleet and exceptions in the ANTT database.
Specialized Support
Expert support for tax integration and programming.

Quick guide

Send every API request over encrypted HTTPS to the URL https://api.webmania.com.br. The /2/ prefix means you are using version 2.0 of the API.

URL HTTP Verb Function
/2/ciot/declaracao POST Declare a transport operation and get the CIOT (road freight registration code)
/2/ciot/parcela/pagarComing soon POST Pay a freight installment
/2/ciot/parcela/reprocessarComing soon POST Reprocess a failed installment payment
/2/ciot/roteirizadorComing soon POST Quote the route and the tolls
/2/ciot/vale-pedagioComing soon POST Buy a toll voucher
/2/ciot/consulta/{ciot} GET Look up an issued CIOT
/2/ciot/parcela/statusComing soon GET Get the installment status
/2/ciot/parcela/comprovanteComing soon GET Get an installment's Pix receipt
/2/ciot/parcelas/abertasComing soon GET List open installments
/2/ciot/vale-pedagio/{numero}Coming soon GET Look up a toll voucher
/2/ciot/vale-pedagio/{numero}/comprovanteComing soon GET Get the toll voucher receipt
/2/ciot/transportador/situacao GET Look up the carrier's status in the RNTRC (ANTT's national registry of road cargo carriers)
/2/ciot/transportador/frota GET Look up the status of the vehicle fleet
/2/ciot/excecao GET Look up ANTT's exception list
/2/ciot/conta/saldoComing soon GET Get the account balance
/2/ciot/conta/extratoComing soon GET Get the account statement
/2/ciot/cancelar PUT Cancel a transport operation
/2/ciot/retificar PUT Amend a transport operation
/2/ciot/encerrar PUT Close a transport operation
/2/ciot/parcela/alterarComing soon PUT Add or change an installment
/2/ciot/vale-pedagio/cancelarComing soon PUT Cancel a toll voucher

Responses are in JSON. Send Authorization: Bearer YOUR_ACCESS_TOKEN in every call, and Content-Type: application/json in calls that have a body. See Authentication. The installment, toll voucher and account endpoints are only for services provided through a partner IPEF (Instituição de Pagamento Eletrônico de Frete, an electronic freight payment institution)Coming soon.

How to integrate the CIOT:

  1. Look up the carrierif needed Check the status and the fleet of the hired carrier in the RNTRC, if needed.
  2. Declare the operation Send a single JSON body to POST /2/ciot/declaracao. The API routes the operation automatically and returns the uuid for tracking.
  3. Receive the result Webmania notifies your URL when the CIOT is approved or refused. Until then, the status is processando.
  4. Use the CIOT in the MDF-e Send the code in the rodoviario.ciot field of the MDF-e.
  5. Pay the freightif neededComing soon For operations through a partner, see the services that pay installments and buy toll vouchers.
  6. Close the operation When the transport ends, close the CIOT. If the trip does not happen, cancel it within the deadline.

If the API returns HTTP 422 with validation_failed in the unified format, the keys of errors show which JSON fields to review.

Before you repeat a declaration, look up the operation by its uuid if you already received it. If you need to send it again, use a JSON body identical to the original.

Quick guide
Who Can Issue

Automatic routing of the declaration Send a single JSON body to POST /2/ciot/declaracao. The API routes the declaration automatically. An ETC not treated as a TAC, with an active RNTRC, that carries in its own name uses the direct channel with ANTT in types 1 and 2. TAC, TAC-equiparado (an ETC with up to 3 vehicles), CTC and operations with tipo_operacao=3: through an IPEF partner. Contact us. POST /2/ciot/declaracao The API routes it automatically Direct channel with ANTT Through an IPEF partner — contact us By operation type and hired carrier profile ETC not treated as TAC, with active RNTRC In its own name, in types 1 and 2 TAC, TAC-equiparado (ETC with up to 3 vehicles), CTC and operations with tipo_operacao=3
See the declaration example in the unified format and the required fields in Rules by Channel.

Quick guide
CIOT Lifecycle

Every operation gets a uuid as soon as the API accepts the declaration. From then on, it moves through the statuses below. They appear in the response and in the CIOT lookup. The notification is sent only for the results: aprovado, reprovado, cancelado and encerrado.

CIOT lifecycle The declaration starts in processando while it waits for ANTT or the IPEF. A communication failure moves it to contingencia, with an automatic retry. The result is aprovado, when the CIOT is issued, or reprovado. An approved CIOT can be amended in types 2 and 3 and stays aprovado. Later, it becomes encerrado when the transport ends, or cancelado within the deadline. processando contingencia aprovado reprovado encerrado cancelado waiting for ANTT or IPEF automatic retry CIOT issued · use in MDF-e read motivo and fix transport completed within the deadline amend · types 2 and 3 close cancel
The processando and contingencia statuses do not trigger a notification. Follow the result webhook or the CIOT lookup, and do not declare again.
StatusWhat it meansWhat to do
processandoThe operation is waiting for confirmation from ANTT or the partner IPEF.Wait for the notification or look up the CIOT. Do not send the declaration again.
contingenciaCommunication failed, and Webmania retries the operation automatically within the allowed window.Follow the same uuid, without declaring again.
aprovadoThe CIOT was issued.Use the code in the MDF-e. Amend it, pay installments or close it, as the operation requires.Coming soon
reprovadoThe declaration was refused; motivo has the code and the message.Fix the data shown in motivo and send a new declaration.
canceladoThe operation was canceled.Do not use this CIOT in tax documents.
encerradoThe operation was closed as completed.Nothing to do. Through an IPEF partner, the installments can still be paid.Coming soon

The deadline for each change is in Cancel, Amend and Close. Through an IPEF partner, these operations can return operacao_pendente until the institution confirms them.

Quick guide
Payment FlowComing soon

Through an IPEF partner, the partner institution pays the freight using the payment method sent in the declaration. With method 6 (Pix, Brazil's instant payment), Immediate installments are requested automatically when the CIOT is approved, and you only track the payment. Your integration pays the other installments with a command. The accepted methods are in Payment Methods.

Freight payment through an IPEF partner With the CIOT approved through an IPEF partner, request the installment payment. Track it by the installment status or by the webhook. If the lookup confirms falha, or aguardando_pagamento with messages from the institution, request reprocessing (a detour outside the main sequence) and track it again. When the installment is paid, you can look up the Pix receipt. 1 CIOT approved issued via an IPEF partner 2 Pay installment POST /2/ciot/parcela/pagar 3 Track it installment status or webhook ! Reprocess failed or with messages 4 Installment paid parcela_paga event 5 Pix receipt with payment method 6 failed or with messagespaid POST /2/ciot/parcela/reprocessar, then track it again (step 3)
An accepted command is not a completed payment: the installment stays in processando until the institution confirms it. Installments of type 3 (Immediate) are requested automatically on approval.

Installment and toll voucher statuses are in Freight Payment. If a response stays pending, check the status before any new action: repeating the command does not speed up the payment.

SDKs & LLMs

Take this reference to your AI assistant, integrate the API with an official SDK, or start from the ready-made modules and examples.

LLM-ready

Send an AI the section index of this reference: it reads the index and fetches only the sections it needs, in Markdown. The Markdown is in Portuguese; the assistant can answer in English.

  • Section index Start here Every section of this reference with its URL and size, so the AI reads only what it needs. View Markdown index
  • Page in Markdown The full reference in plain text, with the same tables and examples. View as Markdown
  • Open in ChatGPT Reads the index and fetches only the sections it needs. Open in ChatGPT
  • Open in Claude Reads the index and fetches only the sections it needs. Open in Claude
  • llms.txt Starting point for agents, with every public reference. Open llms.txt

Webmania SDKs

Official open-source SDKs on GitHub to integrate the Webmania APIs in the language of your project. Each repository includes installation, examples and the operations it covers.

  • Node.js / TypeScript Available

    Node.js >= 22 README

    git clone https://github.com/webmaniabr/webmania-node.git

  • Python Available

    Python >= 3.11 README

    git clone https://github.com/webmaniabr/webmania-python.git

  • PHP Available

    PHP >= 8.3 README

    git clone https://github.com/webmaniabr/webmania-php.git

  • Perl Available

    Perl 5.36 README

    git clone https://github.com/webmaniabr/webmania-perl.git

  • Go Available

    Go 1.26 README

    git clone https://github.com/webmaniabr/webmania-go.git

  • C Available

    C11, Linux arm64 README

    git clone https://github.com/webmaniabr/webmania-c.git

  • C++ Available

    C++, Linux arm64 README

    git clone https://github.com/webmaniabr/webmania-cpp.git

  • Lua Available

    Lua 5.4, Linux arm64 README

    git clone https://github.com/webmaniabr/webmania-lua.git

  • Dart Available

    Dart >= 3.8.3, Linux arm64 README

    git clone https://github.com/webmaniabr/webmania-dart.git

  • R Available

    R >= 4.6.2, Linux arm64 README

    git clone https://github.com/webmaniabr/webmania-r.git

  • Java Available

    Java 17+ README

    git clone https://github.com/webmaniabr/webmania-java.git

  • Kotlin Available

    Kotlin 2.4 / JVM 17+ README

    git clone https://github.com/webmaniabr/webmania-kotlin.git

  • Scala Available

    Scala 3.3 / JVM 17+ README

    git clone https://github.com/webmaniabr/webmania-scala.git

  • Clojure Available

    Clojure 1.12 / JVM 17+ README

    git clone https://github.com/webmaniabr/webmania-clojure.git

  • Ruby Available

    Ruby 3.3, Ruby 3.4 README

    git clone https://github.com/webmaniabr/webmania-ruby.git

  • .NET (C#) Available

    .NET 10 README

    git clone https://github.com/webmaniabr/webmania-dotnet.git

  • PowerShell Available

    PowerShell 7.6 README

    git clone https://github.com/webmaniabr/webmania-powershell.git

  • Elixir Available

    Elixir ~> 1.18, Linux arm64 README

    git clone https://github.com/webmaniabr/webmania-elixir.git

  • Rust Available

    Rust >= 1.85 README

    git clone https://github.com/webmaniabr/webmania-rust.git

  • Haskell Available

    GHC 9.6.7, Linux arm64 README

    git clone https://github.com/webmaniabr/webmania-haskell.git

  • Swift Available

    macOS 13+, iOS 16+ README

    git clone https://github.com/webmaniabr/webmania-swift.git

Examples

Test the CIOT / PEF REST API without writing a line of code, and speed up your integration with the official Webmania® tools.

  • Postman collection Instant tests Ready-made requests to test the API without writing code. Open in Postman
  • Video Test the REST API without a line of code (in Portuguese). Watch on YouTube

Authentication

To use the API resources, authenticate every request with an HTTP header. Use the Authorization header in this format:

Authorization: Bearer {Access-Token}

You find the API 2.0 Access-Token in the Webmania® Panel. Include it in every request.

Your integration uses only the Access Token, in both issuing channels. Webmania handles the communication with ANTT and with the partner institution.

Keep your credentials safe. Never publish the Access Token in the source code of a website, app or system where others can easily read it.

For mobile apps (iOS and Android), we recommend that you call the API from your server (back end). The app's code should only send the request. Your server should process the call.

Response format

Responses are in JSON and have the same format in both issuing channels. Always check the body: an HTTP 200 response can contain the error field.

Code Meaning Success Description
200 OK
Lookups, declarations and changes, and also the POST calls that pay an installment, reprocess, plan a route and buy a toll voucherComing soon. Also returned for business rule refusals and for validation errors in common fields, which include error.
201 Created
May be returned when a new resource is created. It is not the success status of every POST: paying an installment, reprocessing, route planning and buying a toll voucherComing soon return HTTP 200.
400 Bad Request
Request refused as Bad Request. Invalid parameters do not use this status: see the table below.
401 Unauthorized
Authentication failed. Check the access token you sent.
403 Forbidden
Access denied. You do not have permission for this operation.
422 Unprocessable Entity
Validation errors in the dados_carga.contratantes_carga_frac rules by operation type, the ipef object, the IPEF channel's own rules and the freight payment, toll voucher and IPEF account endpointsComing soon. Returns error set to validation_failed and, in errors, a list of messages for each field that failed validation.

How to identify each type of error:

SituationHTTPBody
Invalid common field in the declaration, cancellation, amendment or closing, in any channel200{"error": "Parâmetro inválido: …"}
Scalar value, such as a string, sent instead of the list in dados_carga.contratantes_carga_frac200{"error": "O campo dados_carga.contratantes_carga_frac deve ser um array."}
Business rule refusal from ANTT, from the partner institution or from the API itself, such as the minimum freight rate200{"error": "…"}
Non-empty list of hiring parties in type 1; in type 2, a missing or empty list, or a list with the document of the operation's hiring party, in the direct or IPEF channel422{"error": "validation_failed", "errors": {…}}
Invalid field in the additional data, in a rule specific to the IPEF channel, or in the freight payment, toll voucher and IPEF account endpointsComing soon422{"error": "validation_failed", "errors": {…}}

Example of an HTTP 200 response for a declaration with an invalid cpf_cnpj_contratado (the message says the value is not a valid CPF/CNPJ):

{
  "error": "Parâmetro inválido: cpf_cnpj_contratado. O valor informado não é um CPF/CNPJ válido."
}

Example of an HTTP 422 response when you send a non-empty list for a full load (carga lotação):

{
  "error": "validation_failed",
  "errors": {
    "dados_carga.contratantes_carga_frac": [
      "Não informe dados_carga.contratantes_carga_frac para tipo_operacao=1 (carga lotação)."
    ]
  }
}

Example of an HTTP 422 response when the list is missing or empty for a split load (carga fracionada):

{
  "error": "validation_failed",
  "errors": {
    "dados_carga.contratantes_carga_frac": [
      "Informe ao menos um CPF ou CNPJ em dados_carga.contratantes_carga_frac para tipo_operacao=2 (carga fracionada)."
    ]
  }
}

If an item repeats the document of the operation's hiring party in a split load, the key includes the item's index, starting at zero. Example for the first item:

{
  "error": "validation_failed",
  "errors": {
    "dados_carga.contratantes_carga_frac.0": [
      "Em dados_carga.contratantes_carga_frac, informe um documento diferente de cpf_cnpj_contratante para tipo_operacao=2 (carga fracionada)."
    ]
  }
}

The response can include errors for the list and for an item at the same time. For example, for [null] in a split load, the API reports that the list is missing a CPF or CNPJ. For the first item, it returns Parâmetro obrigatório: dados_carga.contratantes_carga_frac.0. (required parameter).

Example of an HTTP 422 response for missing required data in partner issuing:

{
  "error": "validation_failed",
  "errors": {
    "data_fim_viagem": [
      "O campo data_fim_viagem é obrigatório ou inválido para esta operação."
    ]
  }
}

The most common refusal messages are listed in Error Messages.

Notifications

To keep your platform up to date, Webmania® sends automatic notifications (webhooks) for the results and changes of each CIOT. With them, you do not need a routine of periodic lookups: wait for the webhook and update the operation in your system when it arrives.

The notification is sent by POST, in JSON, to the URL sent in url_notificacao in the declaration. If that parameter is missing, it goes to the notification URL registered for the company.

Notified statusWhen it is sent
aprovadoThe CIOT was issued; the body has codigo_identificacao_operacao, codigo_verificador and protocolo.
reprovadoThe declaration was refused; the body has the motivo (reason).
canceladoThe cancellation of the operation was confirmed.
encerradoThe closing of the operation was confirmed.

Through an IPEF partner, Webmania also notifies operation events, such as a paid installment, a payment failure, a toll voucher purchase or cancellationComing soon and the confirmation of a pending operation. The event type is in evento.tipo.

When there is no notification. The processando and contingencia statuses are not notified. In these cases, do not declare the operation again: wait for the next notification or check the result in the CIOT lookup.

What is the UUID? The UUID (Universally Unique Identifier) is a 36-character unique identifier, in the 8-4-4-4-12 format, that Webmania assigns to each transport operation.

It is created as soon as our API accepts the request, that is, after it passes our validations and before the declaration is sent to ANTT or to the partner institution. So the UUID exists whatever the status of the operation, even when the declaration is refused or canceled.

Once created, the UUID is permanent: it does not change on retries or resends. It is accepted by the endpoints that take ciot|uuid, as an alternative to the CIOT code issued by ANTT.

Notifications
Notification Fields

The notification body has the same format as the CIOT lookup. The Channel column shows the fields that appear in only one of the channels.

Parameter Type Channel Description
id string Both Control ID sent in the declaration (when sent).
uuid string Both Unique identifier of the transport operation.
codigo_identificacao_operacao string Both CIOT (road freight registration code) returned by ANTT.
codigo_verificador string Both Check digits of the CIOT.
protocolo string Both ANTT authorization protocol number.
status string Both Current status of the operation: processando, contingencia, aprovado, reprovado, cancelado or encerrado. The intermediate statuses can appear in lookups, but they do not trigger a status change notification.
motivo string Both Reason for the returned status, including ANTT codes and messages.
modelo string Both Fixed value ciot.
aviso_transportador string Both Notice that ANTT registered for the hired carrier.
mensagens array Both Messages returned by ANTT.
log object or array Both Data returned by the operation. In the direct channel, it can be an object with the ANTT response or an empty list. In the IPEF channel, it is an object with canal, operacao, sucesso, codigos and mensagens.
emissao object IPEF Issuing channel: {"canal": "ipef"}.
parcelasComing soon array IPEF Freight installments and the payment status of each one. Learn more
operacao_pendente object IPEF Operation in progress at the partner institution, with operacao and solicitada_em. Present only until the operation is confirmed. Learn more
evento object IPEF Event that triggered the notification, when there is one.
tipo: parcela_paga, parcela_falha, vale_pedagio_comprado, vale_pedagio_cancelado or operacao_confirmada.
nome_parcelaComing soon: installment name, in the parcela_paga and parcela_falha events.
numero_vale_pedagioComing soon: toll voucher number, in the toll voucher events.
ocorrido_em: date and time of the event, in ISO 8601 format.
operacao: only in operacao_confirmada, with the value cancelar, retificar, encerrar or alterar_parcela.

Notifications
Notification Example

The notification is sent with the POST method, in application/json format:

-X POST \
-header "Content-type: application/json" \

Example notification of a CIOT approved in the direct channel:

{
  "id": "PED-123",
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "0000000000000000",
  "codigo_verificador": "0000",
  "protocolo": "0000000000000000",
  "status": "aprovado",
  "motivo": "Dados inseridos com sucesso",
  "modelo": "ciot",
  "aviso_transportador": "",
  "mensagens": [],
  "log": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "CodigoVerificador": "0000",
    "Protocolo": "0000000000000000",
    "AvisoTransportador": "",
    "Mensagem": []
  }
}

Declare an Operation

To register the transport operation and get the CIOT (road freight registration code), send a single JSON body to POST /2/ciot/declaracao. The API chooses the issuing channel from the hired carrier's profile and the operation type. The response has the uuid for tracking, and the final result arrives by notification.

Who can issue the CIOT through this API?

For types 1 and 2, the API checks the hired carrier's profile in the RNTRC (ANTT's national registry of road cargo carriers). The issuing flowchart shows how the channel is chosen.

Profile or operationChannelGuidance
ETC not treated as a TAC, with an active RNTRCDirectly with ANTTThe hired carrier is the company itself. Send its CNPJ in cpf_cnpj_contratado of POST /2/ciot/declaracao.
TAC (independent truck driver)Through an IPEF partnerContact Webmania.
TAC-equiparado (an ETC with up to 3 vehicles)Through an IPEF partnerContact Webmania.
CTC (freight cooperative)Through an IPEF partnerContact Webmania.
Operations with tipo_operacao=3Through an IPEF partnerContact Webmania.

TAC (independent truck driver), TAC-equiparado (an ETC with up to 3 vehicles), CTC (freight cooperative) and operations with tipo_operacao=3 go through an IPEF partner. Contact us.

How to build the declaration:

  1. Fill in the common fields The same in both channels: hired carrier, hiring party, amounts, dates, vehicles, legs, cargo and payment.
  2. Fill in the additional dataif needed For partner issuing, send the registration and payment data in the same JSON, based on the operation type and the payment method.
  3. See the request example The unified example shows where to put the additional data and how to fill in the vehicle list.
  4. Send and track The response has the operation uuid; the final result arrives by notification.

Declare an Operation
Declaration Data

Request parameters:

Parameter Required Type Size Description
id
Optional
stringup to 100External control ID for the operation. May be omitted or null.
ambiente
Required
number1Environment of the operation.
1 = Production
2 = Sandbox (homologação)
tipo_operacao
Required
number1Operation type.
1 - Full load (Carga Lotação)
2 - Split load (Carga Fracionada)
3 - TAC-Agregado (a TAC who works exclusively for one hiring party)
cpf_cnpj_contratado
Required
string11 or 14CPF (11-digit individual taxpayer ID) or CNPJ (14-digit company ID) of the hired party (the carrier). In the direct channel, send the CNPJ (14 digits) of the issuing company itself. It must be an ETC not treated as a TAC, with an active RNTRC.
rntrc_contratado
Required
string9RNTRC of the hired carrier.
cpf_cnpj_contratante
Required
string11 or 14CPF or CNPJ of the hiring party. For partner issuing, send the CNPJ of the hiring company in whose name the CIOT is registered.
cpf_cnpj_destinatario
Required for types 1 and 2
string11 or 14CPF or CNPJ of the recipient. Do not send it for tipo_operacao = 3.
valor_frete
Required
number10,2Freight amount. It must be greater than zero.
data_declaracao
Required
date19Date and time of the declaration in the format yyyy-MM-ddTHH:mm:ss.
ind_contingencia
Required
boolean-true = in contingency; false = not in contingency. For partner issuing, always send false.
justificativa_contingencia
Required when ind_contingencia = true
string255Justification for the contingency. Not allowed when ind_contingencia = false.
data_inicio_viagem
Required for types 1 and 2
date10Trip start date in the format yyyy-MM-dd, at most 365 days after the current date. Do not send it for tipo_operacao = 3.
data_fim_viagem
Required depending on the operation type and the payment
date10Expected trip end date in the format yyyy-MM-dd, on or after data_inicio_viagem when that field is sent. Required for types 1 and 2. In the unified format, it is also required for type 3 with inf_pagamento[].tipo_pagamento equal to 2, 3 or 4 and no parcelas.
veiculos
Required
array-List of up to 5 vehicles used in the operation. It is not the full fleet registered in the carrier's RNTRC. So do not use it to infer the 3-vehicle limit that makes a company TAC-equiparado. Learn more
origem_destino
Required for types 1 and 2
array-List of origins and destinations. Required for full and split loads. Learn more
dados_carga
Required for types 1 and 2
object-Cargo information. Learn more
inf_pagamento
Required
array-Freight payment information. Learn more
inf_indicadores_operacionais
Required for type 1
object-Operational indicators. Required for full loads. Learn more
url_notificacao
Optional
urlup to 500URL that receives automatic status notifications.
id_operacao_transporte
Optional
string12Identifier of the transport operation. In the direct channel, it is created automatically if you leave it out. For partner issuing, leave this field out.
rntrc_contratante
Optional
string9RNTRC of the hiring party. It must belong to cpf_cnpj_contratante.

Declare an Operation
Request Example

JSON body for POST /2/ciot/declaracao in the unified format. It shows a split load operation (tipo_operacao equal to 2), a shipper different from the hiring party, and manual payment to a checking account. Send the plate once, in the same veiculos item that has modelo and tipo. The payment goes in inf_pagamento, with the account check digit in dados_bancarios.digito_conta. When parcelas is left out, the API uses data_fim_viagem as the expected date of the SALDO installment. Replace the sample data with the data of your operation.

{
  "ambiente": 2,
  "tipo_operacao": 2,
  "ind_contingencia": false,
  "cpf_cnpj_contratante": "12345678000195",
  "cpf_cnpj_contratado": "11144477735",
  "rntrc_contratado": "012345678",
  "cpf_cnpj_destinatario": "22345678000114",
  "data_declaracao": "2026-12-02T10:00:00",
  "data_inicio_viagem": "2026-12-02",
  "data_fim_viagem": "2026-12-03",
  "valor_frete": 2500.00,
  "veiculos": [
    { "placa": "ABC1D23", "numero_eixos": 2, "modelo": "Caminhão Exemplo", "tipo": 1 }
  ],
  "origem_destino": [
    {
      "origem": { "codigo_municipio_origem": "3550308" },
      "destino": { "codigo_municipio_destino": "4106902" },
      "distancia_percorrida": 400
    }
  ],
  "dados_carga": {
    "codigo_natureza_carga": "0406",
    "peso_carga": 1500.50,
    "codigo_tipo_carga": 5,
    "contratantes_carga_frac": ["11222333000181"]
  },
  "inf_pagamento": [
    {
      "tipo_pagamento": 2,
      "ind_pagamento": 0,
      "cpf_cnpj_creditado": "11144477735",
      "codigo_instituicao_financeira": "001",
      "numero_agencia": "1234",
      "numero_conta": "12345"
    }
  ],
  "dados_bancarios": { "digito_conta": "1" },
  "tipo_rateio": 1,
  "transportador": {
    "tipo": 1,
    "nome": "Transportador Exemplo",
    "telefone": "1133334444",
    "endereco": {
      "uf": "SP",
      "cidade": "São Paulo",
      "bairro": "Centro",
      "logradouro": "Rua Exemplo",
      "numero": "1",
      "cep": "01001000"
    },
    "dados_pf": {
      "identidade": "123",
      "nome_mae": "Mãe Exemplo",
      "data_nascimento": "1980-01-31"
    }
  },
  "remetente": {
    "cpf_cnpj": "11222333000181",
    "nome": "Remetente Exemplo",
    "endereco": {
      "uf": "SP",
      "codigo_municipio": "3509502",
      "bairro": "Centro",
      "logradouro": "Rua Exemplo",
      "numero": "1",
      "cep": "13010000"
    }
  },
  "destinatario": {
    "nome": "Destinatário Exemplo",
    "endereco": {
      "uf": "RJ",
      "codigo_municipio": "3304557",
      "bairro": "Centro",
      "logradouro": "Rua Ilustrativa",
      "numero": "20",
      "cep": "20040002"
    }
  }
}

See the data required for each operation type and the payment rules. An example for the direct channel is also available.

Before you repeat a declaration, look up the operation by its uuid if you already received it. If you need to send it again, send a JSON body identical to the original.

Declare an Operation
Direct Channel Example

Sample full load (tipo_operacao equal to 1) in the direct channel. Because it is a full load, the example leaves out dados_carga.contratantes_carga_frac. Replace the identifiers and dates with valid data for your operation; the values below are not proof of ANTT approval.

curl -X POST https://api.webmania.com.br/2/ciot/declaracao \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "id": "PED-123",
  "ambiente": 2,
  "url_notificacao": "https://suaaplicacao.com.br/webhook/ciot",
  "id_operacao_transporte": "000000000000",
  "tipo_operacao": 1,
  "cpf_cnpj_contratado": "19131243000197",
  "rntrc_contratado": "012345678",
  "cpf_cnpj_contratante": "12345678000195",
  "rntrc_contratante": "",
  "cpf_cnpj_destinatario": "22345678000190",
  "valor_frete": 1500.00,
  "data_declaracao": "2026-06-20T10:00:00",
  "ind_contingencia": false,
  "justificativa_contingencia": "",
  "data_inicio_viagem": "2026-06-20",
  "data_fim_viagem": "2026-06-25",
  "veiculos": [
    { "placa": "ABC1234", "rntrc_veiculo": "012345678", "numero_eixos": 2 }
  ],
  "origem_destino": [
    {
      "origem": { "codigo_municipio_origem": "3550308", "cep_origem": "01001000" },
      "destino": { "codigo_municipio_destino": "4106902", "cep_destino": "80000000" },
      "distancia_percorrida": 400
    }
  ],
  "dados_carga": {
    "codigo_natureza_carga": "1234",
    "peso_carga": 5000.50,
    "codigo_tipo_carga": 5
  },
  "inf_pagamento": [
    {
      "tipo_pagamento": 6,
      "chave_pix": "pix@exemplo.com.br",
      "identificador_pix": "PED123PIX",
      "cpf_cnpj_creditado": "19131243000197",
      "ind_pagamento": 0
    }
  ],
  "inf_indicadores_operacionais": {
    "ind_alto_desempenho": false,
    "ind_retorno_vazio": false,
    "composicao_veicular": false
  }
}'

Sample approved response in the direct channel. The PascalCase fields inside ciot are the raw echo from ANTT, not input parameters. Whether they appear, and their values, depends on the response to the operation. A declaration that is still processing or was refused may not have the same fields.

{
  "id": "PED-123",
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "0000000000000000",
  "codigo_verificador": "0000",
  "protocolo": "0000000000000000",
  "status": "aprovado",
  "motivo": "Dados inseridos com sucesso!",
  "modelo": "ciot",
  "aviso_transportador": "",
  "mensagens": ["Dados inseridos com sucesso!"],
  "log": {
    "IdOperacaoTransporte": "000000000000",
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "CodigoVerificador": "0000",
    "Protocolo": "0000000000000000",
    "Codigo": [110],
    "Mensagem": ["Dados inseridos com sucesso!"],
    "AvisoTransportador": ""
  },
  "ciot": {
    "IdOperacaoTransporte": "000000000000",
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "CodigoVerificador": "0000",
    "Protocolo": "0000000000000000",
    "Codigo": [110],
    "Mensagem": ["Dados inseridos com sucesso!"],
    "AvisoTransportador": ""
  }
}
Parameter Required Type Size Description
IdOperacaoTransporte
When returned
string12Identifier of the transport operation that was sent (inside ciot).
CodigoIdentificacaoOperacao
When returned
string or number12 or 16Code returned by ANTT (inside ciot). At the top level, codigo_identificacao_operacao combines the 12-digit code with the check digits when they are available.
CodigoVerificador
When returned
string or number4Check digits of the CIOT (inside ciot). The raw echo keeps the returned type; at the top level, codigo_verificador is a string.
Protocolo
When returned
string16ANTT authorization protocol number (inside ciot).
Codigo
When returned
array6Error or success code (inside ciot). E.g. 110.
Mensagem
When returned
array200Error or success message (inside ciot).
AvisoTransportador
When returned
string0-300Notice that ANTT registered for the hired carrier (inside ciot).

Declare an Operation
Origin and Destination

The origem_destino list describes the legs of the operation: where the cargo leaves from, where it goes and the distance traveled in each leg. It is required for types 1 (full load) and 2 (split load). When you send it, it must have at least one item.

In each item, send origem and destino as objects, with the same location type in both: city, CEP (postal code) or coordinates. If you send more than one type, the city takes precedence, then the CEP, then the coordinates. Latitude and longitude always go together, even when the value is zero.

Parameter Required Type Size Description
origem
Required in each leg sent
object-Origin data. Learn more
destino
Required in each leg sent
object-Destination data. Learn more
Origin
Parameter Required Type Size Description
distancia_percorrida
See the channel rules
number8Distance in km at the leg level (origem_destino[].distancia_percorrida), outside the origem object. If sent, it must be 1 or more. The common validation allows it to be missing or null. For partner issuing, types 1 and 2 require a sum of distances greater than zero when the route planner is not used.
qtd_viagens
Optional in the declaration
number3Number of trips, from 1 to 999, at the leg level (origem_destino[].qtd_viagens). Optional in the declaration. Do not confuse it with the closing rules of TAC-Agregado.
codigo_municipio_origem
Optional
string7IBGE code (official city code) of the origin city.
cep_origem
Optional
string8Origin CEP (numbers only).
latitude_origem
Optional
number10,6Origin latitude, between -90 and 90. Send it together with the longitude; zero is valid.
longitude_origem
Optional
number10,6Origin longitude, between -180 and 180. Send it together with the latitude; zero is valid.
Destination
Parameter Required Type Size Description
codigo_municipio_destino
Optional
string7IBGE code of the destination city.
cep_destino
Optional
string8Destination CEP (numbers only).
latitude_destino
Optional
number10,6Destination latitude, between -90 and 90. Send it together with the longitude; zero is valid.
longitude_destino
Optional
number10,6Destination longitude, between -180 and 180. Send it together with the latitude; zero is valid.
{
  "origem_destino": [
    {
      "origem": { "codigo_municipio_origem": "3550308", "cep_origem": "01001000" },
      "destino": { "codigo_municipio_destino": "4106902", "cep_destino": "80000000" },
      "distancia_percorrida": 400
    }
  ]
}

Declare an Operation
Vehicles

The veiculos list must have 1 to 5 items, with no duplicate plates. For partner issuing, send modelo and tipo in each item, with exactly one tractor vehicle.

Parameter Required Type Size Description
placa
Required
string7Vehicle plate (Brazilian or Mercosur format).
numero_eixos
Required
integer1Number of axles, from 1 to 4.
rntrc_veiculo
Optional
string9RNTRC linked to the vehicle.
{
  "veiculos": [
    { "placa": "ABC1234", "rntrc_veiculo": "012345678", "numero_eixos": 2 }
  ]
}

Declare an Operation
Payment Information

The payment information goes in the inf_pagamento array, with at least one item. The table below lists the parameters of each item. Do not fill in the conditional bank and Pix fields for payment types they do not apply to. When ind_pagamento = 0, do not fill in numero_parcela, data_vencimento or valor_parcela.

Parameter Required Type Size Description
tipo_pagamento
Required
number1Payment type.
1 - IP (card)
2 - Checking account
3 - Savings account
4 - Payment account
5 - Other
6 - Pix
cpf_cnpj_creditado
Required
string11 or 14CPF or CNPJ of the payee.
ind_pagamento
Required
number1Payment indicator.
0 - Upfront
1 - Deferred
codigo_instituicao_financeira
Required for types 1 to 4
stringup to 3Financial institution code.
numero_agencia
Required for types 2, 3 and 4
stringup to 10Branch number.
numero_conta
Required for types 1 to 4
stringup to 20Account number or payment method identifier.
chave_pix
Required for type 6
stringup to 77Pix key.
identificador_pix
Required for type 6
stringup to 32Pix transaction identifier. Fill it in for an upfront payment too.
numero_parcela
Required when deferred
number3Installment number, from 1 to 999.
data_vencimento
Required when deferred
date10Due date of the installment in the format yyyy-MM-dd.
valor_parcela
Required when deferred
number12,2Installment amount, greater than zero.
codigo_pagamento
Optional
stringup to 50Identifier of the payment made.
{
  "inf_pagamento": [
    {
      "tipo_pagamento": 6,
      "chave_pix": "pix@exemplo.com.br",
      "identificador_pix": "PED123PIX",
      "cpf_cnpj_creditado": "19131243000197",
      "ind_pagamento": 0
    }
  ]
}

The accepted methods and the fields of each one change by channel: see Payment Methods.

Declare an Operation
Cargo Data

The dados_carga object holds the nature, weight and type of the cargo carried. It is required for types 1 (full load) and 2 (split load).

Parameter Required Type Size Description
codigo_natureza_carga
Required for types 1 and 2
string4Cargo nature code.
peso_carga
Required for types 1 and 2
number10,2Cargo weight. It must be greater than zero.
contratantes_carga_frac
Required for type 2
array11 (CPF) or 14 (CNPJ) digits per item, not counting punctuationIn both channels, follow the tipo_operacao rules.
1 — Full load: leave the field out. null and [] are accepted; a non-empty list returns HTTP 422.
2 — Split load: send a list with at least one valid CPF or one valid numeric CNPJ. No item can have the same document as cpf_cnpj_contratante, even with different formatting.
codigo_tipo_carga
Required for types 1 and 2 in partner issuing, optional in the direct channel
integer1-2Integer code of the cargo type.
1 - Solid bulk
2 - Liquid bulk
3 - Refrigerated / Heated
4 - Containerized
5 - General cargo
6 - Neobulk
7 - Dangerous (solid bulk)
8 - Dangerous (liquid bulk)
9 - Dangerous (Refrigerated / Heated)
10 - Dangerous (containerized)
11 - Dangerous (general cargo)
12 - Pressurized bulk cargo

Accepted values: 1 to 12, following the official domain of the CodigoTipoCarga field in ANTT's DCS PEF v1.1 (in Portuguese).

Part of a type 1 declaration (full load): do not send contratantes_carga_frac.

{
  "tipo_operacao": 1,
  "dados_carga": {
    "codigo_natureza_carga": "1234",
    "peso_carga": 5000.50,
    "codigo_tipo_carga": 5
  }
}

Part of a type 2 declaration (split load), with sample documents: the list item is different from cpf_cnpj_contratante.

{
  "tipo_operacao": 2,
  "cpf_cnpj_contratante": "12345678000195",
  "dados_carga": {
    "codigo_natureza_carga": "1234",
    "peso_carga": 5000.50,
    "codigo_tipo_carga": 5,
    "contratantes_carga_frac": ["11144477735"]
  }
}

Declare an Operation
Operational Indicators

The inf_indicadores_operacionais object holds flags for specific features of the operation. It is required for type 1 (full load).

Parameter Required Type Size Description
ind_alto_desempenho
Optional
boolean-true = high-performance operation.
ind_retorno_vazio
Optional
boolean-true = operation with an empty return trip.
composicao_veicular
Optional
boolean-true = vehicle combination.
{
  "inf_indicadores_operacionais": {
    "ind_alto_desempenho": false,
    "ind_retorno_vazio": false,
    "composicao_veicular": false
  }
}

Declare an Operation
Minimum Freight Rate

Before a new full load declaration (tipo_operacao = 1) is sent, the API compares valor_frete with a reference minimum rate. Webmania calculates it with ANTT's coefficient table (Annex II of ANTT Resolution No. 5,867/2020, coefficients updated on July 17, 2026). If the freight is below the minimum, the API refuses the declaration and you can fix the amount.

The path of a declaration through the minimum rate check:

How the minimum freight rate is checked Only full load declarations (Carga Lotação, tipo_operacao 1) go through the check. If any calculation data is missing, the minimum rate is not calculated and the declaration is not refused for it. With all the data, the API compares valor_frete with the reference minimum rate. If it is equal or higher, the declaration goes to ANTT or to the IPEF. If it is lower, the API refuses the declaration and returns the minimum rate, the difference and the table used. To fix it, review the calculation data or raise valor_frete, and send it again. New declaration Is it a full load(tipo_operacao = 1)? Were distances, axles, cargo typeand the 2 indicators sent? Is valor_frete equal to or abovethe reference minimum rate? No minimum rate check Minimum not calculated Goes to ANTT or IPEF Refused by the API Fix and send again types 2 and 3 · other checks apply no refusal for the minimum ANTT still reviews the operation error with minimum, gap and table calculation data or valor_frete NoNoYes YesYesNo send again
The minimum rate is a lower limit that Webmania calculates. It does not include tolls or the empty return trip, and it is not an endorsement by ANTT.

What goes into the calculation

The minimum rate is calculated only when all the fields below were sent. A missing field or null is not the same as false: send both indicators even when they are false.

FieldHow it enters the calculation
origem_destino[].distancia_percorridaDistance of each leg, summed. Every leg must include its distance.
veiculos[].numero_eixosAxles of each vehicle, summed for the combination. Every vehicle must include its axle count.
dados_carga.codigo_tipo_cargaSelects the coefficient table for the cargo type.
inf_indicadores_operacionais.composicao_veicularShows whether the operation is a vehicle combination.
inf_indicadores_operacionais.ind_alto_desempenhoShows whether the operation is high-performance.

The fixed coefficient is charged only once per operation, on the sum of the distances.

How to fix a refusal

The refusal comes in the standard error format, with the calculated minimum rate, the difference and the table used. Sample (the API returns the message in Portuguese):

{
  "error": "O frete informado (R$ 3.000,00) está abaixo do piso mínimo de referência (R$ 4.349,28) para esta operação, numa diferença de R$ 1.349,28 [Tabela A, versão 2026-07-17]. Revise o valor do frete antes de reenviar. Este é um limite inferior de referência calculado localmente; ele não inclui pedágio nem eventual percurso de retorno vazio e não representa aval, homologação ou garantia da ANTT."
}
  1. Read the minimum and the difference The message gives the reference minimum rate, the shortfall and the table used (in the example, R$ 4,349.28, a difference of R$ 1,349.28, Table A).
  2. Check the calculation data Distance, axles, cargo type and the two indicators in the table above. A wrong value in these fields changes the minimum rate.
  3. Adjust the freight If the data is correct, send a valor_frete equal to or above the minimum rate.
  4. Send it again Send the corrected declaration to the same endpoint. A resend identified as a duplicate returns the existing operation, without recalculating the minimum rate.
The minimum rate is a reference, not an approval. It does not include tolls or the empty return trip, and it is not an endorsement, approval or guarantee by ANTT. A declaration above the minimum follows the normal flow and is still subject to review by ANTT.

When the minimum rate does not block: the check does not refuse the declaration if any calculation data is missing, if there is no applicable, up-to-date table, or if the operation is not a full load. This does not waive any required field: all other validations still apply.

Declare an Operation
Rules by Channel

Both channels use the same declaration endpoint. The table shows what each channel requires.

What changesDirect channel with ANTTThrough an IPEF partner
cpf_cnpj_contratadoThe CNPJ (company ID, 14 digits) of the issuing company itself.CPF (individual taxpayer ID) or CNPJ of the hired carrier.
cpf_cnpj_contratanteCPF or CNPJ of the hiring party.CNPJ of the hiring company. The CIOT is registered in its name.
id_operacao_transporteOptional. If you omit it, it is generated automatically.Do not send it.
ind_contingenciatrue or false, following the Contingency rules.Always false. The partner institution registers the operation with ANTT.
dados_cargaFollow the Cargo Data rules. codigo_tipo_carga is optional.Follow the Cargo Data rules for contratantes_carga_frac. In types 1 and 2, send codigo_natureza_carga with 4 digits, peso_carga greater than zero and codigo_tipo_carga. In type 3, omit codigo_natureza_carga.
origem_destinoThe Origin and Destination rules.In types 1 and 2, use the same location type in every leg (city, CEP or coordinates) and a total distance greater than zero. The distance is not required when utilizar_roteirizador is true.
tipo_pagamentoPayment methods 1 to 6 of Payment Information.Methods 2, 3, 4 and 6, with the fields in Payment Methods.
Additional dataThe format uses only the common fields.Send the data in the same declaration body.
Amounts and weightThe sizes of each field.At most 2 decimal places.
EnumerationsNumbers, as shown in each field's table.Send integer fields as JSON integers, without quotes, for example "tipo_rateio": 4.

Declare an Operation
Payment Methods

In the direct channel, payment methods 1 to 6 of Payment Information apply. When you issue through the IPEF partner, use the same tipo_pagamento and the same cpf_cnpj_creditado in every item of inf_pagamento.

In the unified format, send dados_bancarios.digito_conta at the JSON root for methods 2, 3 and 4. For Pix (method 6, instant payment), send dados_bancarios.tipo_chave_pix, condutores and parcelas at the root. The payment method and payee fields stay in inf_pagamento.

inf_pagamento[].tipo_pagamentoFields in the unified format
2 Checking account
3 Savings account
4 Payment account
inf_pagamento[].codigo_instituicao_financeira, inf_pagamento[].numero_agencia and inf_pagamento[].numero_conta.
dados_bancarios.digito_conta at the root of the JSON.
condutores and parcelas are optional. Without parcelas, the API creates the SALDO installment with the valor_frete. In that case, for tipo_operacao=3 in the unified format, send data_fim_viagem. The API uses it as the expected date of the installment.
6 Pixinf_pagamento[].identificador_pix and inf_pagamento[].chave_pix (up to 77 characters).
Required at the root of the JSON: dados_bancarios.tipo_chave_pix (1 to 4), condutores and parcelas.
In each installment, send parcelas[].nome, parcelas[].finalidade, parcelas[].data_previsao and parcelas[].valor. See the installment fields.

Declare an Operation
Additional Data

Send the fields in this table at the root of the declaration JSON, as in the request example. Also add modelo and tipo to the items of the existing veiculos list.

Parameter Required Type Size Description
tipo_rateio
Required
integer1How the tax withholdings are split across the installments.
1 - First installment
2 - Last installment
3 - All installments
4 - Do not withhold
5 - All installments, proportionally
transportador
Required
object-Registration data of the hired carrier. Learn more
remetente
Required
object-Sender data, for every operation type. Learn more
destinatario
Required for types 1 and 2
object-Name and address of the recipient, required in types 1 and 2. Send the recipient's document in cpf_cnpj_destinatario. In type 3, omit the recipient data. Learn more
veiculos
Required
array-Add modelo and tipo to each item of the common list. Send exactly one tractor vehicle. Learn more
condutores
Required for method 6
array-Drivers of the operation. Every driver you send must have complete registration data. Learn more
parcelas
Required for method 6
array-Freight installments. In methods 2, 3 and 4, when you omit it, the API creates the SALDO (balance) installment with the valor_frete. Learn more
dados_bancarios
Required
object-Additional bank account or Pix key data. Learn more
valor_combustivel
Optional
number10,2Fuel amount, greater than or equal to zero.
valor_pedagio
Optional
number10,2Toll amount, greater than or equal to zero.
despesas
Optional
object-Send valor greater than zero and descricao of 1 to 2,000 characters, together. The amount accepts up to 2 decimal places.
retencoes
Optional
object-Send the withheld taxes irrf (income tax), inss (social security) and sest_senat (transport sector contribution) together, with values greater than or equal to zero and up to 2 decimal places. The hiring party provides these values; the API does not calculate withholdings.
documentos_originarios
Optional
array-Source documents of the cargo. Each item has tipo of 1 to 40 characters and numero of 1 to 44 characters.
contrato
Optional
stringup to 50Contract number.
utilizar_roteirizador
Optional
boolean-Requests route planning. If it is true, a positive total distance is not required. In types 1 and 2, still send origem_destino.
Carrier
Parameter Required Type Size Description
nome
Required
string-Name or legal name of the carrier, with at least 1 character.
telefone
Required
string10 or 11Phone number with area code (DDD), digits only.
tipo
Required when the API does not fill in the type
integer1Carrier type.
1 - TAC
2 - ETC
3 - CTC

If the field is missing and the API confirms the TAC or CTC profile in the RNTRC, the API fills in the matching type.
email
Optional
string-Email address of the carrier.
endereco
Required
object-Registered address of the carrier. Learn more
dados_pf
Required for type 1
object-Individual's data (natural person). Learn more
inscricao_estadual
Required for types 2 and 3
string1-14IE (Inscrição Estadual, the state registration of a company that pays ICMS), letters and numbers only. Example: ISENTO (exempt).
atividade_principal
Required for types 2 and 3
string1-2CNAE division (the main economic activity), from 1 to 99, without a leading zero.
forma_constituicao
Required for types 2 and 3
string5Legal nature code (natureza jurídica) in the format 000-0.
data_constituicao
Required for types 2 and 3
date10Incorporation date in the format YYYY-MM-DD.
socios
Required for types 2 and 3
array-Registration data of the partners (company owners). Learn more
Registered address of the carrier and the drivers
Parameter Required Type Size Description
uf
Required
string2Two-letter state code (UF).
cidade
Required
string1-100City name.
bairro
Required
string1-255Neighborhood name.
logradouro
Required
string1-255Street or avenue name.
numero
Required
string1-60Street number.
cep
Required
string8CEP (postal code), digits only.
complemento
Optional
stringup to 255Address complement, such as unit or floor.
Individual's data
Parameter Required Type Size Description
identidade
Required
string-Identity document number.
nome_mae
Required
string-Mother's name.
data_nascimento
Required
date10Date of birth in the format YYYY-MM-DD.
nome_pai
Optional
string-Father's name.
Carrier's partners
Parameter Required Type Size Description
nome
Required
string1-150Partner's name.
cpf
Required
string11Partner's CPF (individual taxpayer ID), digits only.
identidade
Required
string-Identity document number.
nome_mae
Required
string-Mother's name.
data_nascimento
Required
date10Date of birth in the format YYYY-MM-DD.
telefone
Required
string10 or 11Phone number with area code (DDD), digits only.
endereco
Required
object-Always send uf (2 characters), cidade (1 to 100), bairro and logradouro (1 to 255). numero (1 to 60), cep (8 digits) and complemento (up to 255) are optional.
email
Optional
string-Email address of the partner.
nome_pai
Optional
string-Father's name.
Sender and recipient
Parameter Required Type Size Description
nome
Required
string1-255Name or legal name.
cpf_cnpj
Required for the sender
string11 or 14CPF or CNPJ of the sender. For the recipient, use the declaration field cpf_cnpj_destinatario, not this field.
endereco
Required
object-Address of the sender or recipient. Learn more
Address of the sender and recipient
Parameter Required Type Size Description
uf
Required
string2Two-letter state code (UF).
codigo_municipio
Required
string7IBGE city code (the official city code), digits only.
bairro
Required
string1-255Neighborhood name.
logradouro
Required
string1-255Street or avenue name.
numero
Required
string1-60Street number.
cep
Required
string8CEP (postal code), digits only.
complemento
Optional
stringUp to 255Address complement, such as unit or floor.
Vehicles
Parameter Required Type Size Description
placa
Required
string7Use the license plate sent in the common veiculos list.
modelo
Required
string1-100Vehicle model.
tipo
Required
integer1Vehicle type. Send exactly one tractor vehicle.
1 - Tractor
2 - Trailer
Drivers
Parameter Required Type Size Description
cpf
Required
string11Driver's CPF, digits only.
nome
Required
string1-150Driver's name.
telefone
Required
string10 or 11Phone number with area code (DDD), digits only.
nome_mae
Required
string1-150Mother's name.
data_nascimento
Required
date10Date of birth, before today, in the format YYYY-MM-DD.
identidade
Required
string1-20Identity document number.
cnh
Required
string9-15Driver's license (CNH) number.
endereco
Required
object-Registered address of the driver. Learn more
Installments
Parameter Required Type Size Description
nome
Required
string1-50Name of the installment. It must be unique in this operation.
finalidade
Required
integer1Purpose of the installment.
1 - Advance
2 - Balance
data_previsao
Required
date10Expected payment date in the format YYYY-MM-DD.
valor
Required
number10,2Amount greater than zero, with up to 2 decimal places.
tipo
Optional
integer1Payment type of the installment.
1 - Manual (default)
2 - Automatic
3 - Immediate

For Pix (method 6), parcelas[].tipo equal to 3 requests the payment in the declaration itself. After the CIOT is approved, wait for the payment confirmation. For this installment, skip the call to Pay an installment.
Bank details
Parameter Required Type Size Description
tipo_chave_pix
Required for tipo_pagamento = 6
integer1Pix key type.
1 - Email
2 - CPF/CNPJ
3 - Phone
4 - Random key
digito_conta
Required for methods 2, 3 and 4
string2Check digit of the bank account, up to 2 characters.

Declare an Operation
Declaration Responses

Until there is a confirmation, the response may have status equal to processando or contingencia. Once there is a decision, it has the result, such as aprovado or reprovado. Track the uuid through the notification or the lookup. See also the direct channel example.

When you issue through the IPEF partner, the response also has emissao, parcelas and log. The example below shows the processando status.

{
  "id": "PED-123",
  "uuid": "00000000-0000-0000-0000-000000000000",
  "status": "processando",
  "motivo": "CIOT em processamento.",
  "modelo": "ciot",
  "mensagens": [],
  "log": {
    "canal": "ipef",
    "operacao": "declaracao",
    "sucesso": false,
    "codigos": [],
    "mensagens": []
  },
  "ciot": { "Codigo": [], "Mensagem": [] },
  "emissao": { "canal": "ipef" },
  "parcelas": [
    { "nome": "ADIANTAMENTO", "finalidade": 1, "valor": "500.00", "data_previsao": "2026-06-20", "status": "em_aberto", "data_pagamento": null },
    { "nome": "SALDO", "finalidade": 2, "valor": "1000.00", "data_previsao": "2026-06-25", "status": "em_aberto", "data_pagamento": null }
  ]
}

Response fields when you issue through the IPEF partner:

Parameter Type Description
emissao.canalstringIssuing channel, with the value ipef.
parcelasarrayFreight installments and the payment status of each one.
parcelas[].nomestringName of the installment.
parcelas[].finalidadeintegerPurpose of the installment.
1 - Advance
2 - Balance
parcelas[].valorstringAmount with 2 decimal places, such as "500.00".
parcelas[].data_previsaodateExpected payment date in the format YYYY-MM-DD.
parcelas[].statusComing soonstringPayment status.
em_aberto - Open installment
aguardando_pagamento - Awaiting payment
aguardando_solicitacao - Awaiting a payment request
paga - Payment confirmed
cancelada - Installment canceled
falha - Payment failed
processando - Payment in progress
verificacao_manual - Payment under review with the institution

In verificacao_manual, no new command is sent automatically. Contact support before any new action. See Freight Payment.
parcelas[].data_pagamentodatetimeDate and time of the payment. It is filled only when the installment is paga; in the other statuses, it returns null.
log.canalstringThe value ipef.
log.operacaostring or nullOperation the response refers to; null when the log has none of the known operations.
declaracao - Declaration
retificar - Amendment
cancelar - Cancellation
encerrar - Closing
alterar_parcela - Installment change
log.sucessobooleanShows whether the operation was confirmed successfully.
log.codigosarrayCodes returned by the partner institution.
log.mensagensarrayMessages returned by the partner institution.
operacao_pendente.operacaostringPresent while an operation is not yet confirmed: cancelar, retificar, encerrar or alterar_parcela. Any other operation on the same CIOT is refused until the confirmation.
operacao_pendente.solicitada_emdatetimeDate and time of the request, in ISO 8601 format. Present while the operation is not yet confirmed.
codigo_identificacao_operacaostringCIOT with 16 digits. When codigo_verificador is XXXX, the code has 12 digits: the institution registered the CIOT in contingency. To cancel, amend or close this CIOT, use the uuid.

Errors in the general validation of the common fields return HTTP 200 with the error field, as described in the response format. If the IPEF channel's own validation fails in the unified format, the API returns HTTP 422 with error equal to validation_failed. This happens before any CIOT number is reserved. The keys of errors point to the JSON fields, with zero-based indexes for list items. For example, veiculos.0.modelo means the model of the first vehicle. The example below shows the refusal when the end date is missing in a type 3 operation paid to a bank account with no installments.

{
  "error": "validation_failed",
  "errors": {
    "data_fim_viagem": [
      "O campo data_fim_viagem é obrigatório ou inválido para esta operação."
    ]
  }
}

The message says that data_fim_viagem is required or invalid for this operation. See the response format and other error messages.

Lookups
Look Up a CIOT

Looks up a CIOT document of the authenticated company by operation code or UUID, even while it awaits confirmation. The fields returned depend on the document's stored state and on the issuing channel. A lookup does not guarantee approval.

Use the notifications for day-to-day tracking. Use this lookup to spot-check an operation, or while it is in processando or contingencia. Each CIOT has one of the statuses below:

StatusWhat it meansWhat to do
processandoThe operation is waiting for confirmation from ANTT or the partner IPEF.Wait for the notification or look up the CIOT. Do not send the declaration again.
contingenciaCommunication failed, and Webmania retries the operation automatically within the allowed window.Follow the same uuid, without declaring again.
aprovadoThe CIOT was issued.Use the code in the MDF-e. Amend it, pay installments or close it, as the operation requires.Coming soon
reprovadoThe declaration was refused; motivo has the code and the message.Fix the data shown in motivo and send a new declaration.
canceladoThe operation was canceled.Do not use this CIOT in tax documents.
encerradoThe operation was closed as completed.Nothing to do. Through an IPEF partner, the installments can still be paid.Coming soon

To look up a CIOT, send a GET request to /2/ciot/consulta/{ciot}. The route parameter ciot accepts the CIOT code or the UUID of the document.

Request parameters:

Parameter Required Type Size Description
ciot (path)
Required
string12/16/36CIOT code generated by ANTT (12 or 16 digits, with or without the check digits) OR the UUID of the document (36 characters, format 8-4-4-4-12).
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
https://api.webmania.com.br/2/ciot/consulta/000000000000

The response has the same format in both channels. Below is an example of a CIOT approved in the direct channel. Top-level fields with the value null are omitted. ciot holds the stored ANTT response and can be an empty array when there is none. The PascalCase fields are not request parameters. log holds the stored submission response (an object or an empty array), not necessarily the latest lookup at ANTT:

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "0000000000000000",
  "codigo_verificador": "0000",
  "protocolo": "0000000000000000",
  "status": "aprovado",
  "motivo": "Consulta realizada com sucesso!",
  "modelo": "ciot",
  "mensagens": ["Consulta realizada com sucesso!"],
  "log": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "Codigo": [111],
    "Mensagem": ["Consulta realizada com sucesso!"]
  },
  "ciot": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "Codigo": [111],
    "Mensagem": ["Consulta realizada com sucesso!"]
  }
}
Parameter Required Type Size Description
CodigoIdentificacaoOperacao
When returned
string or number12 or 16Code in the raw response (inside ciot), with the type kept from the source. For the normalized value, use codigo_identificacao_operacao at the top level.
Codigo
When returned
array6Error or success code (inside ciot).
Mensagem
When returned
array200Error or success message (inside ciot).

What changes between the channels in the lookup:

What changesDirect channel with ANTTThrough an IPEF partner
Code accepted in {ciot}16-digit code (with the check digits) or UUID.Also the 12-digit code.
Response fieldslog and ciot with the stored ANTT response.Also emissao and parcelas. The log follows the institution's format (canal, operacao, sucesso, codigos, mensagens).
What the lookup updatesIt returns the stored state. The log is the submission response, not a new lookup at ANTT.In processando or contingencia, it can reconcile the declaration with the institution. In aprovado, it tracks a pending operation or fetches the institution's summary. In encerrado, it can fetch the summary. The summary only updates the installments and the regularization of the XXXX check digits. It does not change the final status.
ResendingThe lookup does not resend anything.A declaration confirmed as not sent can be resent only once, with the same number, within the allowed window. If there is no response or the result is unknown, there is no resend; a pending operation is only tracked.

Example of a CIOT approved in the IPEF channel:

{
  "id": "PED-IPEF-123",
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "0000000000000000",
  "codigo_verificador": "0000",
  "status": "aprovado",
  "motivo": "CIOT aprovado.",
  "modelo": "ciot",
  "mensagens": [],
  "log": {
    "canal": "ipef",
    "operacao": "declaracao",
    "sucesso": true,
    "codigos": [],
    "mensagens": []
  },
  "ciot": {
    "Codigo": [],
    "Mensagem": [],
    "CodigoIdentificacaoOperacao": "000000000000",
    "CodigoVerificador": "0000"
  },
  "emissao": { "canal": "ipef" },
  "parcelas": [
    { "nome": "ADIANTAMENTO", "finalidade": 1, "valor": "500.00", "data_previsao": "2026-06-20", "status": "em_aberto", "data_pagamento": null },
    { "nome": "SALDO", "finalidade": 2, "valor": "1000.00", "data_previsao": "2026-06-25", "status": "em_aberto", "data_pagamento": null }
  ]
}

Lookups
Carrier Status

Looks up the carrier's status in the RNTRC (ANTT's national registry of road cargo carriers). A valid response identifies the profile through TipoTransportador (TAC, ETC or CTC), EquiparadoTAC and RNTRCAtivo. A failure or an incomplete response does not prove the profile.

To look up the carrier status, send a GET request to /2/ciot/transportador/situacao.

The lookup uses ANTT's production database, even with ambiente=2.

When you declare an operation, the API runs this same lookup to choose the channel in types 1 and 2: see Who can issue.

Request parameters:

Parameter Required Type Size Description
ambiente (query)
Required
numeric1Must be 1 or 2. The lookup always uses ANTT's production database.
cpf_cnpj_interessado (query)
Required
string11 or 14CPF or CNPJ of the interested party.
cpf_cnpj_transportador (query)
Required
string11 or 14CPF or CNPJ of the carrier.
rntrc_transportador (query)
Required
string9RNTRC number of the carrier.
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
"https://api.webmania.com.br/2/ciot/transportador/situacao?ambiente=1&cpf_cnpj_interessado=12345678000195&cpf_cnpj_transportador=19131243000197&rntrc_transportador=012345678"

Sample response. The ANTT response comes in log. In an error or incomplete response, identification and profile fields may be missing.

{
  "log": {
    "CPFCNPJTransportador": "19131243000197",
    "RNTRCTransportador": "012345678",
    "NomeRazaoSocialTransportador": "TRANSPORTADORA EXEMPLO LTDA",
    "RNTRCAtivo": true,
    "TipoTransportador": "ETC",
    "EquiparadoTAC": false,
    "Protocolo": "0000000000000000",
    "Codigo": [111],
    "Mensagem": ["Consulta realizada com sucesso!"]
  }
}
Parameter Required Type Size Description
CPFCNPJTransportador
Required
string11 or 14CPF or CNPJ of the carrier, as returned by ANTT.
RNTRCTransportador
Required
string9RNTRC number returned.
NomeRazaoSocialTransportador
When returned
string200Name or legal name of the carrier.
RNTRCAtivo
Required
boolean1true if the RNTRC is active.
TipoTransportador
Required
string3Category: TAC, ETC or CTC. Together with EquiparadoTAC and RNTRCAtivo, it sets the declaration channel: see Who can issue.
EquiparadoTAC
Required
boolean1true if the carrier is treated as a TAC (this includes an ETC with up to 3 vehicles registered in the RNTRC and every CTC). These profiles issue through an IPEF partner.
Protocolo
When returned
stringvariableProtocol number returned, when provided.
Codigo
Required
array6Error or success code. For example, 111 for a successful lookup.
Mensagem
Required
array200Error or success message.

Lookups
Carrier Fleet

Checks whether the given license plates belong to the carrier's fleet. The lookup uses ANTT's production database, even with ambiente=2.

To look up the fleet, send a GET request to /2/ciot/transportador/frota.

Request parameters:

Parameter Required Type Size Description
ambiente (query)
Required
numeric1Must be 1 or 2. The lookup always uses ANTT's production database.
cpf_cnpj_interessado (query)
Required
string11 or 14CPF or CNPJ of the interested party.
cpf_cnpj_transportador (query)
Required
string11 or 14CPF or CNPJ of the carrier.
rntrc_transportador (query)
Required
string9RNTRC number of the carrier.
placas (query)
Required
arraymin. 1 itemList with at least one license plate. Each item must have 7 characters in the Brazilian or Mercosur format. Send it as placas[]=ABC1234&placas[]=DEF9G56.
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
"https://api.webmania.com.br/2/ciot/transportador/frota?ambiente=1&cpf_cnpj_interessado=12345678000195&cpf_cnpj_transportador=19131243000197&rntrc_transportador=012345678&placas[]=ABC1234&placas[]=DEF9G56"

Sample response. The ANTT response comes in log. In an error or incomplete response, identification and profile fields may be missing.

{
  "log": {
    "CPFCNPJTransportador": "19131243000197",
    "RNTRCTransportador": "012345678",
    "NomeRazaoSocialTransportador": "TRANSPORTADORA EXEMPLO LTDA",
    "RNTRCAtivo": true,
    "Frota": [
      { "PlacaVeiculo": "ABC1234", "SituacaoVeiculoFrotaTransportador": 1 },
      { "PlacaVeiculo": "DEF9G56", "SituacaoVeiculoFrotaTransportador": 0 }
    ],
    "Protocolo": "0000000000000000",
    "Codigo": [111],
    "Mensagem": ["Consulta realizada com sucesso!"]
  }
}
Parameter Required Type Size Description
CPFCNPJTransportador
Required
string11 or 14CPF or CNPJ of the carrier.
RNTRCTransportador
Required
string9RNTRC number returned.
NomeRazaoSocialTransportador
When returned
string200Name or legal name of the carrier.
RNTRCAtivo
Required
boolean1true if the RNTRC is active.
Frota
Required
array-List with the status of each vehicle searched.
PlacaVeiculo
Required
string7Vehicle license plate.
SituacaoVeiculoFrotaTransportador
Required
boolean or integer1Shows whether the vehicle belongs to the fleet, in the type received from ANTT.
Protocolo
When returned
stringvariableProtocol number returned, when provided.
Codigo
Required
array6Error or success code.
Mensagem
Required
array200Error or success message.

Lookups
Exception List

Checks whether the carrier is on the list of exceptions to the CIOT/PEF rules. The lookup always uses ANTT's production database: ambiente is required and validated as 1 or 2, but it does not change the database.

To look up the exception list, send a GET request to /2/ciot/excecao.

Request parameters:

Parameter Required Type Size Description
ambiente (query)
Required
numeric1Must be 1 or 2. The exception lookup always uses ANTT's production database.
cpf_cnpj_transportador
Required
string11 or 14CPF or CNPJ of the carrier.
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
"https://api.webmania.com.br/2/ciot/excecao?ambiente=2&cpf_cnpj_transportador=19131243000197"

Sample raw ANTT response, wrapped in log. The fields below depend on what ANTT provides. An error response may not include the Retorno data.

{
  "log": {
    "Retorno": {
      "CPFCNPJTransportador": "19131243000197",
      "Flag": false
    },
    "Codigo": [111],
    "Mensagem": ["Consulta realizada com sucesso!"]
  }
}
Parameter Required Type Size Description
Retorno
Required
object-Lookup response object.
Retorno.CPFCNPJTransportador
Required
string11 or 14CPF or CNPJ of the carrier.
Retorno.Flag
Required
boolean-true if the CNPJ is on the exception list; false otherwise.
Codigo
Required
array6Error or success code.
Mensagem
Required
array200Error or success message.

Operation Management
Cancel an Operation

Cancels a transport operation. This works only if road inspection has not yet checked the operation and no more than 24 hours have passed since the trip start date.

To cancel, send a PUT request to /2/ciot/cancelar.

Request parameters:

Parameter Required Type Size Description
uuid
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao
Required when uuid is not sent
string16CIOT with the check digits (16 digits).
justificativa
Required
string1 to 500Reason for the cancellation. In the IPEF channel, it cannot contain only spaces.
ambiente
Required when uuid is not sent
numeric1Environment of the operation. Required when uuid is not sent.
1 = Production
2 = Sandbox (homologação)
Attention: Send only one identifier: a valid uuid or a codigo_identificacao_operacao with 16 numeric digits. The API refuses both together. The document must belong to the authenticated company. With uuid, you can omit the environment. In the direct channel, the environment stored with the declaration takes precedence over the one you send. A repeated request for a document that is already canceled returns the existing state, without a new cancellation.

What changes between the channels when you cancel:

What changesDirect channel with ANTTThrough an IPEF partner
ProcessingSent to ANTT. Check the status and any errors in the response.Processed by the partner institution. The response may have operacao_pendente until the confirmation. After that, the status becomes cancelado in the lookup and in the notification.
justificativa1 to 500 characters.1 to 500 characters, not only spaces.
Repeated requestFor a CIOT that is already canceled, it returns the existing state, without a new cancellation.While the cancellation is pending, repeating it only checks the confirmation. Any other operation on the same CIOT is refused.
Check digit XXXXDoes not apply.Identify the CIOT by its uuid.
curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "codigo_identificacao_operacao": "0000000000000000",
  "ambiente": 2,
  "justificativa": "Cancelamento por erro operacional na declaração"
}' \
https://api.webmania.com.br/2/ciot/cancelar

Or using the uuid of the document:

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "justificativa": "Cancelamento por erro operacional na declaração"
}' \
https://api.webmania.com.br/2/ciot/cancelar

Sample cancellation confirmed in the direct channel. log holds the saved cancellation response. ciot keeps the echo already stored with the declaration, which is not necessarily the cancellation response. protocolo and mensagens are read from that echo. Null top-level fields are omitted. Check the status and any errors: the request does not guarantee immediate confirmation.

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "0000000000000000",
  "protocolo": "0000000000000000",
  "status": "cancelado",
  "motivo": "Cancelamento do CIOT processado.",
  "modelo": "ciot",
  "mensagens": ["Dados inseridos com sucesso!"],
  "log": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "DataCancelamento": "2026-06-20T14:30:42.521Z",
    "Protocolo": "0000000000000000",
    "Codigo": [110],
    "Mensagem": ["Dados inseridos com sucesso!"]
  },
  "ciot": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "Protocolo": "0000000000000000",
    "Codigo": [110],
    "Mensagem": ["Dados inseridos com sucesso!"]
  }
}
Parameter Required Type Size Description
CodigoIdentificacaoOperacao
When returned
string or number12 or 16Code in the echo stored in ciot, when present. Do not confuse it with the normalized codigo_identificacao_operacao at the top level.
DataCancelamento
When returned
date19Date/time returned by ANTT, when provided, inside log. The cancellation processing does not add it to ciot.
Protocolo
When returned
string16Protocol number of the echo stored in ciot, when present. The protocol number of the cancellation response is in log, when provided.
Codigo
When returned
array6Error or success code in the echo stored in ciot, when present.
Mensagem
When returned
array200Error or success message in the echo stored in ciot, when present.

Operation Management
Amend an Operation

Amends a transport operation declared with an error, or one that has changed, within the allowed period. You cannot amend full load operations (Carga Lotação, type 1). Split load operations (Carga Fracionada, type 2) can be amended until they are closed. TAC-Agregado operations (type 3) can be amended up to 30 days after the data_fim_viagem. This check applies when the trip status is "Declarado" (declared).

To amend, send a PUT request to /2/ciot/retificar.

Request parameters:

Parameter Required Type Size Description
uuid
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao
Required when uuid is not sent
string16CIOT with the check digits (16 digits).
ambiente
Required when uuid is not sent
numeric1Environment of the operation.
1 = Production
2 = Sandbox (homologação)
motivo
Required in the IPEF channel
string1–255Reason for the amendment. Direct channel: optional, and not sent to ANTT. IPEF channel: required, and it cannot contain only spaces.
origem_destino
Not allowed for type 1; required for type 3
array-List of origins and destinations. Do not send it for full load (type 1). Optional for split load (type 2). Required for TAC-Agregado (type 3). Learn more
valor_frete
Optional
number10,2New freight amount. It must be greater than zero.
data_fim_viagem
Not allowed for types 1 and 2; required for type 3
date10New expected trip end date. Do not send it for types 1 and 2. Required for type 3.
dados_carga
Not allowed for types 1 and 3; optional for type 2
object-Cargo information. Do not send it for types 1 and 3.

Field rules by tipo_operacao when you amend:

Field type 1 (full load) type 2 (split load) type 3 (TAC-Agregado)
valor_freteNot allowedOptionalOptional
data_fim_viagemNot allowedNot allowedRequired
origem_destinoNot allowedOptionalRequired
dados_cargaNot allowedOptionalNot allowed

What changes between the channels when you amend:

What changesDirect channel with ANTTThrough an IPEF partner
Types that can be amendedType 2 until it is closed; type 3 up to 30 days after the data_fim_viagem.Types 2 and 3.
motivoOptional; not sent to ANTT.Required, and it cannot contain only spaces.
origem_destinoThe Origin and Destination rules.The same location type in every leg.
ProcessingSent to ANTT. Check the status and any errors in the response.The response may have operacao_pendente until the institution confirms.
Check digit XXXXDoes not apply.Identify the CIOT by its uuid.
Attention: Send only one identifier: uuid or codigo_identificacao_operacao with exactly 16 digits. Do not send both. With uuid, you can omit the environment: the API takes it from the document. In the direct channel, the environment already registered in the CIOT takes precedence over the one sent in the request.

Split load (Carga Fracionada, type 2):

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "codigo_identificacao_operacao": "0000000000000000",
  "ambiente": 2,
  "valor_frete": 1800.00,
  "origem_destino": [
    {
      "origem": { "codigo_municipio_origem": "3550308" },
      "destino": { "codigo_municipio_destino": "4106902" }
    }
  ],
  "dados_carga": {
    "codigo_natureza_carga": "1234",
    "peso_carga": 5200.00,
    "codigo_tipo_carga": 5
  }
}' \
https://api.webmania.com.br/2/ciot/retificar

TAC-Agregado (type 3):

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "codigo_identificacao_operacao": "0000000000000000",
  "ambiente": 2,
  "valor_frete": 1800.00,
  "data_fim_viagem": "2026-06-26",
  "origem_destino": [
    {
      "origem": { "codigo_municipio_origem": "3550308" },
      "destino": { "codigo_municipio_destino": "4106902" }
    }
  ]
}' \
https://api.webmania.com.br/2/ciot/retificar

Or using the uuid of the document (split load):

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "valor_frete": 1800.00
}' \
https://api.webmania.com.br/2/ciot/retificar

CIOT issued through an IPEF partner (split load):

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "motivo": "Ajuste de carga",
  "dados_carga": {
    "codigo_natureza_carga": "1234",
    "peso_carga": 5200.00
  }
}' \
https://api.webmania.com.br/2/ciot/retificar

Sample amendment confirmed in the direct channel with ANTT. The log object holds the response of the latest operation. ciot keeps the echo of the original declaration and does not receive the amendment fields. The top-level protocolo and mensagens fields come from that original echo. Null top-level fields are omitted. An inconclusive response may have status equal to processando; do not treat it as a confirmed amendment.

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "0000000000000000",
  "protocolo": "0000000000000000",
  "status": "aprovado",
  "motivo": "Retificação do CIOT processada.",
  "modelo": "ciot",
  "mensagens": ["Dados inseridos com sucesso!"],
  "log": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "DataRetificacao": "2026-06-20T15:10:42.524Z",
    "Protocolo": "0000000000000000",
    "Codigo": [110],
    "Mensagem": ["Dados inseridos com sucesso!"]
  },
  "ciot": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "Protocolo": "0000000000000000",
    "Codigo": [110],
    "Mensagem": ["Dados inseridos com sucesso!"]
  }
}
Parameter Required Type Size Description
CodigoIdentificacaoOperacao
When returned
string or number12 or 16Raw identifier returned by ANTT in log. In ciot, it is the identifier kept from the declaration, not the amendment result. It is not necessarily equal to the normalized top-level codigo_identificacao_operacao.
DataRetificacao
When returned
date19Date/time of the amendment, when ANTT returns it in log. It is not in the original ciot echo.
Protocolo
When returned
string16Raw protocol number of the latest operation in log. In ciot and in the top-level protocolo, the protocol number of the original declaration remains. Its presence alone does not confirm success.
Codigo
When returned
array6Raw amendment codes in log. In ciot, the codes of the original declaration remain.
Mensagem
When returned
array200Raw amendment messages in log. In ciot and in the top-level mensagens, the messages of the original declaration remain.

Operation Management
Close an Operation

Closes a transport operation and declares that it was completed successfully. For TAC-Agregado operations (type 3), the trip data is required.

To close, send a PUT request to /2/ciot/encerrar.

Request parameters:

Parameter Required Type Size Description
uuid
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao
Required when uuid is not sent
string16CIOT with the check digits (16 digits).
ambiente
Required when uuid is not sent
numeric1Environment of the operation.
1 = Production
2 = Sandbox (homologação)
origem_destino
Required for type 3
array-List of origins and destinations. Required for TAC-Agregado. Learn more
origem_destino[].distancia_percorrida
Required for type 3
number8Distance traveled in km, per leg, at least 1 km. Required for type 3. In the IPEF channel, you can replace it with distancia_total_km on a single trip. The table below shows how to send it in each channel.
origem_destino[].qtd_viagens
Required for type 3 in the direct channel; optional in the IPEF channel
number3Number of trips, per leg. The table below shows the rules of each channel.
peso_carga
Required for type 1; not allowed for types 2 and 3
number10,2Cargo weight. Required to close type 1 operations. Do not send it for types 2 and 3. It must be greater than zero and less than 10,000,000, with up to 2 decimal places.
origem_destino[].quantidade_carga
Required for type 3 in the IPEF channel
number10,2Cargo quantity for the leg, greater than zero and less than 10,000,000, with up to 2 decimal places.
origem_destino[].codigo_sh
Required for type 3 in the IPEF channel
string4Harmonized System (SH) code of the leg's cargo (4 digits).
distancia_total_km
Optional
number-Total distance in km, greater than zero. In the IPEF channel, with a single leg, it replaces the distancia_percorrida of the leg when that field is not sent. The direct channel does not use this field.

Field rules by tipo_operacao when you close in the direct channel (the next table shows the differences in the IPEF channel):

Field type 1 (full load) type 2 (split load) type 3 (TAC-Agregado)
origem_destinoNot allowedNot allowedRequired
distancia_percorrida / qtd_viagensNot allowedNot allowedRequired (per leg)
peso_cargaRequiredNot allowedNot allowed

What changes between the channels when you close:

What changesDirect channel with ANTTThrough an IPEF partner
Type 1peso_carga required.peso_carga required.
Type 3, in each legdistancia_percorrida and qtd_viagens required.quantidade_carga, codigo_sh and distancia_percorrida (or distancia_total_km on a single trip). qtd_viagens is optional: from 1 to 999, and 1 per leg when omitted.
distancia_total_kmNot used.Replaces distancia_percorrida when there is a single leg without it.
ProcessingSent to ANTT. Check the status and any errors in the response.The response may have operacao_pendente until the institution confirms.
Check digit XXXXDoes not apply.Identify the CIOT by its uuid.
Attention: Send only one identifier: uuid or codigo_identificacao_operacao with exactly 16 digits. Do not send both. With uuid, you can omit the environment: the API takes it from the document. In the direct channel, the environment already registered in the CIOT takes precedence over the one sent in the request. If the CIOT is already closed, the API returns the document without sending a new close command.

Full load (Carga Lotação, type 1):

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "codigo_identificacao_operacao": "0000000000000000",
  "ambiente": 2,
  "peso_carga": 5200.00
}' \
https://api.webmania.com.br/2/ciot/encerrar

Split load (Carga Fracionada, type 2):

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000"
}' \
https://api.webmania.com.br/2/ciot/encerrar

TAC-Agregado (type 3):

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "origem_destino": [
    {
      "origem": { "codigo_municipio_origem": "3550308" },
      "destino": { "codigo_municipio_destino": "4106902" },
      "distancia_percorrida": 400,
      "qtd_viagens": 1
    }
  ]
}' \
https://api.webmania.com.br/2/ciot/encerrar

TAC-Agregado (type 3) through an IPEF partner:

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "origem_destino": [
    {
      "origem": { "codigo_municipio_origem": "3550308" },
      "destino": { "codigo_municipio_destino": "4106902" },
      "distancia_percorrida": 400,
      "quantidade_carga": 5200.00,
      "codigo_sh": "1234"
    }
  ]
}' \
https://api.webmania.com.br/2/ciot/encerrar

Sample closing confirmed in the direct channel with ANTT. The log object holds the response of the latest operation. ciot keeps the echo of the original declaration and does not receive the closing fields. The top-level protocolo and mensagens fields come from that original echo. Null top-level fields are omitted. An inconclusive response may have status equal to processando; only encerrado means that the closing is confirmed.

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "0000000000000000",
  "protocolo": "0000000000000000",
  "status": "encerrado",
  "motivo": "CIOT encerrado.",
  "modelo": "ciot",
  "mensagens": ["Dados inseridos com sucesso!"],
  "log": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "DataEncerramento": "2026-06-25T18:30:38.809Z",
    "Protocolo": "0000000000000000",
    "Codigo": [110],
    "Mensagem": ["Dados inseridos com sucesso!"]
  },
  "ciot": {
    "CodigoIdentificacaoOperacao": "0000000000000000",
    "Protocolo": "0000000000000000",
    "Codigo": [110],
    "Mensagem": ["Dados inseridos com sucesso!"]
  }
}
Parameter Required Type Size Description
CodigoIdentificacaoOperacao
When returned
string or number12 or 16Raw identifier returned by ANTT in log. In ciot, it is the identifier kept from the declaration, not the closing result. It is not necessarily equal to the normalized top-level codigo_identificacao_operacao.
DataEncerramento
When returned
date19Date/time of the closing, when ANTT returns it in log. It is not in the original ciot echo.
Protocolo
When returned
string16Raw protocol number of the latest operation in log. In ciot and in the top-level protocolo, the protocol number of the original declaration remains. Its presence alone does not confirm success.
Codigo
When returned
array6Raw closing codes in log. In ciot, the codes of the original declaration remain.
Mensagem
When returned
array200Raw closing messages in log. In ciot and in the top-level mensagens, the messages of the original declaration remain.

Freight PaymentComing soon

Through the partner IPEF (Instituição de Pagamento Eletrônico de Frete, an electronic freight payment institution), the same API pays the freight installments, buys the toll voucher and checks the company's account at the institution. These services require the company to be enabled and use the same Authorization: Bearer header. Contact Webmania to enable them.

The path of an installment is in Quick guide › Payment Flow. Each installment and each toll voucher is in one of the statuses below.

Installment statuses

StatusWhat it meansWhat to do
em_abertoOpen installment.With methods 1 and 6, request the payment in Pay an Installment when it is due.
aguardando_pagamentoAwaiting payment.Check the installment status. If it has messages from the institution, see Reprocess a Payment.
aguardando_solicitacaoAwaiting a payment request.Request the payment in Pay an Installment.
pagaPayment confirmed.With method 6 (Pix), get the receipt.
canceladaInstallment canceled.Nothing to do.
falhaPayment failed.Confirm it in the installment status and request reprocessing.
processandoPayment in progress.Wait for the confirmation. Do not repeat the payment.
verificacao_manualPayment under review with the institution. No new command is sent automatically.Contact support before any new action.

Toll voucher statuses

StatusWhat it meansWhat to do
processandoPurchase in progress.Track it with the toll voucher lookup. Do not repeat the purchase.
compradoPurchase confirmed.Get the receipt.
recusadoPurchase refused.Review the purchase data before a new request.
cancelamento_pendenteCancellation in progress.Track it with the toll voucher lookup. Do not repeat the cancellation.
canceladoCancellation confirmed.If needed, get the receipt.
verificacao_manualOperation under review with the institution.Look up the toll voucher and contact support before any new action.
An accepted command does not mean the payment is complete. The installment stays in processando until the institution confirms it. Track it with the installment status. Repeating the same request does not create a new payment. If a response is pending or a communication failure occurs, check the status instead of sending another payment or purchase command.

Freight Payment
Pay an InstallmentComing soon

Requests the payment of a freight installment through the partner IPEF (electronic freight payment institution). It is available for an approved or closed CIOT issued on the IPEF channel with payment method 1 (IP, card) or 6 (Pix, Brazil's instant payment). Installments of type 3 (Immediate) are requested automatically when the CIOT is approved.

To pay an installment, send a POST request to /2/ciot/parcela/pagar.

Request parameters:

Parameter Required Type Size Description
uuid
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao
Required when uuid is not sent
string12CIOT without the check digits (12 digits). This differs from the cancel, amend and close operations, which use the 16-digit code.
codigo_verificador
Required when uuid is not sent
string4Check digits (4 digits, or XXXX for a CIOT registered in contingency).
ambiente
Required when uuid is not sent
integer1Operation environment.
1 = Production
2 = Sandbox (homologação)
nome_parcela
Required
string1-50Installment name sent in ipef.parcelas[].nome.
motivo
Optional
string or null255Reason for the payment request, up to 255 characters.
Note: Send codigo_identificacao_operacao, codigo_verificador and ambiente only when you do not send uuid. Do not send both forms of identification together.
curl -X POST \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "nome_parcela": "ADIANTAMENTO",
  "motivo": "Pagamento do adiantamento"
}' \
https://api.webmania.com.br/2/ciot/parcela/pagar

Example of an HTTP 200 response:

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "000000000000",
  "codigo_verificador": "0000",
  "parcela": {
    "nome": "ADIANTAMENTO",
    "finalidade": 1,
    "valor": "500.00",
    "data_previsao": "2026-06-20",
    "status": "processando",
    "data_pagamento": null,
    "mensagens": []
  }
}
ParameterTypeDescription
uuidstringUUID of the CIOT document.
codigo_identificacao_operacaostringCIOT without the check digits, with 12 digits.
codigo_verificadorstringCheck digits of the CIOT.
parcelaobjectData and status of the requested installment.
parcela.nomestringInstallment name.
parcela.finalidadeinteger or nullPurpose of the installment, or null when not available.
1 - Advance
2 - Balance (remaining amount)
parcela.valorstringAmount with 2 decimal places.
parcela.data_previsaodate or nullExpected date in YYYY-MM-DD format, or null when not available.
parcela.statusstringPayment status. See the installment statuses. processando does not confirm the payment.
parcela.data_pagamentodatetime or nullDate and time of the payment in ISO 8601 format, only when paga. In the other statuses, null.
parcela.mensagensarrayMessages returned by the institution.

Track the confirmation with the installment status. Do not repeat the payment to speed up processing.

Freight Payment
Installment StatusComing soon

Gets the installment status at the partner IPEF (electronic freight payment institution). It does not send a payment command. It is available for an approved or closed CIOT with payment method 1 or 6.

To get the status, send a GET request to /2/ciot/parcela/status.

Request parameters:

Parameter Required Type Size Description
uuid (query)
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao (query)
Required when uuid is not sent
string12CIOT without the check digits (12 digits). This differs from the 16-digit code of the cancel, amend and close operations.
codigo_verificador (query)
Required when uuid is not sent
string4Check digits (4 digits, or XXXX for a CIOT registered in contingency).
ambiente (query)
Required when uuid is not sent
integer1Operation environment.
1 = Production
2 = Sandbox (homologação)
nome_parcela (query)
Required
string1-50Installment name sent in ipef.parcelas[].nome.
Note: Send codigo_identificacao_operacao, codigo_verificador and ambiente only when you do not send uuid. Do not send both forms of identification together.
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
"https://api.webmania.com.br/2/ciot/parcela/status?uuid=00000000-0000-0000-0000-000000000000&nome_parcela=ADIANTAMENTO"

Example of an HTTP 200 response:

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "000000000000",
  "codigo_verificador": "0000",
  "parcela": {
    "nome": "ADIANTAMENTO",
    "finalidade": 1,
    "valor": "500.00",
    "data_previsao": "2026-06-20",
    "status": "processando",
    "data_pagamento": null,
    "mensagens": []
  }
}
ParameterTypeDescription
uuidstringUUID of the CIOT document.
codigo_identificacao_operacaostringCIOT without the check digits, with 12 digits.
codigo_verificadorstringCheck digits of the CIOT.
parcelaobjectData and status of the installment queried.
parcela.nomestringInstallment name.
parcela.finalidadeinteger or null1 = Advance; 2 = Balance (remaining amount); null when not available.
parcela.valorstringAmount with 2 decimal places.
parcela.data_previsaodate or nullExpected date in YYYY-MM-DD format, or null when not available.
parcela.statusstringCurrent status. See the installment statuses.
parcela.data_pagamentodatetime or nullActual date and time in ISO 8601 format when paga. In the other statuses, null.
parcela.mensagensarrayMessages returned by the institution.

Freight Payment
Reprocess a PaymentComing soon

Requests the reprocessing of an installment when the lookup at the partner IPEF (electronic freight payment institution) confirms the status falha, or aguardando_pagamento with messages from the institution. It is available for an approved or closed CIOT with payment method 1 or 6. Before you request it, check the installment status. An installment that is already paid is refused. A request still in progress returns the current status and sends no new command. If the result is uncertain, use only the status lookup.

To reprocess, send a POST request to /2/ciot/parcela/reprocessar.

Request parameters:

Parameter Required Type Size Description
uuid
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao
Required when uuid is not sent
string12CIOT without the check digits (12 digits). This differs from the 16-digit code of the cancel, amend and close operations.
codigo_verificador
Required when uuid is not sent
string4Check digits (4 digits, or XXXX for a CIOT registered in contingency).
ambiente
Required when uuid is not sent
integer1Operation environment.
1 = Production
2 = Sandbox (homologação)
nome_parcela
Required
string1-50Installment name sent in ipef.parcelas[].nome.
Note: Send codigo_identificacao_operacao, codigo_verificador and ambiente only when you do not send uuid. Do not send both forms of identification together.
curl -X POST \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "nome_parcela": "ADIANTAMENTO"
}' \
https://api.webmania.com.br/2/ciot/parcela/reprocessar

Example of an HTTP 200 response:

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "000000000000",
  "codigo_verificador": "0000",
  "parcela": {
    "nome": "ADIANTAMENTO",
    "finalidade": 1,
    "valor": "500.00",
    "data_previsao": "2026-06-20",
    "status": "processando",
    "data_pagamento": null,
    "mensagens": []
  }
}
ParameterTypeDescription
uuidstringUUID of the CIOT document.
codigo_identificacao_operacaostringCIOT without the check digits, with 12 digits.
codigo_verificadorstringCheck digits of the CIOT.
parcelaobjectInstallment data and status.
parcela.nomestringInstallment name.
parcela.finalidadeinteger or null1 = Advance; 2 = Balance (remaining amount); null when not available.
parcela.valorstringAmount with 2 decimal places.
parcela.data_previsaodate or nullExpected date in YYYY-MM-DD format, or null when not available.
parcela.statusstringPayment status. See the installment statuses.
parcela.data_pagamentodatetime or nullDate and time of the payment in ISO 8601 format when paga. In the other statuses, null.
parcela.mensagensarrayMessages returned by the institution.

Freight Payment
Add or Change an InstallmentComing soon

Adds an installment to an approved CIOT, or changes an existing installment's data, at the partner IPEF (electronic freight payment institution). Send nova_parcela or ajuste, never both. The change may stay in progress until it is confirmed.

To add or change an installment, send a PUT request to /2/ciot/parcela/alterar.

Request parameters:

Parameter Required Type Size Description
uuid
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao
Required when uuid is not sent
string12CIOT without the check digits (12 digits). This differs from the 16-digit code of the cancel, amend and close operations.
codigo_verificador
Required when uuid is not sent
string4Check digits (4 digits, or XXXX for a CIOT registered in contingency).
ambiente
Required when uuid is not sent
integer1Operation environment.
1 = Production
2 = Sandbox (homologação)
motivo
Required
string1-255Reason for adding or changing the installment.
nova_parcela
Send nova_parcela or ajuste, never both
object-New installment data. Learn more
ajuste
Send nova_parcela or ajuste, never both
object-Adjustment of an existing installment. Learn more
New installment
Parameter Required Type Size Description
nome
Required
string1-50Name of the new installment.
finalidade
Required
integer1Purpose of the installment.
1 - Advance
2 - Balance (remaining amount)
data_previsao
Required
date10Expected payment date in YYYY-MM-DD format.
valor
Required
number-Amount greater than zero, with up to 2 decimal places.
tipo
Required
integer1Installment type.
1 - Manual
2 - Automatic
3 - Immediate
descontos
Optional
array-Installment discounts. Each item has valor and descricao. The total cannot exceed the installment valor.
descontos[].valor
Required in each discount
number-Amount of zero or more, with up to 2 decimal places.
descontos[].descricao
Required in each discount
string1-2000Discount description.
retencoes
Optional
object-Withholdings. Send irrf (income tax), inss (social security) and sest_senat (transport sector contribution) together, with values of zero or more and up to 2 decimal places. The hiring party provides these values; the API does not calculate withholdings.
Installment adjustment
Parameter Required Type Size Description
tipo_ajuste
Required
integer1Adjustment type.
1 - Expected date
2 - Discount
3 - Bank details
4 - Automatic transfer
nome_parcela
Required
string1-50Name of the existing installment.
data_previsao
Required for tipo_ajuste = 1
date10New expected date in YYYY-MM-DD format.
valor
Required for tipo_ajuste = 2
number-Discount amount, zero or more, with up to 2 decimal places.
descricao
Required for tipo_ajuste = 2
string1-2000Discount description.
dados_bancarios
Required for tipo_ajuste = 3
object-Bank details or Pix key, as in the rows below.
dados_bancarios.tipo_chave_pix
Required when dados_bancarios is sent
integer1Pix key type.
1 - Email
2 - CPF/CNPJ (tax ID)
3 - Phone
4 - Random key
5 - Bank details
dados_bancarios.chave_pix
Required for tipo_chave_pix from 1 to 4
string1-77New Pix key.
dados_bancarios.codigo_instituicao_financeira
Required for tipo_chave_pix = 5
string1-3Financial institution (bank) code.
dados_bancarios.numero_agencia
Required for tipo_chave_pix = 5
string1-10Branch number.
dados_bancarios.numero_conta
Required for tipo_chave_pix = 5
string1-20Account number.
dados_bancarios.digito_conta
Required for tipo_chave_pix = 5
string1-2Account check digit.
transferencia_automatica
Required for tipo_ajuste = 4
object-Automatic transfer data.
transferencia_automatica.cpf_condutor
Required when transferencia_automatica is sent
string11Valid CPF (individual tax ID) of the driver, digits only.
transferencia_automatica.finalidade
Required when transferencia_automatica is sent
integer1Purpose of the transfer.
1 - Advance
2 - Balance (remaining amount)
Note: Send codigo_identificacao_operacao, codigo_verificador and ambiente only when you do not send uuid. Do not send both forms of identification together.

Change the expected date:

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "motivo": "Alteração da data de pagamento",
  "ajuste": {
    "tipo_ajuste": 1,
    "nome_parcela": "SALDO",
    "data_previsao": "2026-06-26"
  }
}' \
https://api.webmania.com.br/2/ciot/parcela/alterar

Add a new installment:

curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "motivo": "Inclusão de parcela",
  "nova_parcela": {
    "nome": "COMPLEMENTO",
    "finalidade": 2,
    "data_previsao": "2026-06-26",
    "valor": 100.00,
    "tipo": 1
  }
}' \
https://api.webmania.com.br/2/ciot/parcela/alterar

Sample response with a change still pending. The status is still the CIOT status. parcelas shows the data from before the confirmation, and log may still reflect the declaration. The presence of operacao_pendente does not confirm the change.

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "0000000000000000",
  "codigo_verificador": "0000",
  "status": "aprovado",
  "motivo": "CIOT aprovado.",
  "modelo": "ciot",
  "mensagens": [],
  "log": { "canal": "ipef", "operacao": "declaracao", "sucesso": true, "codigos": [], "mensagens": [] },
  "ciot": { "CodigoIdentificacaoOperacao": "000000000000", "CodigoVerificador": "0000", "Codigo": [], "Mensagem": [] },
  "emissao": { "canal": "ipef" },
  "parcelas": [
    { "nome": "SALDO", "finalidade": 2, "valor": "1000.00", "data_previsao": "2026-06-25", "status": "em_aberto", "data_pagamento": null }
  ],
  "operacao_pendente": {
    "operacao": "alterar_parcela",
    "solicitada_em": "2026-06-21T10:00:00-03:00"
  }
}
ParameterTypeDescription
uuidstringUUID of the CIOT document.
codigo_identificacao_operacaostringCIOT code in the format of the IPEF channel response.
codigo_verificadorstringCheck digits of the CIOT.
statusstringStatus of the CIOT, not of the payment.
motivostringReason for the CIOT status.
modelostringFixed value ciot.
mensagensarrayMessages from the declaration echo in ciot, not necessarily from the installment change.
logobjectResponse of the last completed operation, in the IPEF channel format. While the change is pending, it may keep the previous response.
ciotobject or empty arrayEcho of the declaration in the IPEF channel format. It may be rebuilt from the identification and the declaration response, or be [] when this data is not available.
emissaoobjectIssuing channel: {"canal": "ipef"}.
parcelasarrayInstallments in the IPEF channel format, with nome, finalidade, valor, data_previsao, status and data_pagamento.
operacao_pendenteobjectPresent while an operation is pending. It is omitted once the pending item is released, including by a confirmed refusal. It contains operacao = alterar_parcela and solicitada_em in ISO 8601 format.

After the confirmation, parcelas shows the added installment or the changed date or amount. Bank details and automatic transfer data are not shown in this list. Track it with the CIOT lookup or the notification. Any other operation on the same CIOT is refused while an operation is pending.

Freight Payment
Pix ReceiptComing soon

Gets the installment receipt at the partner IPEF (electronic freight payment institution). It is available for a paid installment of an approved or closed CIOT with payment method 6 (Pix).

To get the receipt, send a GET request to /2/ciot/parcela/comprovante.

Request parameters:

Parameter Required Type Size Description
uuid (query)
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao (query)
Required when uuid is not sent
string12CIOT without the check digits (12 digits). This differs from the 16-digit code of the cancel, amend and close operations.
codigo_verificador (query)
Required when uuid is not sent
string4Check digits (4 digits, or XXXX for a CIOT registered in contingency).
ambiente (query)
Required when uuid is not sent
integer1Operation environment.
1 = Production
2 = Sandbox (homologação)
nome_parcela (query)
Required
string1-50Name of the paid installment.
Note: Send codigo_identificacao_operacao, codigo_verificador and ambiente only when you do not send uuid. Do not send both forms of identification together.
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
"https://api.webmania.com.br/2/ciot/parcela/comprovante?uuid=00000000-0000-0000-0000-000000000000&nome_parcela=ADIANTAMENTO"

Example of an HTTP 200 response:

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "codigo_identificacao_operacao": "000000000000",
  "codigo_verificador": "0000",
  "nome_parcela": "ADIANTAMENTO",
  "comprovante": {
    "id_end_to_end": "E000000002026062014300000000000000",
    "valor": "500.00",
    "data_pagamento": "2026-06-20T14:30:00-03:00",
    "status_transacao": "executada"
  }
}
ParameterTypeDescription
uuidstringUUID of the CIOT document.
codigo_identificacao_operacaostringCIOT without the check digits, with 12 digits.
codigo_verificadorstringCheck digits of the CIOT.
nome_parcelastringName of the paid installment.
comprovanteobjectPix receipt data.
comprovante.id_end_to_endstringPix transaction ID.
comprovante.valorstringAmount with 2 decimal places.
comprovante.data_pagamentodatetimeDate and time of the payment in ISO 8601 format.
comprovante.status_transacaostringTransaction status.
executada - Executed
pendente - Pending
falha - Failed
devolvida - Returned
indefinida - Undefined

Freight Payment
Open InstallmentsComing soon

Gets the company's open installments at the partner IPEF (electronic freight payment institution) for the month you send. It does not require a CIOT and does not send a payment command. The response is not paginated.

To list the open installments, send a GET request to /2/ciot/parcelas/abertas.

Request parameters:

Parameter Required Type Size Description
ambiente (query)
Required
integer1Environment of the lookup.
1 = Production
2 = Sandbox (homologação)
ano_mes (query)
Required
string7Reference month in YYYY-MM format.
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
"https://api.webmania.com.br/2/ciot/parcelas/abertas?ambiente=2&ano_mes=2026-06"

Example of an HTTP 200 response:

{
  "ano_mes": "2026-06",
  "parcelas": [
    {
      "uuid": "00000000-0000-0000-0000-000000000000",
      "codigo_identificacao_operacao": "000000000000",
      "nome_parcela": "SALDO",
      "valor": "1000.00",
      "data_previsao": "2026-06-25"
    }
  ]
}
ParameterTypeDescription
ano_messtringMonth queried, in YYYY-MM format.
parcelasarrayOpen installments. It is an empty list when there are no installments.
parcelas[].uuidstringUUID of the CIOT document at Webmania, or null when it is not found.
parcelas[].codigo_identificacao_operacaostringCIOT without the check digits, with 12 digits.
parcelas[].nome_parcelastringInstallment name.
parcelas[].valorstringAmount with 2 decimal places.
parcelas[].data_previsaodateExpected payment date in YYYY-MM-DD format.

Toll Voucher
Route PlannerComing soon

Quotes the route and the tolls through the partner IPEF (electronic freight payment institution). Available to enabled companies. It does not require a CIOT and does not buy a toll voucher (vale-pedágio).

To quote the route, send a POST request to /2/ciot/roteirizador.

Request parameters:

Parameter Required Type Size Description
ambiente
Required
integer1Environment of the lookup.
1 = Production
2 = Sandbox (homologação)
categoria_pedagio
Required
integer2Toll category of the vehicle, from 2 to 15 (for example, 8 for a 3-axle truck with dual wheels).
pontos_parada
Required
arrayminimum 2Stops, in order. Each item has only cep or codigo_municipio. Learn more
rotas_alternativas
Optional
integer1Number of alternative routes, from 0 to 2 (default 0).
Stops
Parameter Required Type Size Description
cep
Send cep or codigo_municipio, never both
string8CEP (postal code) of the stop, digits only.
codigo_municipio
Send cep or codigo_municipio, never both
string7IBGE city code (the official city code), digits only.
curl -X POST \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "ambiente": 2,
  "categoria_pedagio": 8,
  "pontos_parada": [
    { "codigo_municipio": "3550308" },
    { "codigo_municipio": "4106902" }
  ],
  "rotas_alternativas": 0
}' \
https://api.webmania.com.br/2/ciot/roteirizador

Example of an HTTP 200 response:

{
  "rotas": [
    {
      "distancia_km": 400,
      "duracao_segundos": 18000,
      "valor_pedagio_total": 100.00,
      "ufs": ["SP", "PR"],
      "pracas": [
        { "codigo_antt": "000000", "nome": "PRAÇA EXEMPLO", "valor": 100.00, "free_flow": false }
      ]
    }
  ]
}
ParameterTypeDescription
rotasarrayQuoted routes.
rotas[].distancia_kmnumberRoute distance in km.
rotas[].duracao_segundosintegerEstimated route duration in seconds.
rotas[].valor_pedagio_totalnumberTotal toll amount of the route.
rotas[].ufsarrayCodes of the states (UF) the route crosses.
rotas[].pracasarrayToll plazas on the route.
rotas[].pracas[].codigo_anttstringANTT code of the toll plaza, digits only.
rotas[].pracas[].nomestringToll plaza name.
rotas[].pracas[].valornumberToll amount at the plaza.
rotas[].pracas[].free_flowbooleanShows whether the plaza charges by free flow (no toll booth).

Toll Voucher
Buy a Toll VoucherComing soon

Buys a toll voucher through the partner IPEF (electronic freight payment institution). It requires an approved CIOT issued on the IPEF channel. An identical request returns the same toll voucher, with no new purchase, while it is in processando, comprado, cancelamento_pendente or verificacao_manual. After the status cancelado or recusado, an identical request makes a new purchase. To track a pending response, follow the guidance below instead of repeating the purchase.

To buy, send a POST request to /2/ciot/vale-pedagio.

Request parameters:

Parameter Required Type Size Description
uuid
Required when codigo_identificacao_operacao is not sent
string36UUID of the CIOT document.
codigo_identificacao_operacao
Required when uuid is not sent
string12CIOT without the check digits (12 digits). This differs from the 16-digit code of the cancel, amend and close operations.
codigo_verificador
Required when uuid is not sent
string4Check digits of the CIOT (4 digits, or XXXX for a CIOT registered in contingency).
ambiente
Required when uuid is not sent
integer1Operation environment.
1 = Production
2 = Sandbox (homologação)
placa
Required
string7Vehicle license plate, in capital letters.
cpf_cnpj_proprietario
Required
string11 or 14Valid CPF or CNPJ (individual or company tax ID) of the vehicle owner, digits only.
rntrc_transportador
Required
string9RNTRC (ANTT's registry of road cargo carriers) number of the carrier, digits only.
cpf_cnpj_transportador
Required
string11 or 14Valid CPF or CNPJ of the carrier, digits only.
categoria_pedagio
Required
integer2Toll category, from 2 to 16.
fornecedor_tag
Required
integer1Provider of the vehicle's toll tag (TAG).
1 - ConectCar
2 - Sem Parar
3 - Veloe
4 - Move Mais
5 - Ticketlog
codigo_ativacao_tag
Optional
string30Activation code of the TAG.
pontos_parada
Required
arrayminimum 2Stops, in order, even when utilizar_roteirizador is false. Each item has only cep or codigo_municipio. Learn more
data_fim
Required
date10End date of the toll voucher in YYYY-MM-DD format. Send today or a future date.
utilizar_roteirizador
Optional
boolean-Default true: the route and the toll plazas are calculated from pontos_parada. When false, also send distancia_total_km.
distancia_total_km
Required when utilizar_roteirizador = false
number-Total route distance in km, greater than zero.
url_notificacao
Optional
url500HTTP or HTTPS URL that receives the notifications of this toll voucher.
Note: Send codigo_identificacao_operacao, codigo_verificador and ambiente only when you do not send uuid. Do not send both forms of identification together.
curl -X POST \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "placa": "ABC1234",
  "cpf_cnpj_proprietario": "19131243000197",
  "rntrc_transportador": "012345678",
  "cpf_cnpj_transportador": "19131243000197",
  "categoria_pedagio": 8,
  "fornecedor_tag": 1,
  "pontos_parada": [
    { "codigo_municipio": "3550308" },
    { "codigo_municipio": "4106902" }
  ],
  "data_fim": "2026-06-25",
  "utilizar_roteirizador": true,
  "url_notificacao": "https://suaaplicacao.com.br/webhook/ciot"
}' \
https://api.webmania.com.br/2/ciot/vale-pedagio

Replace data_fim with the end date of the trip. It cannot be before today. Buying without the route planner depends on whether the partner IPEF offers this option. Confirm with Webmania support that it is enabled. When it is available, keep the other data and send "utilizar_roteirizador": false and "distancia_total_km": 400. If the option is not enabled, the API returns Rota sem quilometragem. ("route with no distance"), even when you send distancia_total_km.

Example of an HTTP 200 response:

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "numero_vale_pedagio": "000000000000",
  "codigo_verificador": "0000",
  "id_antt": "000000000000",
  "valor": 100.00,
  "pracas": [
    { "nome": "PRAÇA EXEMPLO", "valor": 100.00, "localizacao": "LOCALIZAÇÃO EXEMPLO" }
  ],
  "status": "comprado"
}
ParameterTypeDescription
uuidstringUUID of the CIOT document.
numero_vale_pedagiostringToll voucher number, with 12 digits.
codigo_verificadorstringCheck digits of the toll voucher.
id_anttstringANTT identifier of the toll voucher, digits only.
valornumberToll voucher amount.
pracasarrayToll plazas of the toll voucher.
pracas[].nomestringToll plaza name.
pracas[].valornumberToll amount at the plaza.
pracas[].localizacaostringToll plaza location.
statusstringToll voucher status. See the toll voucher statuses.

The first response may be processando. Purchase data not yet confirmed comes as null, and pracas comes empty. When numero_vale_pedagio and codigo_verificador are filled, track the purchase with the toll voucher lookup. If either identifier is null, that lookup is not possible, and the API has no other toll voucher lookup by uuid. Wait for the notification at url_notificacao, if you sent it in the purchase, or contact Webmania support. Do not send another purchase to track processing.

Toll Voucher
Look Up a Toll VoucherComing soon

Looks up the toll voucher at the partner IPEF (electronic freight payment institution) to track a purchase or cancellation in progress. It does not send a new purchase command.

To look it up, send a GET request to /2/ciot/vale-pedagio/{numero}.

Request parameters:

Parameter Required Type Size Description
numero (path)
Required
string12Toll voucher number, digits only.
codigo_verificador (query)
Required
string4Check digits of the toll voucher, digits only. XXXX is not accepted.
ambiente (query)
Required
integer1Environment of the lookup.
1 = Production
2 = Sandbox (homologação)
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
"https://api.webmania.com.br/2/ciot/vale-pedagio/000000000000?codigo_verificador=0000&ambiente=2"

Example of an HTTP 200 response:

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "numero_vale_pedagio": "000000000000",
  "codigo_verificador": "0000",
  "id_antt": "000000000000",
  "valor": 100.00,
  "fornecedor_tag": 1,
  "categoria_pedagio": 8,
  "comprado_em": "2026-06-20T14:30:00-03:00",
  "pracas": [
    { "nome": "PRAÇA EXEMPLO", "valor": 100.00, "localizacao": "LOCALIZAÇÃO EXEMPLO" }
  ],
  "status": "comprado",
  "cancelado_em": null
}
ParameterTypeDescription
uuidstringUUID of the CIOT document.
numero_vale_pedagiostringToll voucher number, with 12 digits.
codigo_verificadorstringCheck digits of the toll voucher.
id_anttstringANTT identifier, digits only.
valornumberToll voucher amount.
fornecedor_tagintegerToll tag (TAG) provider.
1 - ConectCar
2 - Sem Parar
3 - Veloe
4 - Move Mais
5 - Ticketlog
categoria_pedagiointegerToll category, from 2 to 16.
comprado_emdatetimeDate and time of the purchase in ISO 8601 format.
pracasarrayToll plazas of the toll voucher.
pracas[].nomestringToll plaza name.
pracas[].valornumberToll amount at the plaza.
pracas[].localizacaostringToll plaza location.
statusstringCurrent status. See the toll voucher statuses.
cancelado_emdatetimeDate and time of the cancellation in ISO 8601 format, or null when not canceled.

While the purchase is in progress, data not yet confirmed may come as null, and pracas may be empty.

Toll Voucher
Toll Voucher ReceiptComing soon

Gets the toll voucher receipt at the partner IPEF (electronic freight payment institution). It is available only for a toll voucher in comprado or cancelado.

To get the receipt, send a GET request to /2/ciot/vale-pedagio/{numero}/comprovante.

Request parameters:

Parameter Required Type Size Description
numero (path)
Required
string12Toll voucher number, digits only.
codigo_verificador (query)
Required
string4Check digits of the toll voucher, digits only. XXXX is not accepted.
ambiente (query)
Required
integer1Environment of the lookup.
1 = Production
2 = Sandbox (homologação)
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
"https://api.webmania.com.br/2/ciot/vale-pedagio/000000000000/comprovante?codigo_verificador=0000&ambiente=2"

Example of an HTTP 200 response:

{
  "numero_vale_pedagio": "000000000000",
  "pdf": "JVBERi0xLjQKJSVFT0YK"
}

If the receipt is still being prepared:

{
  "numero_vale_pedagio": "000000000000",
  "status": "processando"
}
ParameterTypeDescription
numero_vale_pedagiostringToll voucher number, with 12 digits.
pdfstringPDF in base64. The content in the example is only a sample. Present when the receipt is available.
statusstringprocessando while the receipt is being prepared. In this response, pdf is not present.

When the receipt is processando, try this lookup again shortly. Do not repeat the purchase.

Toll Voucher
Cancel a Toll VoucherComing soon

Requests the cancellation of a toll voucher bought at the partner IPEF (electronic freight payment institution). The cancellation may stay in cancelamento_pendente until the institution confirms it. Track it with the toll voucher lookup.

To cancel, send a PUT request to /2/ciot/vale-pedagio/cancelar.

What the response may contain:

CaseResponseWhat to do
Cancellation in progressstatus = cancelamento_pendenteTrack it with the lookup. Repeating the request only checks the processing; it sends no other command.
Toll voucher already canceledstatus = canceladoNothing to do.
Under review at the institutionstatus = verificacao_manualContact support.
The institution did not process the cancellationstatus = compradoDo not repeat it automatically. Check before you request it again.
The institution refused the cancellationerror, and the toll voucher stays compradoDo not repeat it automatically. Read the reason in error.

Request parameters:

Parameter Required Type Size Description
numero_vale_pedagio
Required
string12Toll voucher number, digits only.
codigo_verificador
Required
string4Check digits of the toll voucher, digits only. XXXX is not accepted.
ambiente
Required
integer1Operation environment.
1 = Production
2 = Sandbox (homologação)
motivo
Required
string1-500Reason for the cancellation.
curl -X PUT \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "numero_vale_pedagio": "000000000000",
  "codigo_verificador": "0000",
  "ambiente": 2,
  "motivo": "Cancelamento da viagem"
}' \
https://api.webmania.com.br/2/ciot/vale-pedagio/cancelar

Example of an HTTP 200 response:

{
  "numero_vale_pedagio": "000000000000",
  "codigo_verificador": "0000",
  "status": "cancelamento_pendente"
}
ParameterTypeDescription
numero_vale_pedagiostringToll voucher number, with 12 digits.
codigo_verificadorstringCheck digits of the toll voucher.
statusstringcancelamento_pendente while it waits for confirmation, cancelado when confirmed, or verificacao_manual when support needs to follow up. If the institution reports that it did not process the cancellation, it returns comprado. A refusal returns error and also keeps the toll voucher comprado. See the toll voucher statuses.

IPEF Account
Account BalanceComing soon

Gets the balances of the company's account at the partner IPEF (electronic freight payment institution). It does not move money and does not require a CIOT.

To get the balance, send a GET request to /2/ciot/conta/saldo.

Request parameters:

Parameter Required Type Size Description
ambiente (query)
Required
integer1Account environment.
1 = Production
2 = Sandbox (homologação)
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
"https://api.webmania.com.br/2/ciot/conta/saldo?ambiente=2"

Example of an HTTP 200 response:

{
  "ambiente": 2,
  "saldo_disponivel": "1500.00",
  "saldo_bloqueado": "500.00",
  "saldo_contabil": "2000.00",
  "data_saldo": "2026-06-20T14:30:00-03:00"
}
ParameterTypeDescription
ambienteintegerEnvironment queried: 1 = Production; 2 = Sandbox (homologação).
saldo_disponivelstringAvailable balance, with 2 decimal places.
saldo_bloqueadostringBlocked balance, with 2 decimal places.
saldo_contabilstringLedger balance, with 2 decimal places.
data_saldodatetimeDate and time of the balance, in ISO 8601 format.

IPEF Account
Account StatementComing soon

Lists the entries in the company's account at the partner IPEF (electronic freight payment institution). It does not move money. The start date must not be after the end date, and the period cannot exceed 90 days.

To get the statement, send a GET request to /2/ciot/conta/extrato.

Request parameters:

Parameter Required Type Size Description
ambiente (query)
Required
integer1Account environment.
1 = Production
2 = Sandbox (homologação)
data_inicio (query)
Required
date10Start date in YYYY-MM-DD format.
data_fim (query)
Required
date10End date in YYYY-MM-DD format. It must be on or after data_inicio, within 90 days.
curl -X GET \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
"https://api.webmania.com.br/2/ciot/conta/extrato?ambiente=2&data_inicio=2026-06-01&data_fim=2026-06-30"

Example of an HTTP 200 response for a period with no entries:

{
  "data_inicio": "2026-06-01",
  "data_fim": "2026-06-30",
  "lancamentos": []
}
ParameterTypeDescription
data_iniciodateStart date queried, in YYYY-MM-DD format.
data_fimdateEnd date queried, in YYYY-MM-DD format.
lancamentosarrayEntries for the period. An empty list when there are no entries.
lancamentos[].tipostringEntry type.
credito - Credit
debito - Debit
lancamentos[].descricaostringEntry description.
lancamentos[].valorstringEntry amount, with 2 decimal places.
lancamentos[].data_transacaodatetimeDate and time of the transaction, in ISO 8601 format.
lancamentos[].codigo_transacaostringTransaction code.

Error Messages

These are the messages the API returns in the error field for the most common refusals of the two channels. The messages are in Portuguese; the first column explains each case in English. Business-rule refusals come with HTTP 200. Rows marked HTTP 422 are validation errors, in the format described in Response format. The "payment under review" message appears in parcela.mensagens of the payment response or of the installment lookup. It does not mean that a new command was sent.

CaseMessage
Profile not served by the direct channelEsta API não emite CIOT para TAC, TAC‑equiparado (ETC com até 3 veículos), CTC ou operação TAC‑Agregado pelo canal direto com a ANTT. O CIOT para esses perfis é emitido em parceria com Instituições de Pagamento Eletrônico de Frete. Entre em contato com a Webmania para habilitar. (The message also cites the legal basis.)
Profile that requires an IPEFSe o transportador contratado for TAC, TAC‑equiparado ou CTC, ou a operação for TAC‑Agregado, o CIOT é emitido em parceria com Instituições de Pagamento Eletrônico de Frete: entre em contato com a Webmania para habilitar.
Company not enabledA emissão via Instituição de Pagamento Eletrônico de Frete parceira não está ativa para esta empresa. Entre em contato com o suporte.
Hiring party differs from the enabled companyNa emissão via Instituição de Pagamento Eletrônico de Frete o CIOT é registrado pelo contratante: cpf_cnpj_contratante deve ser o CNPJ da empresa habilitada.
Payment method not allowed (HTTP 422)Para TAC, TAC‑equiparado e CTC a forma de pagamento 5 (Outros) não é permitida (Lei nº 11.442/2007, art. 5º‑A, §6º; DCS PEF B100).
Invalid field in ipef (HTTP 422)O campo {campo} em ipef.* é inválido.
Temporary unavailability.
For parcela/pagar and parcela/reprocessar, check parcela/status first. For a toll voucher purchase, follow the tracking steps for identifiers that are filled or null. Do not repeat the payment or the purchase to track processing.
Instituição de Pagamento Eletrônico de Frete parceira indisponível no momento. Tente novamente em instantes.
Refusal by the institutionA Instituição de Pagamento Eletrônico de Frete parceira recusou a operação (código {codigo}): {mensagem sanitizada}
Payment failureNão foi possível concluir a operação de pagamento.
Installment not foundParcela inexistente.
Payment already confirmedParcela já paga.
CIOT not eligible for paymentCIOT não aprovado.
Insufficient balance for the paymentSaldo insuficiente.
Pix key not foundChave PIX não encontrada.
Card not foundCartão inexistente.
Payment result under reviewPagamento em verificação junto à instituição (nenhum novo comando enviado).
CIOT payment method not accepted by the installment servicePagamento de parcelas disponível só para formas 1 e 6.
Toll voucher failureNão foi possível concluir a operação de vale-pedágio.
Vehicle not registered with the toll tag (TAG) providerVeículo sem cadastro no fornecedor de TAG.
Route with no distance availableRota sem quilometragem.
Pending operationJá existe uma operação {operacao} em processamento para este CIOT.
Temporary suspensionEmissões e pagamentos via Instituição de Pagamento Eletrônico de Frete estão temporariamente suspensos.
Numbering unavailableA emissão via Instituição de Pagamento Eletrônico de Frete parceira está com a numeração esgotada para esta empresa. Entre em contato com o suporte.
CIOT not foundCIOT não encontrado.
Toll voucher not foundVale-pedágio não encontrado.
Cancellation before the purchaseO vale-pedágio ainda não está comprado.
Receipt not available for this statusO comprovante está disponível somente para vale-pedágio comprado ou cancelado.
Amending a full load (Carga Lotação)A retificação de uma operação de carga lotação (tipo_operacao = 1) não é permitida pela Instituição de Pagamento Eletrônico de Frete parceira.

If a payment request stays pending or a communication failure occurs, check the installment status before any new action. For toll voucher purchases, follow the purchase tracking steps and do not repeat the purchase. In verificacao_manual, contact support.

Contingency

The PEF contingency model is in-payload: the contingency is declared in the body of the message sent to ANTT. It does not use alternative authorizers, SVC or EPEC (backup services used for other tax documents), because ANTT provides a single sandbox (homologação) endpoint and a single production endpoint.

Contingency Declaration

To declare an operation in contingency, send ind_contingencia as true and fill in justificativa_contingencia with up to 255 characters. The justification is required when the operation is in contingency. Do not send it when the operation is not in contingency.

What changesDirect channel with ANTTThrough an IPEF partner
Declare in contingencySend ind_contingencia = true with the justificativa_contingencia, within the deadlines below.Do not declare it: always send ind_contingencia = false. The partner institution registers the operation with ANTT.
CIOT registered in contingencyThe CIOT has 16 digits, like the others.When the institution registers in contingency, the CIOT has 12 digits and codigo_verificador = XXXX. Use the uuid to cancel, amend or close it.
Unstable communicationWebmania looks up the CIOT already issued or repeats the declaration, with the status contingencia in the meantime (see below).The response can come as processando or contingencia until the institution confirms it.

A contingency declaration must follow these ANTT deadline rules:

  • The declaration date must be on or before the current date. It cannot be more than 30 days before the current date.
  • The declaration date cannot be more than 168 hours (7 days) before the current date and time.
  • Outside contingency, the trip start date must be on or after the current date. It cannot be more than 30 days after the current date.
  • In contingency, the trip start date must be on or after the declaration date.

Managed by Webmania

Communication with ANTT can be unstable. When that happens, Webmania handles it automatically: it looks up the CIOT already issued (when there is one) or retries the original declaration, keeping the ind_contingencia value you sent. Meanwhile, the operation has the status contingencia, with no notification, and is reprocessed automatically within the allowed window. Follow the same uuid through the CIOT lookup, without declaring again.

Unstable communication: how Webmania completes the CIOT declaration When it receives the POST /2/ciot/declaracao, Webmania follows the channel of the operation. In the direct channel, the declaration is sent to ANTT (the national land transport agency) with the ind_contingencia value you sent: the response returns aprovado or reprovado. If communication with ANTT fails, the operation gets the contingencia status, with no notification. Webmania checks whether the CIOT was already generated; if not, it repeats the original declaration, with the same ind_contingencia and within the window ANTT allows, until it completes. In the IPEF channel, the declaration is sent to the partner institution and stays in processando or contingencia until it is confirmed. Webmania follows it at increasing intervals. The final result, aprovado or reprovado, arrives through the url_notificacao and the CIOT lookup. POST /2/ciot/declaracao Channel of the operation Sent to ANTT with the ind_contingencia you sent Immediate response aprovado reprovado ANTT unstable contingencia no notification CIOT already generated? lookup at ANTT Repeats the declaration same ind_contingencia within the ANTT window Sent to the partner institution Waiting for the institution processando or contingencia Webmania follows the registration at increasing intervals Final result in your application aprovado or reprovado, in the url_notificacao and the lookup Direct channel In partnership with IPEF No Yes
Webmania® step Check Final result Waiting for the result: not a final status Your application New attempt
Follow the same uuid through the CIOT lookup, without declaring again. To declare an operation in contingency mode, send ind_contingencia = true, in the direct channel only.

CIOT in the MDF-e

The approved CIOT, from either channel, goes in the MDF-e (electronic cargo manifest) of the trip, in the rodoviario.ciot array of the MDF-e API. Each array item has the code of one CIOT and the document of whoever registered it:

MDF-e fieldWhere it comes from
rodoviario.ciot[].codigo_ciotThe first 12 digits of codigo_identificacao_operacao, without the 4 digits of codigo_verificador. When the check digits are XXXX, the code already has 12 digits.
rodoviario.ciot[].cnpj_responsavel or cpf_responsavelWhoever registered the CIOT. Direct channel: the company's own CNPJ, sent in cpf_cnpj_contratado. IPEF channel: the CNPJ of the enabled hiring company, sent in cpf_cnpj_contratante. Send only one of the two fields.
  1. Confirm the approval Use the CIOT only with the status aprovado, received by notification or by lookup.
  2. Build the MDF-e item Copy the 12-digit code and the CNPJ of whoever registered the CIOT to rodoviario.ciot.
  3. Issue the MDF-e Send the MDF-e through the MDF-e API. If the trip has more than one CIOT, send one item per CIOT.
  4. Keep both in sync If the transport operation is canceled, do not use the CIOT in new tax documents.

Example of the rodoviario part of the MDF-e:

{
  "rodoviario": {
    "ciot": [
      {
        "codigo_ciot": "000000000000",
        "cnpj_responsavel": "12345678000195"
      }
    ]
  }
}

Infrastructure

The Webmania® API runs on Amazon AWS, the global leader in cloud computing, in the us-east-1 region (US East), with a point of presence in sa-east-1 (São Paulo). The entry point is anycast and highly available: from anywhere in the world, your request goes to the server closest to you.

Anycast entry of the Webmania API around the world World map with the us-east-1 region, in the eastern United States, and the sa-east-1 point of presence, in São Paulo. Requests from many parts of the world enter through the anycast network and go to the nearest server: North America, Europe and Asia to us-east-1, and South America, Africa and Oceania to sa-east-1. us-east-1 US East sa-east-1 São Paulo
Webmania AWS region Your application Anycast route to the nearest server
Illustration. The dots stand for applications in different regions of the world, not for real server addresses.

Global anycast

The same entry IPs serve the whole world. Your request goes to the server closest to you, with no setup on your side.

Two AWS locations

us-east-1 (US East) and sa-east-1 (São Paulo). Keep your infrastructure close to one of them for a shorter response time.

Static IPs

Fixed IPs for inbound and outbound traffic: allow them in your firewall and check the source of the notifications you receive.

Static inbound IPs Requests from your application to the API.
  • 13.248.145.90
  • 76.223.17.240
Static outbound IPs Notifications sent by Webmania® to your URL.
  • 34.196.69.38
  • 44.219.142.86

Request limits

The Webmania® API limits the number of requests per second to keep every integration stable and fast. Each limit is counted per second, separately for each HTTP method and each endpoint.

GET 15per second

Reading: lookups and lists.

POST No limit

Creating: issuing and other submissions. See the specific limits below.

PUT / DELETE 5per second

Changing and removing resources.

Specific limits

Some endpoints have a lower limit, which applies instead of the method's limit:

Request Limit Reason
Issuing in the sandbox (homologação) 1 request per second Test environment for your integration.

Need a higher request volume? Contact us and we will review it.

When the limit is exceeded

A request over the limit is refused with HTTP 429 (Too Many Requests) before it is processed. Nothing is issued, changed or canceled, and you can safely resend the same request.

Header Example Description
Retry-After 1 Seconds to wait before you resend the request. If the response does not include this header, wait 1 second.

Example of an HTTP 429 response. The API sends the message in Portuguese; it means “Request limit reached. Try again in a few seconds.”:

{
  "error": "Limite de requisições atingido. Tente novamente em alguns segundos."
}
Detect the limit by the HTTP status 429, not by the text of the error field: the message can change from one endpoint to another.

How to handle HTTP 429

  1. Pause sendingStop sending new requests to the same endpoint.
  2. Wait the time shownWait the number of seconds in the Retry-After header, or 1 second if the header is missing.
  3. Resend the same requestThe refused request was not processed. Resend it with the same content.
  4. Wait longer if the 429 repeatsFor each new 429 in a row, double the wait time (1, 2, 4, 8 seconds) and set a maximum number of retries.

Best practices

Use the notification URL

Receive the API results at your notification URL instead of polling in a loop. When a result arrives, update your database and add the CIOT to the MDF-e.

Send through a queue

Spread your requests through a queue that respects the per-second limit of each method, instead of sending everything at once.

Send valid credentials

The endpoints require valid access credentials in the request header. Sending them incorrectly is treated as misuse of the API.

Allow your server IP

By default, the firewall blocks servers in regions with a high rate of attacks or a poor reputation. If a GET to https://webmania.com.br/api/ or https://api.webmania.com.br returns 403 Forbidden by mistake, contact us and we will allow your IP.

Changelog

  1. v2.2.0 · December 2, 2026 · API · Added

    The CIOT declaration at POST /2/ciot/declaracao now accepts a unified JSON format, with the additional data in the same request body and automatic channel selection based on the operation. Integrations that already send the ipef parameter keep working with no change.

    Changed sections: declarar, declarar-exemplo, declarar-ipef-objeto

  2. v2.1.1 · December 1, 2026 · API · Changed · Breaking change

    In the CIOT declaration, the direct and IPEF channels return HTTP 422 for a non-empty list of contracting parties in a full-load operation (carga lotação), and for a missing or empty list, or one with the document of the operation's contracting party, in a partial-load operation (carga fracionada).

    Changed sections: declarar-dados-carga, declarar-ipef, formato-resposta

  3. v2.1.0 · November 17, 2026 · Documentation · Changed · Beta

    The CIOT documentation now shows both issuing channels together: a Quick guide with flowcharts, the rules per channel in each operation, and the statuses with what to do in each case.

    23 changed sections

    guiarapido, ciot-canais, ciot-ciclo-vida, ciot-pagamento-frete, autenticacao, formato-resposta, notificacoes, declarar, declarar-piso-frete, declarar-ipef, consultar-ciot, consultar-situacao, cancelar, retificar, encerrar, servicos-ipef, ipef-mensagens, contingencia, declarar-origem-destino, declarar-veiculos, declarar-ipef-pagamento, vale-pedagio-cancelar, mdfe

  4. v2.0.1 · November 9, 2026 · Documentation · Added

    The documentation is now LLM-ready: copy the page or each section as Markdown, a section index and llms.txt.

Solutions

Fiscal IssuerFiscal MonitorTax ReconciliationArtificial Intelligence

Industries

Logistics & TransportationTechnology & SaaSManufacturingBanks & FintechsServices & SubscriptionsRetail & CommerceMid-sized CompaniesEnterprise

Brazil tax guide

Start hereComplete guideGlossaryNF‑e (electronic invoice)NFS‑e (service invoice)CT‑e (freight bill)Tax reform

Company

AboutCustomersContactBook a demoPolicies and termsTrust Center

Developers

API documentationNF‑e and NFC‑e APINFS‑e APICT‑e and CT‑e OS APIDC‑e APIMDF‑e APINFCom APICIOT / PEF APITax payment slips APIFiscal Monitor APIB2B Management APISDKs on GitHubDocs for LLMs (llms.txt)

Offices

United States

Webmania Inc8 The Green, STE R, Dover, DE 19901

São Paulo, Brazil

Cubo Itaú innovation hubAlameda Vicente Pinzon, 54 - 10th floor, Vila Olímpia, São Paulo - SP

Curitiba, Brazil

HeadquartersAv. Água Verde, 1413 - 5th floor, Água Verde, Curitiba - PR

HOTMILK innovation hubR. Imac. Conceição, 1430, Prado Velho, Curitiba - PR

Talk to our team

Quick access

Customer panelContact
Webmania® Status SEFAZ Monitor City Hall Monitor
Cubo Itaú Startup 2025
webmania®

Copyright © 2009-2026 Webmania®.Webmania® is a registered trademark used exclusively by WMBR SERVICOS EMPRESARIAIS LTDA
CNPJ 11.290.027/0001-82, headquartered at Av. Água Verde, 1413, 5th floor - Curitiba, PR, Brazil - ZIP 80620-200

Region and language

Brazil

  • PTPortuguês (Brasil)
  • ENEnglish
  • ESEspañol
We use cookies to improve your experience on Webmania®. Learn more in our Privacy Policy and Cookie Policy.