Travel Allowance Schema
Champs
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
Aucun champ ne correspond au filtre.
Endpoints standard
Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :
GET /api/v1/travel_allowances— Liste, paginée et filtrableGET /api/v1/travel_allowances/<id>— Une entitéPOST /api/v1/travel_allowances— CréerPATCH /api/v1/travel_allowances/<id>— Mise à jour partielleDELETE /api/v1/travel_allowances/<id>— Suppression logiqueGET /api/v1/travel_allowances/<id>/timeline— Audit et activités