Travel Allowance Schema
Velden
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
Geen velden komen overeen met het filter.
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/travel_allowances— Lijst, gepagineerd + filterbaarGET /api/v1/travel_allowances/<id>— Enkele entityPOST /api/v1/travel_allowances— AanmakenPATCH /api/v1/travel_allowances/<id>— Gedeeltelijke updateDELETE /api/v1/travel_allowances/<id>— Soft-deleteGET /api/v1/travel_allowances/<id>/timeline— Audit + activiteiten