API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · vehicle_costs

Vehicle Cost Schema

Schema-ID
vehicle_cost
Collection
vehicle_costs
Permissions
  • Lezenvehicle_cost_view
  • Aanmakenvehicle_cost_create
  • Wijzigenvehicle_cost_edit
  • Verwijderenvehicle_cost_delete

Velden

Vehicle Cost Schema

vehicle_costs4 permissions

Schema for validating vehicle cost / Fahrzeugkosten entities

vehicleIduuidvereist

Reference to the vehicle

datedatevereist

Date of the cost

costTypestringvereist

Cost type classification

FUELTOLLPARKINGREPAIRINSURANCELEASETAXTIREWASHOTHER
amountstringvereist

Cost amount in EUR as decimal string

Pattern
descriptionstringoptioneel

Cost description

max. 1000 tekensnullable
fuelDetailsobjectoptioneel

Details specific to fuel costs

nullable
litersnumberoptioneel

Liters fueled

≥ 0
pricePerLiterstringoptioneel

Price per liter in EUR

Patternnullable
mileageKmnumberoptioneel

Mileage at time of fueling

≥ 0nullable
locationstringoptioneel

Fueling location / gas station

max. 200 tekensnullable
fuelCardIduuidoptioneel

Optional reference to the fuel card used for this cost

nullable
receiptAttachmentIdstringoptioneel

Receipt attachment file ID

nullable
notesstringoptioneel

Additional notes

max. 2000 tekensnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/vehicle_costs — Lijst, gepagineerd + filterbaar
  • GET /api/v1/vehicle_costs/<id> — Enkele entity
  • POST /api/v1/vehicle_costs — Aanmaken
  • PATCH /api/v1/vehicle_costs/<id> — Gedeeltelijke update
  • DELETE /api/v1/vehicle_costs/<id> — Soft-delete
  • GET /api/v1/vehicle_costs/<id>/timeline — Audit + activiteiten

Zoeken