API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · vehicle_costs

Vehicle Cost Schema

Schema ID
vehicle_cost
Collection
vehicle_costs
Permissions
  • Readvehicle_cost_view
  • Createvehicle_cost_create
  • Editvehicle_cost_edit
  • Deletevehicle_cost_delete

Fields

Vehicle Cost Schema

vehicle_costs4 permissions

Schema for validating vehicle cost / Fahrzeugkosten entities

vehicleIduuidrequired

Reference to the vehicle

datedaterequired

Date of the cost

costTypestringrequired

Cost type classification

FUELTOLLPARKINGREPAIRINSURANCELEASETAXTIREWASHOTHER
amountstringrequired

Cost amount in EUR as decimal string

Pattern
descriptionstringoptional

Cost description

max 1000 charactersnullable
fuelDetailsobjectoptional

Details specific to fuel costs

nullable
litersnumberoptional

Liters fueled

≥ 0
pricePerLiterstringoptional

Price per liter in EUR

Patternnullable
mileageKmnumberoptional

Mileage at time of fueling

≥ 0nullable
locationstringoptional

Fueling location / gas station

max 200 charactersnullable
fuelCardIduuidoptional

Optional reference to the fuel card used for this cost

nullable
receiptAttachmentIdstringoptional

Receipt attachment file ID

nullable
notesstringoptional

Additional notes

max 2000 charactersnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/vehicle_costs — List, paginated + filterable
  • GET /api/v1/vehicle_costs/<id> — Single entity
  • POST /api/v1/vehicle_costs — Create
  • PATCH /api/v1/vehicle_costs/<id> — Partial update
  • DELETE /api/v1/vehicle_costs/<id> — Soft delete
  • GET /api/v1/vehicle_costs/<id>/timeline — Audit + activities

Search