← InícioFleetPay / Schema

Vehicle

Estrutura preservada do contrato versionado da API.

Descrições técnicas preservadas do contrato versionado. Exemplos de dados foram omitidos da cópia pública.

idintegerObrigatório
minimum1
platestringObrigatório
plate_statestring | nullObrigatório
renavamstring | nullObrigatório
owner_typestringObrigatório
"own" · "third"
owner_documentstring | nullObrigatório
owner_namestring | nullObrigatório
owner_rntrcstring | nullObrigatório
Definição JSON Completa
{
  "type": "object",
  "required": [
    "id",
    "plate",
    "plate_state",
    "renavam",
    "owner_type",
    "owner_document",
    "owner_name",
    "owner_rntrc",
    "fiscal"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "minimum": 1
    },
    "plate": {
      "type": "string"
    },
    "plate_state": {
      "type": [
        "string",
        "null"
      ]
    },
    "renavam": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner_type": {
      "type": "string",
      "enum": [
        "own",
        "third"
      ]
    },
    "owner_document": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner_rntrc": {
      "type": [
        "string",
        "null"
      ]
    },
    "fiscal": {
      "$ref": "#/components/schemas/VehicleFiscalData"
    }
  }
}