API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · vehicles

Vehicle Schema

ID du schéma
vehicle
Collection
vehicles
Autorisations
  • Lirevehicle_view
  • Créervehicle_create
  • Modifiervehicle_edit
  • Supprimervehicle_delete

Champs

Vehicle Schema

vehicles4 autorisations

Schema for validating vehicle / Fahrzeug entities

licensePlatestringfacultatif

Vehicle license plate number (Kennzeichen)

max. 20 caractèresnullable
vinstringfacultatif

Vehicle Identification Number (FIN)

max. 17 caractèresnullable
makestringobligatoire

Manufacturer / Hersteller

1–100 caractères
modelstringobligatoire

Vehicle model

1–100 caractères
yearintegerfacultatif

Year of manufacture

1900 – 2100nullable
colorstringfacultatif

Vehicle color

max. 50 caractèresnullable
displayNamestringfacultatif

Display name / Anzeigename

max. 200 caractèresnullable
internalIdstringfacultatif

Internal identifier (e.g. fleet number)

max. 100 caractèresnullable
additionalNumberstringfacultatif

Additional reference number

max. 100 caractèresnullable
vehicleTypestringfacultatif

Vehicle type classification

PKWTRANSPORTERLKWMOTORRADANHAENGEROTHER
Par défaut : "PKW"
acquisitionModestringfacultatif

How this vehicle entered the fleet: EXISTING (already on site/in use), PROCUREMENT (ordered, not yet delivered), VIRTUAL (no physical vehicle — used as a cost target for fleet-wide expenses)

EXISTINGPROCUREMENTVIRTUAL
Par défaut : "EXISTING"
fuelTypestringfacultatif

Fuel / drive type

BENZINDIESELELEKTROHYBRID_BENZINHYBRID_DIESELERDGASWASSERSTOFFOTHER
nullable
organizationstringfacultatif

Owning organization / Gesellschaft

max. 200 caractèresnullable
subsidiarystringfacultatif

Subsidiary / Niederlassung

max. 200 caractèresnullable
costCenterstringfacultatif

Cost center / Kostenstelle

max. 100 caractèresnullable
locationIdstringfacultatif

Reference to a location entity (Standort)

1–200 caractèresnullable
locationNamestringfacultatif

Denormalized location name for display

max. 200 caractèresnullable
internalOrderNumberstringfacultatif

Internal order number / Interne Auftragsnummer

max. 100 caractèresnullable
licenseNumberstringfacultatif

License number / Zulassungsnummer

max. 100 caractèresnullable
firstRegistrationDatedatefacultatif

Date of first registration / Erstzulassung

nullable
commissioningDatedatefacultatif

Date of commissioning / Inbetriebnahme

nullable
registrationCountrystringfacultatif

Country of registration / Zulassungsland

max. 100 caractèresnullable
licensePlateColorstringfacultatif

License plate color (e.g. standard, green, electric)

max. 50 caractèresnullable
interiorColorstringfacultatif

Interior color / Innenfarbe

max. 100 caractèresnullable
upholsteryColorstringfacultatif

Upholstery color / Polsterfarbe

max. 100 caractèresnullable
engineDisplacementCcmintegerfacultatif

Engine displacement in ccm / Hubraum

≥ 0nullable
powerKwnumberfacultatif

Engine power in kW / Leistung

≥ 0nullable
transmissionTypestringfacultatif

Transmission type / Getriebe

MANUALAUTOMATICDSGCVTOTHERnull
nullable
emissionStandardstringfacultatif

Emission standard / Abgasnorm

EURO_1EURO_2EURO_3EURO_4EURO_5EURO_6EURO_6DEURO_6D_TEMPEURO_7OTHERnull
nullable
co2EmissionGkmnumberfacultatif

CO2 emissions in g/km

≥ 0nullable
annualVehicleTaxnumberfacultatif

Annual vehicle tax in EUR / Kfz-Steuer

≥ 0nullable
annualVehicleTaxSourcestringfacultatif

Source of vehicle tax information

max. 100 caractèresnullable
grossListPricenumberfacultatif

Gross list price in EUR / Bruttolistenpreis

≥ 0nullable
batteryCapacityKwhnumberfacultatif

Battery capacity in kWh (electric/hybrid vehicles)

≥ 0nullable
consumptionCombinednumberfacultatif

Combined fuel/energy consumption

≥ 0nullable
consumptionCitynumberfacultatif

City fuel/energy consumption

≥ 0nullable
consumptionHighwaynumberfacultatif

Highway fuel/energy consumption

≥ 0nullable
consumptionUnitstringfacultatif

Consumption unit (e.g. l/100km, kWh/100km)

max. 50 caractèresnullable
curbWeightKgnumberfacultatif

Curb weight in kg / Leergewicht

≥ 0nullable
payloadKgnumberfacultatif

Payload in kg / Zuladung

≥ 0nullable
grossWeightKgnumberfacultatif

Gross vehicle weight in kg / Zulässiges Gesamtgewicht

≥ 0nullable
trainWeightKgnumberfacultatif

Train weight in kg / Zulässige Gesamtmasse des Zuges

≥ 0nullable
towingCapacityKgnumberfacultatif

Towing capacity in kg / Anhängelast

≥ 0nullable
standardEquipmentstring[]facultatif

Standard equipment list / Serienausstattung

Par défaut : []nullable
specialEquipmentstring[]facultatif

Special equipment list / Sonderausstattung

Par défaut : []nullable
tireStorageLocationstringfacultatif

Tire storage location / Reifenlagerort

max. 200 caractèresnullable
statusstringfacultatif

Current vehicle status

DRAFTACTIVEMAINTENANCEDECOMMISSIONEDRESERVED
Par défaut : "ACTIVE"
currentMileageKmnumberfacultatif

Current mileage in kilometers

≥ 0nullable
isPoolVehiclebooleanfacultatif

Whether this is a pool vehicle (available for reservation) or permanently assigned to an employee

Par défaut : false
poolGroupstringfacultatif

Optional pool group tag (tenant-defined vehicle pools replace this field for filtering)

nullable
assignedDriverIduuidfacultatif

Assigned driver user ID (relevant when isPoolVehicle=false)

nullable
assignedLocationIdstringfacultatif

Assigned company location identifier

max. 200 caractèresnullable
ownershipTypestringfacultatif

Vehicle ownership type

OWNEDLEASEDRENTED
Par défaut : "OWNED"
leaseDetailsobjectfacultatif
nullable
providerstringfacultatif

Leasing provider

max. 200 caractères
contractNumberstringfacultatif

Lease contract number

max. 100 caractèresnullable
startDatedatefacultatif

Lease start date

endDatedatefacultatif

Lease end date

nullable
monthlyCoststringfacultatif

Monthly lease cost in EUR

Motifnullable
totalLeasingKmintegerfacultatif

Total allowed kilometers over lease term

≥ 0nullable
residualValuestringfacultatif

Residual value at end of lease in EUR

Motifnullable
excessKmRatestringfacultatif

Cost per excess kilometer in EUR (Mehrkilometer)

Motifnullable
shortfallKmRatestringfacultatif

Credit per shortfall kilometer in EUR (Minderkilometer)

Motifnullable
depositAmountstringfacultatif

Leasing deposit / Sonderzahlung in EUR

Motifnullable
contractIduuidfacultatif

Reference to linked contract entity

nullable
insuranceobjectfacultatif
nullable
companystringfacultatif

Insurance company

max. 200 caractères
policyNumberstringfacultatif

Insurance policy number

max. 100 caractèresnullable
typestringfacultatif

Insurance type

HAFTPFLICHTTEILKASKOVOLLKASKO
validFromdatefacultatif

Insurance valid from date

validUntildatefacultatif

Insurance valid until date

nullable
registrationobjectfacultatif
nullable
registrationDatedatefacultatif

Vehicle registration date

nullable
nextHuDatedatefacultatif

Next Hauptuntersuchung (HU/TUV) date

nullable
nextAuDatedatefacultatif

Next Abgasuntersuchung (AU) date

nullable
emissionStickerstringfacultatif

Emission sticker type (Feinstaubplakette)

NONEGREENYELLOWRED
nullable
inspectionScheduleobjectfacultatif
nullable
lastInspectionDatedatefacultatif

Last inspection date

nullable
nextDueDatedatefacultatif

Next inspection due date

nullable
intervalKmintegerfacultatif

Inspection interval in kilometers

≥ 0nullable
intervalMonthsintegerfacultatif

Inspection interval in months

≥ 0nullable
serviceScheduleobjectfacultatif
nullable
lastServiceDatedatefacultatif

Last workshop inspection / service date

nullable
nextDueDatedatefacultatif

Next workshop inspection / service due date

nullable
intervalMonthsintegerfacultatif

Service interval in months (default 24 when empty)

1 – 120nullable
tiresobjectfacultatif
nullable
summerTiresobjectfacultatif
nullable
brandstringfacultatif
max. 100 caractèresnullable
sizestringfacultatif
max. 50 caractèresnullable
dotNumberstringfacultatif
max. 20 caractèresnullable
treadDepthMmnumberfacultatif
≥ 0nullable
storageLocationstringfacultatif
max. 200 caractèresnullable
winterTiresobjectfacultatif
nullable
brandstringfacultatif
max. 100 caractèresnullable
sizestringfacultatif
max. 50 caractèresnullable
dotNumberstringfacultatif
max. 20 caractèresnullable
treadDepthMmnumberfacultatif
≥ 0nullable
storageLocationstringfacultatif
max. 200 caractèresnullable
currentSetstringfacultatif

Currently mounted tire set

SUMMERWINTERALL_SEASON
nextChangeDatedatefacultatif

Next scheduled tire change date (YYYY-MM-DD)

nullable
ratePerKmstringfacultatif

Rate per kilometer in EUR (overrides global default)

Motifnullable
documentsobject[]facultatif
Par défaut : []nullable
typestringobligatoire

Document type

REGISTRATIONINSURANCELEASESERVICETUVOTHER
titlestringobligatoire

Document title

max. 200 caractères
attachmentIdstringobligatoire

Attachment file ID

uploadedAtdatetimefacultatif

Upload timestamp

nullable
sharePointFolderIdstringfacultatif

Cached SharePoint folder ID (Graph driveItem ID) for this vehicle

max. 200 caractèresnullable
notesstringfacultatif

Free-text notes

max. 5000 caractèresnullable
tagsstring[]facultatif

Tags for categorization

Par défaut : []

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/vehicles — Liste, paginée et filtrable
  • GET /api/v1/vehicles/<id> — Une entité
  • POST /api/v1/vehicles — Créer
  • PATCH /api/v1/vehicles/<id> — Mise à jour partielle
  • DELETE /api/v1/vehicles/<id> — Suppression logique
  • GET /api/v1/vehicles/<id>/timeline — Audit et activités

Recherche