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:
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.
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.
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:
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.
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.
| Status | What it means | What to do |
|---|---|---|
processando | The 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. |
contingencia | Communication failed, and Webmania retries the operation automatically within the allowed window. | Follow the same uuid, without declaring again. |
aprovado | The CIOT was issued. | Use the code in the MDF-e. Amend it, pay installments or close it, as the operation requires.Coming soon |
reprovado | The declaration was refused; motivo has the code and the message. | Fix the data shown in motivo and send a new declaration. |
cancelado | The operation was canceled. | Do not use this CIOT in tax documents. |
encerrado | The 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.
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.
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.
Take this reference to your AI assistant, integrate the API with an official SDK, or start from the ready-made modules and examples.
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.
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
git clone https://github.com/
Python Available
git clone https://github.com/
PHP Available
git clone https://github.com/
Perl Available
git clone https://github.com/
Go Available
git clone https://github.com/
C Available
git clone https://github.com/
C++ Available
git clone https://github.com/
Lua Available
git clone https://github.com/
Dart Available
git clone https://github.com/
R Available
git clone https://github.com/
Java Available
git clone https://github.com/
Kotlin Available
git clone https://github.com/
Scala Available
git clone https://github.com/
Clojure Available
git clone https://github.com/
Ruby Available
git clone https://github.com/
.NET (C#) Available
git clone https://github.com/
PowerShell Available
git clone https://github.com/
Elixir Available
git clone https://github.com/
Rust Available
git clone https://github.com/
Haskell Available
git clone https://github.com/
Swift Available
git clone https://github.com/
Test the CIOT / PEF REST API without writing a line of code, and speed up your integration with the official Webmania® tools.
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.
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:
| Situation | HTTP | Body |
|---|---|---|
| Invalid common field in the declaration, cancellation, amendment or closing, in any channel | 200 | {"error": "Parâmetro inválido: …"} |
Scalar value, such as a string, sent instead of the list in dados_carga.contratantes_carga_frac | 200 | {"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 rate | 200 | {"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 channel | 422 | {"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 soon | 422 | {"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.
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 status | When it is sent |
|---|---|
aprovado | The CIOT was issued; the body has codigo_identificacao_operacao, codigo_verificador and protocolo. |
reprovado | The declaration was refused; the body has the motivo (reason). |
cancelado | The cancellation of the operation was confirmed. |
encerrado | The 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.
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.
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. |
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": []
}
} 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.
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 operation | Channel | Guidance |
|---|---|---|
| ETC not treated as a TAC, with an active RNTRC | Directly with ANTT | The 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 partner | Contact Webmania. |
| TAC-equiparado (an ETC with up to 3 vehicles) | Through an IPEF partner | Contact Webmania. |
| CTC (freight cooperative) | Through an IPEF partner | Contact Webmania. |
Operations with tipo_operacao=3 | Through an IPEF partner | Contact 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:
Request parameters:
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
id | Optional | string | up to 100 | External control ID for the operation. May be omitted or null. |
ambiente | Required | number | 1 | Environment of the operation.1 = Production |
tipo_operacao | Required | number | 1 | Operation type.1 - Full load (Carga Lotação) |
cpf_cnpj_contratado | Required | string | 11 or 14 | CPF (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 | string | 9 | RNTRC of the hired carrier. |
cpf_cnpj_contratante | Required | string | 11 or 14 | CPF 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 | string | 11 or 14 | CPF or CNPJ of the recipient. Do not send it for tipo_operacao = 3. |
valor_frete | Required | number | 10,2 | Freight amount. It must be greater than zero. |
data_declaracao | Required | date | 19 | Date 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 | string | 255 | Justification for the contingency. Not allowed when ind_contingencia = false. |
data_inicio_viagem | Required for types 1 and 2 | date | 10 | Trip 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 | date | 10 | Expected 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 | url | up to 500 | URL that receives automatic status notifications. |
id_operacao_transporte | Optional | string | 12 | Identifier 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 | string | 9 | RNTRC of the hiring party. It must belong to cpf_cnpj_contratante. |
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.
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 | string | 12 | Identifier of the transport operation that was sent (inside ciot). |
CodigoIdentificacaoOperacao | When returned | string or number | 12 or 16 | Code 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 number | 4 | Check 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 | string | 16 | ANTT authorization protocol number (inside ciot). |
Codigo | When returned | array | 6 | Error or success code (inside ciot). E.g. 110. |
Mensagem | When returned | array | 200 | Error or success message (inside ciot). |
AvisoTransportador | When returned | string | 0-300 | Notice that ANTT registered for the hired carrier (inside ciot). |
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 |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
distancia_percorrida | See the channel rules | number | 8 | Distance 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 | number | 3 | Number 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 | string | 7 | IBGE code (official city code) of the origin city. |
cep_origem | Optional | string | 8 | Origin CEP (numbers only). |
latitude_origem | Optional | number | 10,6 | Origin latitude, between -90 and 90. Send it together with the longitude; zero is valid. |
longitude_origem | Optional | number | 10,6 | Origin longitude, between -180 and 180. Send it together with the latitude; zero is valid. |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
codigo_municipio_destino | Optional | string | 7 | IBGE code of the destination city. |
cep_destino | Optional | string | 8 | Destination CEP (numbers only). |
latitude_destino | Optional | number | 10,6 | Destination latitude, between -90 and 90. Send it together with the longitude; zero is valid. |
longitude_destino | Optional | number | 10,6 | Destination 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
}
]
} 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 | string | 7 | Vehicle plate (Brazilian or Mercosur format). |
numero_eixos | Required | integer | 1 | Number of axles, from 1 to 4. |
rntrc_veiculo | Optional | string | 9 | RNTRC linked to the vehicle. |
{
"veiculos": [
{ "placa": "ABC1234", "rntrc_veiculo": "012345678", "numero_eixos": 2 }
]
} 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 | number | 1 | Payment type.1 - IP (card) |
cpf_cnpj_creditado | Required | string | 11 or 14 | CPF or CNPJ of the payee. |
ind_pagamento | Required | number | 1 | Payment indicator.0 - Upfront |
codigo_instituicao_financeira | Required for types 1 to 4 | string | up to 3 | Financial institution code. |
numero_agencia | Required for types 2, 3 and 4 | string | up to 10 | Branch number. |
numero_conta | Required for types 1 to 4 | string | up to 20 | Account number or payment method identifier. |
chave_pix | Required for type 6 | string | up to 77 | Pix key. |
identificador_pix | Required for type 6 | string | up to 32 | Pix transaction identifier. Fill it in for an upfront payment too. |
numero_parcela | Required when deferred | number | 3 | Installment number, from 1 to 999. |
data_vencimento | Required when deferred | date | 10 | Due date of the installment in the format yyyy-MM-dd. |
valor_parcela | Required when deferred | number | 12,2 | Installment amount, greater than zero. |
codigo_pagamento | Optional | string | up to 50 | Identifier 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.
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 | string | 4 | Cargo nature code. |
peso_carga | Required for types 1 and 2 | number | 10,2 | Cargo weight. It must be greater than zero. |
contratantes_carga_frac | Required for type 2 | array | 11 (CPF) or 14 (CNPJ) digits per item, not counting punctuation | In 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 | integer | 1-2 | Integer code of the cargo type.1 - Solid bulkAccepted 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"]
}
} 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
}
} 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:
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.
| Field | How it enters the calculation |
|---|---|
origem_destino[].distancia_percorrida | Distance of each leg, summed. Every leg must include its distance. |
veiculos[].numero_eixos | Axles of each vehicle, summed for the combination. Every vehicle must include its axle count. |
dados_carga.codigo_tipo_carga | Selects the coefficient table for the cargo type. |
inf_indicadores_operacionais.composicao_veicular | Shows whether the operation is a vehicle combination. |
inf_indicadores_operacionais.ind_alto_desempenho | Shows whether the operation is high-performance. |
The fixed coefficient is charged only once per operation, on the sum of the distances.
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."
} 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.
Both channels use the same declaration endpoint. The table shows what each channel requires.
| What changes | Direct channel with ANTT | Through an IPEF partner |
|---|---|---|
cpf_cnpj_contratado | The CNPJ (company ID, 14 digits) of the issuing company itself. | CPF (individual taxpayer ID) or CNPJ of the hired carrier. |
cpf_cnpj_contratante | CPF or CNPJ of the hiring party. | CNPJ of the hiring company. The CIOT is registered in its name. |
id_operacao_transporte | Optional. If you omit it, it is generated automatically. | Do not send it. |
ind_contingencia | true or false, following the Contingency rules. | Always false. The partner institution registers the operation with ANTT. |
dados_carga | Follow 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_destino | The 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_pagamento | Payment methods 1 to 6 of Payment Information. | Methods 2, 3, 4 and 6, with the fields in Payment Methods. |
| Additional data | The format uses only the common fields. | Send the data in the same declaration body. |
| Amounts and weight | The sizes of each field. | At most 2 decimal places. |
| Enumerations | Numbers, as shown in each field's table. | Send integer fields as JSON integers, without quotes, for example "tipo_rateio": 4. |
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_pagamento | Fields in the unified format |
|---|---|
2 Checking account3 Savings account4 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 Pix | inf_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. |
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 | integer | 1 | How the tax withholdings are split across the installments.1 - First installment |
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 | number | 10,2 | Fuel amount, greater than or equal to zero. |
valor_pedagio | Optional | number | 10,2 | Toll 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 | string | up to 50 | Contract 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. |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
nome | Required | string | - | Name or legal name of the carrier, with at least 1 character. |
telefone | Required | string | 10 or 11 | Phone number with area code (DDD), digits only. |
tipo | Required when the API does not fill in the type | integer | 1 | Carrier type.1 - TACIf 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 | string | 1-14 | IE (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 | string | 1-2 | CNAE division (the main economic activity), from 1 to 99, without a leading zero. |
forma_constituicao | Required for types 2 and 3 | string | 5 | Legal nature code (natureza jurídica) in the format 000-0. |
data_constituicao | Required for types 2 and 3 | date | 10 | Incorporation date in the format YYYY-MM-DD. |
socios | Required for types 2 and 3 | array | - | Registration data of the partners (company owners). Learn more |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
uf | Required | string | 2 | Two-letter state code (UF). |
cidade | Required | string | 1-100 | City name. |
bairro | Required | string | 1-255 | Neighborhood name. |
logradouro | Required | string | 1-255 | Street or avenue name. |
numero | Required | string | 1-60 | Street number. |
cep | Required | string | 8 | CEP (postal code), digits only. |
complemento | Optional | string | up to 255 | Address complement, such as unit or floor. |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
identidade | Required | string | - | Identity document number. |
nome_mae | Required | string | - | Mother's name. |
data_nascimento | Required | date | 10 | Date of birth in the format YYYY-MM-DD. |
nome_pai | Optional | string | - | Father's name. |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
nome | Required | string | 1-150 | Partner's name. |
cpf | Required | string | 11 | Partner's CPF (individual taxpayer ID), digits only. |
identidade | Required | string | - | Identity document number. |
nome_mae | Required | string | - | Mother's name. |
data_nascimento | Required | date | 10 | Date of birth in the format YYYY-MM-DD. |
telefone | Required | string | 10 or 11 | Phone 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. |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
nome | Required | string | 1-255 | Name or legal name. |
cpf_cnpj | Required for the sender | string | 11 or 14 | CPF 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 |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
uf | Required | string | 2 | Two-letter state code (UF). |
codigo_municipio | Required | string | 7 | IBGE city code (the official city code), digits only. |
bairro | Required | string | 1-255 | Neighborhood name. |
logradouro | Required | string | 1-255 | Street or avenue name. |
numero | Required | string | 1-60 | Street number. |
cep | Required | string | 8 | CEP (postal code), digits only. |
complemento | Optional | string | Up to 255 | Address complement, such as unit or floor. |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
placa | Required | string | 7 | Use the license plate sent in the common veiculos list. |
modelo | Required | string | 1-100 | Vehicle model. |
tipo | Required | integer | 1 | Vehicle type. Send exactly one tractor vehicle.1 - Tractor |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
cpf | Required | string | 11 | Driver's CPF, digits only. |
nome | Required | string | 1-150 | Driver's name. |
telefone | Required | string | 10 or 11 | Phone number with area code (DDD), digits only. |
nome_mae | Required | string | 1-150 | Mother's name. |
data_nascimento | Required | date | 10 | Date of birth, before today, in the format YYYY-MM-DD. |
identidade | Required | string | 1-20 | Identity document number. |
cnh | Required | string | 9-15 | Driver's license (CNH) number. |
endereco | Required | object | - | Registered address of the driver. Learn more |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
nome | Required | string | 1-50 | Name of the installment. It must be unique in this operation. |
finalidade | Required | integer | 1 | Purpose of the installment.1 - Advance |
data_previsao | Required | date | 10 | Expected payment date in the format YYYY-MM-DD. |
valor | Required | number | 10,2 | Amount greater than zero, with up to 2 decimal places. |
tipo | Optional | integer | 1 | Payment type of the installment.1 - Manual (default)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. |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
tipo_chave_pix | Required for tipo_pagamento = 6 | integer | 1 | Pix key type.1 - Email |
digito_conta | Required for methods 2, 3 and 4 | string | 2 | Check digit of the bank account, up to 2 characters. |
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.canal | string | Issuing channel, with the value ipef. |
parcelas | array | Freight installments and the payment status of each one. |
parcelas[].nome | string | Name of the installment. |
parcelas[].finalidade | integer | Purpose of the installment.1 - Advance |
parcelas[].valor | string | Amount with 2 decimal places, such as "500.00". |
parcelas[].data_previsao | date | Expected payment date in the format YYYY-MM-DD. |
parcelas[].statusComing soon | string | Payment status.em_aberto - Open installmentIn verificacao_manual, no new command is sent automatically. Contact support before any new action. See Freight Payment. |
parcelas[].data_pagamento | datetime | Date and time of the payment. It is filled only when the installment is paga; in the other statuses, it returns null. |
log.canal | string | The value ipef. |
log.operacao | string or null | Operation the response refers to; null when the log has none of the known operations.declaracao - Declaration |
log.sucesso | boolean | Shows whether the operation was confirmed successfully. |
log.codigos | array | Codes returned by the partner institution. |
log.mensagens | array | Messages returned by the partner institution. |
operacao_pendente.operacao | string | Present 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_em | datetime | Date and time of the request, in ISO 8601 format. Present while the operation is not yet confirmed. |
codigo_identificacao_operacao | string | CIOT 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.
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:
| Status | What it means | What to do |
|---|---|---|
processando | The 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. |
contingencia | Communication failed, and Webmania retries the operation automatically within the allowed window. | Follow the same uuid, without declaring again. |
aprovado | The CIOT was issued. | Use the code in the MDF-e. Amend it, pay installments or close it, as the operation requires.Coming soon |
reprovado | The declaration was refused; motivo has the code and the message. | Fix the data shown in motivo and send a new declaration. |
cancelado | The operation was canceled. | Do not use this CIOT in tax documents. |
encerrado | The 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 | string | 12/16/36 | CIOT 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 number | 12 or 16 | Code 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 | array | 6 | Error or success code (inside ciot). |
Mensagem | When returned | array | 200 | Error or success message (inside ciot). |
What changes between the channels in the lookup:
| What changes | Direct channel with ANTT | Through an IPEF partner |
|---|---|---|
Code accepted in {ciot} | 16-digit code (with the check digits) or UUID. | Also the 12-digit code. |
| Response fields | log 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 updates | It 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. |
| Resending | The 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 }
]
} 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 | numeric | 1 | Must be 1 or 2. The lookup always uses ANTT's production database. |
cpf_cnpj_interessado (query) | Required | string | 11 or 14 | CPF or CNPJ of the interested party. |
cpf_cnpj_transportador (query) | Required | string | 11 or 14 | CPF or CNPJ of the carrier. |
rntrc_transportador (query) | Required | string | 9 | RNTRC 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 | string | 11 or 14 | CPF or CNPJ of the carrier, as returned by ANTT. |
RNTRCTransportador | Required | string | 9 | RNTRC number returned. |
NomeRazaoSocialTransportador | When returned | string | 200 | Name or legal name of the carrier. |
RNTRCAtivo | Required | boolean | 1 | true if the RNTRC is active. |
TipoTransportador | Required | string | 3 | Category: TAC, ETC or CTC. Together with EquiparadoTAC and RNTRCAtivo, it sets the declaration channel: see Who can issue. |
EquiparadoTAC | Required | boolean | 1 | true 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 | string | variable | Protocol number returned, when provided. |
Codigo | Required | array | 6 | Error or success code. For example, 111 for a successful lookup. |
Mensagem | Required | array | 200 | Error or success message. |
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 | numeric | 1 | Must be 1 or 2. The lookup always uses ANTT's production database. |
cpf_cnpj_interessado (query) | Required | string | 11 or 14 | CPF or CNPJ of the interested party. |
cpf_cnpj_transportador (query) | Required | string | 11 or 14 | CPF or CNPJ of the carrier. |
rntrc_transportador (query) | Required | string | 9 | RNTRC number of the carrier. |
placas (query) | Required | array | min. 1 item | List 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 | string | 11 or 14 | CPF or CNPJ of the carrier. |
RNTRCTransportador | Required | string | 9 | RNTRC number returned. |
NomeRazaoSocialTransportador | When returned | string | 200 | Name or legal name of the carrier. |
RNTRCAtivo | Required | boolean | 1 | true if the RNTRC is active. |
Frota | Required | array | - | List with the status of each vehicle searched. |
PlacaVeiculo | Required | string | 7 | Vehicle license plate. |
SituacaoVeiculoFrotaTransportador | Required | boolean or integer | 1 | Shows whether the vehicle belongs to the fleet, in the type received from ANTT. |
Protocolo | When returned | string | variable | Protocol number returned, when provided. |
Codigo | Required | array | 6 | Error or success code. |
Mensagem | Required | array | 200 | Error or success message. |
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 | numeric | 1 | Must be 1 or 2. The exception lookup always uses ANTT's production database. |
cpf_cnpj_transportador | Required | string | 11 or 14 | CPF 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 | string | 11 or 14 | CPF or CNPJ of the carrier. |
Retorno.Flag | Required | boolean | - | true if the CNPJ is on the exception list; false otherwise. |
Codigo | Required | array | 6 | Error or success code. |
Mensagem | Required | array | 200 | Error or success message. |
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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao | Required when uuid is not sent | string | 16 | CIOT with the check digits (16 digits). |
justificativa | Required | string | 1 to 500 | Reason for the cancellation. In the IPEF channel, it cannot contain only spaces. |
ambiente | Required when uuid is not sent | numeric | 1 | Environment of the operation. Required when uuid is not sent.1 = Production |
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 changes | Direct channel with ANTT | Through an IPEF partner |
|---|---|---|
| Processing | Sent 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. |
justificativa | 1 to 500 characters. | 1 to 500 characters, not only spaces. |
| Repeated request | For 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 XXXX | Does 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 number | 12 or 16 | Code 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 | date | 19 | Date/time returned by ANTT, when provided, inside log. The cancellation processing does not add it to ciot. |
Protocolo | When returned | string | 16 | Protocol number of the echo stored in ciot, when present. The protocol number of the cancellation response is in log, when provided. |
Codigo | When returned | array | 6 | Error or success code in the echo stored in ciot, when present. |
Mensagem | When returned | array | 200 | Error or success message in the echo stored in ciot, when present. |
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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao | Required when uuid is not sent | string | 16 | CIOT with the check digits (16 digits). |
ambiente | Required when uuid is not sent | numeric | 1 | Environment of the operation.1 = Production |
motivo | Required in the IPEF channel | string | 1–255 | Reason 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 | number | 10,2 | New freight amount. It must be greater than zero. |
data_fim_viagem | Not allowed for types 1 and 2; required for type 3 | date | 10 | New 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_frete | Not allowed | Optional | Optional |
data_fim_viagem | Not allowed | Not allowed | Required |
origem_destino | Not allowed | Optional | Required |
dados_carga | Not allowed | Optional | Not allowed |
What changes between the channels when you amend:
| What changes | Direct channel with ANTT | Through an IPEF partner |
|---|---|---|
| Types that can be amended | Type 2 until it is closed; type 3 up to 30 days after the data_fim_viagem. | Types 2 and 3. |
motivo | Optional; not sent to ANTT. | Required, and it cannot contain only spaces. |
origem_destino | The Origin and Destination rules. | The same location type in every leg. |
| Processing | Sent to ANTT. Check the status and any errors in the response. | The response may have operacao_pendente until the institution confirms. |
Check digit XXXX | Does not apply. | Identify the CIOT by its uuid. |
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 number | 12 or 16 | Raw 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 | date | 19 | Date/time of the amendment, when ANTT returns it in log. It is not in the original ciot echo. |
Protocolo | When returned | string | 16 | Raw 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 | array | 6 | Raw amendment codes in log. In ciot, the codes of the original declaration remain. |
Mensagem | When returned | array | 200 | Raw amendment messages in log. In ciot and in the top-level mensagens, the messages of the original declaration remain. |
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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao | Required when uuid is not sent | string | 16 | CIOT with the check digits (16 digits). |
ambiente | Required when uuid is not sent | numeric | 1 | Environment of the operation.1 = Production |
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 | number | 8 | Distance 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 | number | 3 | Number 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 | number | 10,2 | Cargo 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 | number | 10,2 | Cargo 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 | string | 4 | Harmonized 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_destino | Not allowed | Not allowed | Required |
distancia_percorrida / qtd_viagens | Not allowed | Not allowed | Required (per leg) |
peso_carga | Required | Not allowed | Not allowed |
What changes between the channels when you close:
| What changes | Direct channel with ANTT | Through an IPEF partner |
|---|---|---|
Type 1 | peso_carga required. | peso_carga required. |
Type 3, in each leg | distancia_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_km | Not used. | Replaces distancia_percorrida when there is a single leg without it. |
| Processing | Sent to ANTT. Check the status and any errors in the response. | The response may have operacao_pendente until the institution confirms. |
Check digit XXXX | Does not apply. | Identify the CIOT by its uuid. |
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 number | 12 or 16 | Raw 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 | date | 19 | Date/time of the closing, when ANTT returns it in log. It is not in the original ciot echo. |
Protocolo | When returned | string | 16 | Raw 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 | array | 6 | Raw closing codes in log. In ciot, the codes of the original declaration remain. |
Mensagem | When returned | array | 200 | Raw closing messages in log. In ciot and in the top-level mensagens, the messages of the original declaration remain. |
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.
| Status | What it means | What to do |
|---|---|---|
em_aberto | Open installment. | With methods 1 and 6, request the payment in Pay an Installment when it is due. |
aguardando_pagamento | Awaiting payment. | Check the installment status. If it has messages from the institution, see Reprocess a Payment. |
aguardando_solicitacao | Awaiting a payment request. | Request the payment in Pay an Installment. |
paga | Payment confirmed. | With method 6 (Pix), get the receipt. |
cancelada | Installment canceled. | Nothing to do. |
falha | Payment failed. | Confirm it in the installment status and request reprocessing. |
processando | Payment in progress. | Wait for the confirmation. Do not repeat the payment. |
verificacao_manual | Payment under review with the institution. No new command is sent automatically. | Contact support before any new action. |
| Status | What it means | What to do |
|---|---|---|
processando | Purchase in progress. | Track it with the toll voucher lookup. Do not repeat the purchase. |
comprado | Purchase confirmed. | Get the receipt. |
recusado | Purchase refused. | Review the purchase data before a new request. |
cancelamento_pendente | Cancellation in progress. | Track it with the toll voucher lookup. Do not repeat the cancellation. |
cancelado | Cancellation confirmed. | If needed, get the receipt. |
verificacao_manual | Operation under review with the institution. | Look up the toll voucher and contact support before any new action. |
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.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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao | Required when uuid is not sent | string | 12 | CIOT 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 | string | 4 | Check digits (4 digits, or XXXX for a CIOT registered in contingency). |
ambiente | Required when uuid is not sent | integer | 1 | Operation environment.1 = Production |
nome_parcela | Required | string | 1-50 | Installment name sent in ipef.parcelas[].nome. |
motivo | Optional | string or null | 255 | Reason for the payment request, up to 255 characters. |
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": []
}
} | Parameter | Type | Description |
|---|---|---|
uuid | string | UUID of the CIOT document. |
codigo_identificacao_operacao | string | CIOT without the check digits, with 12 digits. |
codigo_verificador | string | Check digits of the CIOT. |
parcela | object | Data and status of the requested installment. |
parcela.nome | string | Installment name. |
parcela.finalidade | integer or null | Purpose of the installment, or null when not available.1 - Advance |
parcela.valor | string | Amount with 2 decimal places. |
parcela.data_previsao | date or null | Expected date in YYYY-MM-DD format, or null when not available. |
parcela.status | string | Payment status. See the installment statuses. processando does not confirm the payment. |
parcela.data_pagamento | datetime or null | Date and time of the payment in ISO 8601 format, only when paga. In the other statuses, null. |
parcela.mensagens | array | Messages returned by the institution. |
Track the confirmation with the installment status. Do not repeat the payment to speed up processing.
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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao (query) | Required when uuid is not sent | string | 12 | CIOT 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 | string | 4 | Check digits (4 digits, or XXXX for a CIOT registered in contingency). |
ambiente (query) | Required when uuid is not sent | integer | 1 | Operation environment.1 = Production |
nome_parcela (query) | Required | string | 1-50 | Installment name sent in ipef.parcelas[].nome. |
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": []
}
} | Parameter | Type | Description |
|---|---|---|
uuid | string | UUID of the CIOT document. |
codigo_identificacao_operacao | string | CIOT without the check digits, with 12 digits. |
codigo_verificador | string | Check digits of the CIOT. |
parcela | object | Data and status of the installment queried. |
parcela.nome | string | Installment name. |
parcela.finalidade | integer or null | 1 = Advance; 2 = Balance (remaining amount); null when not available. |
parcela.valor | string | Amount with 2 decimal places. |
parcela.data_previsao | date or null | Expected date in YYYY-MM-DD format, or null when not available. |
parcela.status | string | Current status. See the installment statuses. |
parcela.data_pagamento | datetime or null | Actual date and time in ISO 8601 format when paga. In the other statuses, null. |
parcela.mensagens | array | Messages returned by the institution. |
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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao | Required when uuid is not sent | string | 12 | CIOT 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 | string | 4 | Check digits (4 digits, or XXXX for a CIOT registered in contingency). |
ambiente | Required when uuid is not sent | integer | 1 | Operation environment.1 = Production |
nome_parcela | Required | string | 1-50 | Installment name sent in ipef.parcelas[].nome. |
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": []
}
} | Parameter | Type | Description |
|---|---|---|
uuid | string | UUID of the CIOT document. |
codigo_identificacao_operacao | string | CIOT without the check digits, with 12 digits. |
codigo_verificador | string | Check digits of the CIOT. |
parcela | object | Installment data and status. |
parcela.nome | string | Installment name. |
parcela.finalidade | integer or null | 1 = Advance; 2 = Balance (remaining amount); null when not available. |
parcela.valor | string | Amount with 2 decimal places. |
parcela.data_previsao | date or null | Expected date in YYYY-MM-DD format, or null when not available. |
parcela.status | string | Payment status. See the installment statuses. |
parcela.data_pagamento | datetime or null | Date and time of the payment in ISO 8601 format when paga. In the other statuses, null. |
parcela.mensagens | array | Messages returned by the institution. |
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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao | Required when uuid is not sent | string | 12 | CIOT 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 | string | 4 | Check digits (4 digits, or XXXX for a CIOT registered in contingency). |
ambiente | Required when uuid is not sent | integer | 1 | Operation environment.1 = Production |
motivo | Required | string | 1-255 | Reason 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 |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
nome | Required | string | 1-50 | Name of the new installment. |
finalidade | Required | integer | 1 | Purpose of the installment.1 - Advance |
data_previsao | Required | date | 10 | Expected payment date in YYYY-MM-DD format. |
valor | Required | number | - | Amount greater than zero, with up to 2 decimal places. |
tipo | Required | integer | 1 | Installment type.1 - Manual |
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 | string | 1-2000 | Discount 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. |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
tipo_ajuste | Required | integer | 1 | Adjustment type.1 - Expected date |
nome_parcela | Required | string | 1-50 | Name of the existing installment. |
data_previsao | Required for tipo_ajuste = 1 | date | 10 | New 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 | string | 1-2000 | Discount 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 | integer | 1 | Pix key type.1 - Email |
dados_bancarios.chave_pix | Required for tipo_chave_pix from 1 to 4 | string | 1-77 | New Pix key. |
dados_bancarios.codigo_instituicao_financeira | Required for tipo_chave_pix = 5 | string | 1-3 | Financial institution (bank) code. |
dados_bancarios.numero_agencia | Required for tipo_chave_pix = 5 | string | 1-10 | Branch number. |
dados_bancarios.numero_conta | Required for tipo_chave_pix = 5 | string | 1-20 | Account number. |
dados_bancarios.digito_conta | Required for tipo_chave_pix = 5 | string | 1-2 | Account check digit. |
transferencia_automatica | Required for tipo_ajuste = 4 | object | - | Automatic transfer data. |
transferencia_automatica.cpf_condutor | Required when transferencia_automatica is sent | string | 11 | Valid CPF (individual tax ID) of the driver, digits only. |
transferencia_automatica.finalidade | Required when transferencia_automatica is sent | integer | 1 | Purpose of the transfer.1 - Advance |
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"
}
} | Parameter | Type | Description |
|---|---|---|
uuid | string | UUID of the CIOT document. |
codigo_identificacao_operacao | string | CIOT code in the format of the IPEF channel response. |
codigo_verificador | string | Check digits of the CIOT. |
status | string | Status of the CIOT, not of the payment. |
motivo | string | Reason for the CIOT status. |
modelo | string | Fixed value ciot. |
mensagens | array | Messages from the declaration echo in ciot, not necessarily from the installment change. |
log | object | Response of the last completed operation, in the IPEF channel format. While the change is pending, it may keep the previous response. |
ciot | object or empty array | Echo 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. |
emissao | object | Issuing channel: {"canal": "ipef"}. |
parcelas | array | Installments in the IPEF channel format, with nome, finalidade, valor, data_previsao, status and data_pagamento. |
operacao_pendente | object | Present 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.
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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao (query) | Required when uuid is not sent | string | 12 | CIOT 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 | string | 4 | Check digits (4 digits, or XXXX for a CIOT registered in contingency). |
ambiente (query) | Required when uuid is not sent | integer | 1 | Operation environment.1 = Production |
nome_parcela (query) | Required | string | 1-50 | Name of the paid installment. |
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"
}
} | Parameter | Type | Description |
|---|---|---|
uuid | string | UUID of the CIOT document. |
codigo_identificacao_operacao | string | CIOT without the check digits, with 12 digits. |
codigo_verificador | string | Check digits of the CIOT. |
nome_parcela | string | Name of the paid installment. |
comprovante | object | Pix receipt data. |
comprovante.id_end_to_end | string | Pix transaction ID. |
comprovante.valor | string | Amount with 2 decimal places. |
comprovante.data_pagamento | datetime | Date and time of the payment in ISO 8601 format. |
comprovante.status_transacao | string | Transaction status.executada - Executed |
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 | integer | 1 | Environment of the lookup.1 = Production |
ano_mes (query) | Required | string | 7 | Reference 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"
}
]
} | Parameter | Type | Description |
|---|---|---|
ano_mes | string | Month queried, in YYYY-MM format. |
parcelas | array | Open installments. It is an empty list when there are no installments. |
parcelas[].uuid | string | UUID of the CIOT document at Webmania, or null when it is not found. |
parcelas[].codigo_identificacao_operacao | string | CIOT without the check digits, with 12 digits. |
parcelas[].nome_parcela | string | Installment name. |
parcelas[].valor | string | Amount with 2 decimal places. |
parcelas[].data_previsao | date | Expected payment date in YYYY-MM-DD format. |
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 | integer | 1 | Environment of the lookup.1 = Production |
categoria_pedagio | Required | integer | 2 | Toll category of the vehicle, from 2 to 15 (for example, 8 for a 3-axle truck with dual wheels). |
pontos_parada | Required | array | minimum 2 | Stops, in order. Each item has only cep or codigo_municipio. Learn more |
rotas_alternativas | Optional | integer | 1 | Number of alternative routes, from 0 to 2 (default 0). |
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
cep | Send cep or codigo_municipio, never both | string | 8 | CEP (postal code) of the stop, digits only. |
codigo_municipio | Send cep or codigo_municipio, never both | string | 7 | IBGE 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 }
]
}
]
} | Parameter | Type | Description |
|---|---|---|
rotas | array | Quoted routes. |
rotas[].distancia_km | number | Route distance in km. |
rotas[].duracao_segundos | integer | Estimated route duration in seconds. |
rotas[].valor_pedagio_total | number | Total toll amount of the route. |
rotas[].ufs | array | Codes of the states (UF) the route crosses. |
rotas[].pracas | array | Toll plazas on the route. |
rotas[].pracas[].codigo_antt | string | ANTT code of the toll plaza, digits only. |
rotas[].pracas[].nome | string | Toll plaza name. |
rotas[].pracas[].valor | number | Toll amount at the plaza. |
rotas[].pracas[].free_flow | boolean | Shows whether the plaza charges by free flow (no toll booth). |
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 | string | 36 | UUID of the CIOT document. |
codigo_identificacao_operacao | Required when uuid is not sent | string | 12 | CIOT 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 | string | 4 | Check digits of the CIOT (4 digits, or XXXX for a CIOT registered in contingency). |
ambiente | Required when uuid is not sent | integer | 1 | Operation environment.1 = Production |
placa | Required | string | 7 | Vehicle license plate, in capital letters. |
cpf_cnpj_proprietario | Required | string | 11 or 14 | Valid CPF or CNPJ (individual or company tax ID) of the vehicle owner, digits only. |
rntrc_transportador | Required | string | 9 | RNTRC (ANTT's registry of road cargo carriers) number of the carrier, digits only. |
cpf_cnpj_transportador | Required | string | 11 or 14 | Valid CPF or CNPJ of the carrier, digits only. |
categoria_pedagio | Required | integer | 2 | Toll category, from 2 to 16. |
fornecedor_tag | Required | integer | 1 | Provider of the vehicle's toll tag (TAG).1 - ConectCar |
codigo_ativacao_tag | Optional | string | 30 | Activation code of the TAG. |
pontos_parada | Required | array | minimum 2 | Stops, in order, even when utilizar_roteirizador is false. Each item has only cep or codigo_municipio. Learn more |
data_fim | Required | date | 10 | End 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 | url | 500 | HTTP or HTTPS URL that receives the notifications of this toll voucher. |
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"
} | Parameter | Type | Description |
|---|---|---|
uuid | string | UUID of the CIOT document. |
numero_vale_pedagio | string | Toll voucher number, with 12 digits. |
codigo_verificador | string | Check digits of the toll voucher. |
id_antt | string | ANTT identifier of the toll voucher, digits only. |
valor | number | Toll voucher amount. |
pracas | array | Toll plazas of the toll voucher. |
pracas[].nome | string | Toll plaza name. |
pracas[].valor | number | Toll amount at the plaza. |
pracas[].localizacao | string | Toll plaza location. |
status | string | Toll 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.
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 | string | 12 | Toll voucher number, digits only. |
codigo_verificador (query) | Required | string | 4 | Check digits of the toll voucher, digits only. XXXX is not accepted. |
ambiente (query) | Required | integer | 1 | Environment of the lookup.1 = Production |
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
} | Parameter | Type | Description |
|---|---|---|
uuid | string | UUID of the CIOT document. |
numero_vale_pedagio | string | Toll voucher number, with 12 digits. |
codigo_verificador | string | Check digits of the toll voucher. |
id_antt | string | ANTT identifier, digits only. |
valor | number | Toll voucher amount. |
fornecedor_tag | integer | Toll tag (TAG) provider.1 - ConectCar |
categoria_pedagio | integer | Toll category, from 2 to 16. |
comprado_em | datetime | Date and time of the purchase in ISO 8601 format. |
pracas | array | Toll plazas of the toll voucher. |
pracas[].nome | string | Toll plaza name. |
pracas[].valor | number | Toll amount at the plaza. |
pracas[].localizacao | string | Toll plaza location. |
status | string | Current status. See the toll voucher statuses. |
cancelado_em | datetime | Date 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.
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 | string | 12 | Toll voucher number, digits only. |
codigo_verificador (query) | Required | string | 4 | Check digits of the toll voucher, digits only. XXXX is not accepted. |
ambiente (query) | Required | integer | 1 | Environment of the lookup.1 = Production |
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"
} | Parameter | Type | Description |
|---|---|---|
numero_vale_pedagio | string | Toll voucher number, with 12 digits. |
pdf | string | PDF in base64. The content in the example is only a sample. Present when the receipt is available. |
status | string | processando 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.
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:
| Case | Response | What to do |
|---|---|---|
| Cancellation in progress | status = cancelamento_pendente | Track it with the lookup. Repeating the request only checks the processing; it sends no other command. |
| Toll voucher already canceled | status = cancelado | Nothing to do. |
| Under review at the institution | status = verificacao_manual | Contact support. |
| The institution did not process the cancellation | status = comprado | Do not repeat it automatically. Check before you request it again. |
| The institution refused the cancellation | error, and the toll voucher stays comprado | Do not repeat it automatically. Read the reason in error. |
Request parameters:
| Parameter | Required | Type | Size | Description |
|---|---|---|---|---|
numero_vale_pedagio | Required | string | 12 | Toll voucher number, digits only. |
codigo_verificador | Required | string | 4 | Check digits of the toll voucher, digits only. XXXX is not accepted. |
ambiente | Required | integer | 1 | Operation environment.1 = Production |
motivo | Required | string | 1-500 | Reason 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"
} | Parameter | Type | Description |
|---|---|---|
numero_vale_pedagio | string | Toll voucher number, with 12 digits. |
codigo_verificador | string | Check digits of the toll voucher. |
status | string | cancelamento_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. |
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 | integer | 1 | Account environment.1 = Production |
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"
} | Parameter | Type | Description |
|---|---|---|
ambiente | integer | Environment queried: 1 = Production; 2 = Sandbox (homologação). |
saldo_disponivel | string | Available balance, with 2 decimal places. |
saldo_bloqueado | string | Blocked balance, with 2 decimal places. |
saldo_contabil | string | Ledger balance, with 2 decimal places. |
data_saldo | datetime | Date and time of the balance, in ISO 8601 format. |
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 | integer | 1 | Account environment.1 = Production |
data_inicio (query) | Required | date | 10 | Start date in YYYY-MM-DD format. |
data_fim (query) | Required | date | 10 | End 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": []
} | Parameter | Type | Description |
|---|---|---|
data_inicio | date | Start date queried, in YYYY-MM-DD format. |
data_fim | date | End date queried, in YYYY-MM-DD format. |
lancamentos | array | Entries for the period. An empty list when there are no entries. |
lancamentos[].tipo | string | Entry type.credito - Credit |
lancamentos[].descricao | string | Entry description. |
lancamentos[].valor | string | Entry amount, with 2 decimal places. |
lancamentos[].data_transacao | datetime | Date and time of the transaction, in ISO 8601 format. |
lancamentos[].codigo_transacao | string | Transaction code. |
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.
| Case | Message |
|---|---|
| Profile not served by the direct channel | Esta 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 IPEF | Se 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 enabled | A 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 company | Na 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 institution | A Instituição de Pagamento Eletrônico de Frete parceira recusou a operação (código {codigo}): {mensagem sanitizada} |
| Payment failure | Não foi possível concluir a operação de pagamento. |
| Installment not found | Parcela inexistente. |
| Payment already confirmed | Parcela já paga. |
| CIOT not eligible for payment | CIOT não aprovado. |
| Insufficient balance for the payment | Saldo insuficiente. |
| Pix key not found | Chave PIX não encontrada. |
| Card not found | Cartão inexistente. |
| Payment result under review | Pagamento em verificação junto à instituição (nenhum novo comando enviado). |
| CIOT payment method not accepted by the installment service | Pagamento de parcelas disponível só para formas 1 e 6. |
| Toll voucher failure | Não foi possível concluir a operação de vale-pedágio. |
| Vehicle not registered with the toll tag (TAG) provider | Veículo sem cadastro no fornecedor de TAG. |
| Route with no distance available | Rota sem quilometragem. |
| Pending operation | Já existe uma operação {operacao} em processamento para este CIOT. |
| Temporary suspension | Emissões e pagamentos via Instituição de Pagamento Eletrônico de Frete estão temporariamente suspensos. |
| Numbering unavailable | A 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 found | CIOT não encontrado. |
| Toll voucher not found | Vale-pedágio não encontrado. |
| Cancellation before the purchase | O vale-pedágio ainda não está comprado. |
| Receipt not available for this status | O 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.
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.
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 changes | Direct channel with ANTT | Through an IPEF partner |
|---|---|---|
| Declare in contingency | Send 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 contingency | The 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 communication | Webmania 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:
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.
uuid through the CIOT lookup, without declaring again. To declare an operation in contingency mode, send ind_contingencia = true, in the direct channel only.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 field | Where it comes from |
|---|---|
rodoviario.ciot[].codigo_ciot | The 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_responsavel | Whoever 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. |
Example of the rodoviario part of the MDF-e:
{
"rodoviario": {
"ciot": [
{
"codigo_ciot": "000000000000",
"cnpj_responsavel": "12345678000195"
}
]
}
} 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.
The same entry IPs serve the whole world. Your request goes to the server closest to you, with no setup on your side.
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.
Fixed IPs for inbound and outbound traffic: allow them in your firewall and check the source of the notifications you receive.
13.248.145.9076.223.17.24034.196.69.3844.219.142.86The 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.
Reading: lookups and lists.
Creating: issuing and other submissions. See the specific limits below.
Changing and removing resources.
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.
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."
}
429, not by the text of the error field: the message can change from one endpoint to another.Retry-After header, or 1 second if the header is missing.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.
Spread your requests through a queue that respects the per-second limit of each method, instead of sending everything at once.
The endpoints require valid access credentials in the request header. Sending them incorrectly is treated as misuse of the API.
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.
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
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
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.
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
The documentation is now LLM-ready: copy the page or each section as Markdown, a section index and llms.txt.