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

Vehicle Cost Schema

ID du schéma
vehicle_cost
Collection
vehicle_costs
Autorisations
  • Lirevehicle_cost_view
  • Créervehicle_cost_create
  • Modifiervehicle_cost_edit
  • Supprimervehicle_cost_delete

Champs

Vehicle Cost Schema

vehicle_costs4 autorisations

Schema for validating vehicle cost / Fahrzeugkosten entities

vehicleIduuidobligatoire

Reference to the vehicle

datedateobligatoire

Date of the cost

costTypestringobligatoire

Cost type classification

FUELTOLLPARKINGREPAIRINSURANCELEASETAXTIREWASHOTHER
amountstringobligatoire

Cost amount in EUR as decimal string

Motif
descriptionstringfacultatif

Cost description

max. 1000 caractèresnullable
fuelDetailsobjectfacultatif

Details specific to fuel costs

nullable
litersnumberfacultatif

Liters fueled

≥ 0
pricePerLiterstringfacultatif

Price per liter in EUR

Motifnullable
mileageKmnumberfacultatif

Mileage at time of fueling

≥ 0nullable
locationstringfacultatif

Fueling location / gas station

max. 200 caractèresnullable
fuelCardIduuidfacultatif

Optional reference to the fuel card used for this cost

nullable
receiptAttachmentIdstringfacultatif

Receipt attachment file ID

nullable
notesstringfacultatif

Additional notes

max. 2000 caractèresnullable

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 filtrable
  • GET /api/v1/vehicle_costs/<id> — Une entité
  • POST /api/v1/vehicle_costs — Créer
  • PATCH /api/v1/vehicle_costs/<id> — Mise à jour partielle
  • DELETE /api/v1/vehicle_costs/<id> — Suppression logique
  • GET /api/v1/vehicle_costs/<id>/timeline — Audit et activités

Recherche