Entidad · vehicle_costs
Vehicle Cost Schema
Campos
Vehicle Cost Schema
Schema for validating vehicle cost / Fahrzeugkosten entities
vehicleId
Reference to the vehicle
date
Date of the cost
costType
Cost type classification
Valores
FUELTOLLPARKINGREPAIRINSURANCELEASETAXTIREWASHOTHERamount
Cost amount in EUR as decimal string
Patrón
description
Cost description
máx. 1000 caracteresadmite null
fuelDetails
Details specific to fuel costs
admite null
liters
Liters fueled
≥ 0
pricePerLiter
Price per liter in EUR
Patrónadmite null
mileageKm
Mileage at time of fueling
≥ 0admite null
location
Fueling location / gas station
máx. 200 caracteresadmite null
fuelCardId
Optional reference to the fuel card used for this cost
admite null
receiptAttachmentId
Receipt attachment file ID
admite null
notes
Additional notes
máx. 2000 caracteresadmite null
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/vehicle_costs— Lista, paginada y filtrableGET /api/v1/vehicle_costs/<id>— Una entidadPOST /api/v1/vehicle_costs— CrearPATCH /api/v1/vehicle_costs/<id>— Actualización parcialDELETE /api/v1/vehicle_costs/<id>— Eliminación lógicaGET /api/v1/vehicle_costs/<id>/timeline— Auditoría y actividades