ciot_uuidpath · stringRequiredTransport operation UUID.
Constraints
{
"type": "string",
"format": "uuid"
}Parameters, data structure and responses from the versioned contract.
/fiscal/ciot/{ciot_uuid}/consultaTechnical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.
Triggers an active query to the CIOT provider to reconcile the ANTT operation status with FleetPay's database.
Unlike GET /fiscal/ciot/{ciot_uuid} (which reads the local draft without network calls), this endpoint queries the partner and updates protocol, status, number and verification code.
fiscal — Tax & Fiscal[
{
"oauth2": []
},
{
"chaveApi": []
}
]ciot_uuidpath · stringRequiredTransport operation UUID.
{
"type": "string",
"format": "uuid"
}200 HTTP ResponseOperation reconciled successfully.
application/jsondataobjectRequiredenvironmentobjectRequired202 HTTP ResponseQuery transmitted or processing at the provider.
application/jsondataobjectRequiredenvironmentobjectRequired401 HTTP ResponseUnauthenticated (autenticacao): missing, invalid or expired credentials, including an API key used in the wrong environment. A sandbox key is not valid in production, nor a production key in the sandbox; the error message indicates the expected environment.
404 HTTP ResponseResource not found in the authenticated tenant.
X-Request-IdCall correlation identifier.
409 HTTP ResponseAction conflicts with the current operation status (acao_conflitante).
422 HTTP ResponseBusiness rule failure or undeclared CIOT (ciot_nao_declarado, regra_de_negocio).
503 HTTP ResponseCIOT provider unavailable (servico_indisponivel).
{
"tags": [
"CIOT"
],
"summary": "Reconciliar/consultar CIOT no provedor ANTT",
"operationId": "consultarCiotNoProvedor",
"description": "Dispara uma consulta ativa ao provedor de CIOT para reconciliar o estado da operação\nna ANTT com a base da FleetPay.\n\nDiferente de `GET /fiscal/ciot/{ciot_uuid}` (que faz leitura local do rascunho sem bater na rede),\neste endpoint consulta o parceiro e atualiza protocolo, status, número e código verificador.\n",
"parameters": [
{
"name": "ciot_uuid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "UUID da operação de transporte."
}
],
"responses": {
"200": {
"description": "Operação reconciliada com sucesso.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RespostaCiot"
}
}
}
},
"202": {
"description": "Consulta transmitida ou em processamento no provedor.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RespostaCiot"
}
}
}
},
"401": {
"$ref": "#/components/responses/Erro401"
},
"403": {
"$ref": "#/components/responses/Erro403"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"description": "Ação conflitante com o estado atual da operação (`acao_conflitante`).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Erro"
}
}
}
},
"422": {
"description": "Regra de negócio ou CIOT não declarado (`ciot_nao_declarado`, `regra_de_negocio`).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Erro"
}
}
}
},
"503": {
"description": "Provedor de CIOT indisponível (`servico_indisponivel`).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Erro"
}
}
}
}
},
"x-fleetpay-scope": "fiscal",
"x-fleetpay-module": "fiscal-ciot",
"x-fleetpay-profiles": [
"gestor",
"agregado_empresarial",
"transportador_frotista"
],
"method": "POST",
"path": "/fiscal/ciot/{ciot_uuid}/consulta"
}