API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · vehicle_costs

Vehicle Cost Schema

ID del esquema
vehicle_cost
Colección
vehicle_costs
Permisos
  • Leervehicle_cost_view
  • Crearvehicle_cost_create
  • Modificarvehicle_cost_edit
  • Eliminarvehicle_cost_delete

Campos

Vehicle Cost Schema

vehicle_costs4 permisos

Schema for validating vehicle cost / Fahrzeugkosten entities

vehicleIduuidobligatorio

Reference to the vehicle

datedateobligatorio

Date of the cost

costTypestringobligatorio

Cost type classification

FUELTOLLPARKINGREPAIRINSURANCELEASETAXTIREWASHOTHER
amountstringobligatorio

Cost amount in EUR as decimal string

Patrón
descriptionstringopcional

Cost description

máx. 1000 caracteresadmite null
fuelDetailsobjectopcional

Details specific to fuel costs

admite null
litersnumberopcional

Liters fueled

≥ 0
pricePerLiterstringopcional

Price per liter in EUR

Patrónadmite null
mileageKmnumberopcional

Mileage at time of fueling

≥ 0admite null
locationstringopcional

Fueling location / gas station

máx. 200 caracteresadmite null
fuelCardIduuidopcional

Optional reference to the fuel card used for this cost

admite null
receiptAttachmentIdstringopcional

Receipt attachment file ID

admite null
notesstringopcional

Additional notes

máx. 2000 caracteresadmite null

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 filtrable
  • GET /api/v1/vehicle_costs/<id> — Una entidad
  • POST /api/v1/vehicle_costs — Crear
  • PATCH /api/v1/vehicle_costs/<id> — Actualización parcial
  • DELETE /api/v1/vehicle_costs/<id> — Eliminación lógica
  • GET /api/v1/vehicle_costs/<id>/timeline — Auditoría y actividades

Búsqueda