← InicioFleetPay / Schema

DriverFiscalInput

Estructura preservada del contrato versionado de la API.

Las descripciones técnicas se traducen del contrato versionado. Se conservan los identificadores y el JSON originales; se omiten los ejemplos de datos.

Actualización parcial; envía al menos una propiedad.

cnh_numberstring | nullOpcional
pattern"^\\d{11}$"
cnh_categorystring | nullOpcional
"A" · "B" · "C" · "D" · "E" · "AB" · "AC" · "AD" · "AE"
cnh_statestring | nullOpcional
minLength2
maxLength2
cnh_issued_atstring | null · dateOpcional
cnh_valid_untilstring | null · dateOpcional
rg_numberstring | nullOpcional
maxLength20
rg_issuerstring | nullOpcional
maxLength20
rg_statestring | nullOpcional
minLength2
maxLength2
father_namestring | nullOpcional
maxLength120
mother_namestring | nullOpcional
maxLength120
Definición JSON Original (Descripciones en Portugués)
{
  "type": "object",
  "minProperties": 1,
  "description": "Atualização parcial; envie ao menos uma propriedade.",
  "properties": {
    "cnh_number": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d{11}$"
    },
    "cnh_category": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "A",
        "B",
        "C",
        "D",
        "E",
        "AB",
        "AC",
        "AD",
        "AE"
      ]
    },
    "cnh_state": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 2,
      "maxLength": 2
    },
    "cnh_issued_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "cnh_valid_until": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "rg_number": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 20
    },
    "rg_issuer": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 20
    },
    "rg_state": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 2,
      "maxLength": 2
    },
    "father_name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 120
    },
    "mother_name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 120
    }
  }
}