Entité · vehicle_costs
Vehicle Cost Schema
Champs
Vehicle Cost Schema
Schema for validating vehicle cost / Fahrzeugkosten entities
vehicleId
Reference to the vehicle
date
Date of the cost
costType
Cost type classification
Valeurs
FUELTOLLPARKINGREPAIRINSURANCELEASETAXTIREWASHOTHERamount
Cost amount in EUR as decimal string
Motif
description
Cost description
max. 1000 caractèresnullable
fuelDetails
Details specific to fuel costs
nullable
liters
Liters fueled
≥ 0
pricePerLiter
Price per liter in EUR
Motifnullable
mileageKm
Mileage at time of fueling
≥ 0nullable
location
Fueling location / gas station
max. 200 caractèresnullable
fuelCardId
Optional reference to the fuel card used for this cost
nullable
receiptAttachmentId
Receipt attachment file ID
nullable
notes
Additional notes
max. 2000 caractèresnullable
Aucun champ ne correspond au filtre.
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/vehicle_costs— Liste, paginée et filtrableGET /api/v1/vehicle_costs/<id>— Une entitéPOST /api/v1/vehicle_costs— CréerPATCH /api/v1/vehicle_costs/<id>— Mise à jour partielleDELETE /api/v1/vehicle_costs/<id>— Suppression logiqueGET /api/v1/vehicle_costs/<id>/timeline— Audit et activités