Travel Allowance Schema
Campos
Travel Allowance Schema
Schema for validating travel allowance / Fahrtkostenpauschale entities
name
Allowance name (e.g. Zone 1 - Nahbereich)
distanceFromKm
Distance range start in km
distanceToKm
Distance range end in km
flatRateAmount
Flat rate amount in EUR as decimal string
includesTime
Whether picking this zone also enables a separate travel-time flat rate (timeFlatRateAmount) alongside the distance flat rate
timeFlatRateAmount
Separate travel-time flat rate in EUR, applied when includesTime is true
isActive
Whether this travel allowance is active
sortOrder
Display sort order
appliesToAllCustomers
Whether new trips of all customers (unless the customer defaults to FLAT_RATE) automatically use this allowance when their distance falls into its range
Ningún campo coincide con el filtro.
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/travel_allowances— Lista, paginada y filtrableGET /api/v1/travel_allowances/<id>— Una entidadPOST /api/v1/travel_allowances— CrearPATCH /api/v1/travel_allowances/<id>— Actualización parcialDELETE /api/v1/travel_allowances/<id>— Eliminación lógicaGET /api/v1/travel_allowances/<id>/timeline— Auditoría y actividades