← InicioFleetPay / Schema

Vehicle

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.

idintegerObligatorio
minimum1
platestringObligatorio
plate_statestring | nullObligatorio
renavamstring | nullObligatorio
owner_typestringObligatorio
"own" · "third"
owner_documentstring | nullObligatorio
owner_namestring | nullObligatorio
owner_rntrcstring | nullObligatorio
Definición JSON Original (Descripciones en Portugués)
{
  "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"
    }
  }
}