← HomeFleetPay / Schema

RetificarCiotInput

Structure preserved from the versioned API contract.

Technical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.

Provide at least one field to amend.

justificativastringOptional

Reason for CIOT amendment.

maxLength500
valor_fretenumber · floatOptional

New total freight value in BRL.

minimum0.01
data_fim_viagemstring · dateOptional

New expected trip end date (YYYY-MM-DD).

origem_destinoarrayOptional

Origin and destination segments of the operation.

minItems1
maxItems20
dados_cargaobjectOptional
Original JSON Definition (Portuguese Descriptions)
{
  "type": "object",
  "description": "Informe ao menos um dado para retificar.",
  "properties": {
    "justificativa": {
      "type": "string",
      "maxLength": 500,
      "description": "Motivo da retificação do CIOT."
    },
    "valor_frete": {
      "type": "number",
      "format": "float",
      "minimum": 0.01,
      "description": "Novo valor total do frete em reais."
    },
    "data_fim_viagem": {
      "type": "string",
      "format": "date",
      "description": "Nova data prevista para término da viagem (AAAA-MM-DD)."
    },
    "origem_destino": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "description": "Trechos de origem e destino da operação.",
      "items": {
        "type": "object",
        "required": [
          "origem",
          "destino"
        ],
        "properties": {
          "origem": {
            "type": "object",
            "required": [
              "codigo_municipio_origem"
            ],
            "properties": {
              "codigo_municipio_origem": {
                "type": "string",
                "pattern": "^\\d{7}$"
              }
            }
          },
          "destino": {
            "type": "object",
            "required": [
              "codigo_municipio_destino"
            ],
            "properties": {
              "codigo_municipio_destino": {
                "type": "string",
                "pattern": "^\\d{7}$"
              }
            }
          },
          "distancia_percorrida": {
            "type": "integer",
            "minimum": 1
          },
          "qtd_viagens": {
            "type": "integer",
            "minimum": 1,
            "maximum": 999
          }
        }
      }
    },
    "dados_carga": {
      "type": "object",
      "properties": {
        "codigo_natureza_carga": {
          "type": "string",
          "maxLength": 10
        },
        "peso_carga": {
          "type": "number",
          "format": "float",
          "minimum": 0.01
        },
        "codigo_tipo_carga": {
          "type": "integer",
          "minimum": 1,
          "maximum": 12,
          "description": "Código do tipo da carga (1 a 12)."
        }
      }
    }
  }
}