DriveB

03. Veículos

O módulo de Veículos permite o gerenciamento completo da frota integrada à plataforma. Aqui você pode cadastrar, atualizar e consultar informações dos veículos, além de acessar seu histórico de manutenção.


Funcionalidades Principais

Marcas Disponíveis

Endpoint: api/brands

Método: GET

Response:

[
{
"id": 0,
"name": "string"
}
]

Modelos Disponíveis

Endpoint: api/models/filters?brandId={branbdId}&name={iniciaisModelo}

Método: GET

Request payload - query parameters:

{
"brandId": 0,
"name": "string",
"motor": "string",
"version": "string",
"initialYear": 0,
"endYear": 0,
"year": 0,
"countryId": 0,
"active": true,
"haveMaintenancePlan": true,
"havePriceTable": true,
"multipleCountries": [
"string"
]
}

Response:

[
{
"id": 0,
"motor": "string",
"version": "string",
"initialYear": 0,
"endYear": 0,
"brandId": 0,
"brandName": "string",
"description": "string",
"countryId": 0,
"countryName": "string",
"displayName": "string",
"haveMaintenancePlan": true,
"havePriceTable": true,
"category": "RIDE"
}
]

Registar Novo Veículo


Endpoint: api/vehicles

Método: POST

Request payload:

{
"id": 0,
"modelYear": 0,
"chassisNumber": "string",
"licensePlate": "string",
"initialMileage": 0.1,
"firstMileage": 0.1,
"vtvExpiration": "string",
"modelId": 0,
"blockId": 0,
"clientId": 0,
"cityId": 0,
"city": {
"id": 0,
"name": "string",
"state": {
"id": 0,
"name": "string",
"country": {
"id": 0,
"name": "string",
"code": "string",
"currency": {
"id": 0,
"code": "string"
},
"countryPhoneCode": {
"id": 0,
"code": "string"
},
"locale": {
"id": 0,
"code": "string",
"description": "string"
}
}
}
},
"district": "string",
"registrationDate": "2025-08-27T06:38:53.083Z",
"brandId": 0,
"model": {
"id": 0,
"motor": "string",
"version": "string",
"initialYear": 0,
"endYear": 0,
"brandId": 0,
"brandName": "string",
"description": "string",
"countryId": 0,
"countryName": "string",
"displayName": "string",
"haveMaintenancePlan": true,
"havePriceTable": true,
"category": "RIDE"
},
"block": {
"id": 0,
"blockCode": "string",
"tag": "string",
"parentId": 0,
"parent": {
"id": 0,
"clientCode": "string",
"sapId": "string",
"corporateName": "string",
"tradingName": "string",
"taxIdentifier": "string",
"isParent": true,
"clientType": "DEFAULT"
},
"address": {
"id": 0,
"street": "string",
"zipCode": "string",
"number": "string",
"district": "string",
"complement": "string",
"cityId": 0,
"city": {
"id": 0,
"name": "string",
"state": {
"id": 0,
"name": "string",
"country": {
"id": 0,
"name": "string",
"code": "string",
"currency": {
"id": 0,
"code": "string"
},
"countryPhoneCode": {
"id": 0,
"code": "string"
},
"locale": {
"id": 0,
"code": "string",
"description": "string"
}
}
}
},
"cityName": "string",
"stateName": "string",
"countryName": "string"
}
},
"client": {
"id": 0,
"clientCode": "string",
"sapId": "string",
"corporateName": "string",
"tradingName": "string",
"taxIdentifier": "string",
"isParent": true,
"clientType": "DEFAULT"
},
"businessArea": 0,
"businessLine": 0,
"marketSegment": 0,
"useClass": 0,
"expenseGroup": "string",
"costCenter": "string",
"version": 0,
"telemetryCapable": true,
"documentDate": "2025-08-27",
"kbaNumber": "string",
"driversName": [
"string"
],
"lastMileageUpdated": 0,
"displayModelBrand": "string",
"notificationDriverIds": [
0
],
"notificationClientId": 0,
"notificationCarWorkshopId": 0
}