API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen
Entity · vehicle_costs

Vehicle Cost Schema

Schema-ID
vehicle_cost
Collection
vehicle_costs
Permissions
  • Lesenvehicle_cost_view
  • Anlegenvehicle_cost_create
  • Ändernvehicle_cost_edit
  • Löschenvehicle_cost_delete

Felder

Vehicle Cost Schema

vehicle_costs4 Permissions

Schema for validating vehicle cost / Fahrzeugkosten entities

vehicleIduuiderforderlich

Reference to the vehicle

datedateerforderlich

Date of the cost

costTypestringerforderlich

Cost type classification

FUELTOLLPARKINGREPAIRINSURANCELEASETAXTIREWASHOTHER
amountstringerforderlich

Cost amount in EUR as decimal string

Pattern
descriptionstringoptional

Cost description

max 1000 Zeichennullable
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 Zeichennullable
fuelCardIduuidoptional

Optional reference to the fuel card used for this cost

nullable
receiptAttachmentIdstringoptional

Receipt attachment file ID

nullable
notesstringoptional

Additional notes

max 2000 Zeichennullable

Standard-Endpoints

Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:

  • GET /api/v1/vehicle_costs — Liste, paginiert + filterbar
  • GET /api/v1/vehicle_costs/<id> — Einzelne Entity
  • POST /api/v1/vehicle_costs — Anlegen
  • PATCH /api/v1/vehicle_costs/<id> — Teil-Update
  • DELETE /api/v1/vehicle_costs/<id> — Soft-Delete
  • GET /api/v1/vehicle_costs/<id>/timeline — Audit + Aktivitäten

Suche