API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · travel_allowances

Travel Allowance Schema

Schema-ID
travel_allowance
Collection
travel_allowances
Permissions
  • Lezentravel_allowance_view
  • Aanmakentravel_allowance_create
  • Wijzigentravel_allowance_edit
  • Verwijderentravel_allowance_delete

Velden

Travel Allowance Schema

travel_allowances4 permissions

Schema for validating travel allowance / Fahrtkostenpauschale entities

namestringvereist

Allowance name (e.g. Zone 1 - Nahbereich)

1–200 tekens
distanceFromKmnumbervereist

Distance range start in km

≥ 0
distanceToKmnumbervereist

Distance range end in km

≥ 0
flatRateAmountstringvereist

Flat rate amount in EUR as decimal string

Pattern
includesTimebooleanoptioneel

Whether picking this zone also enables a separate travel-time flat rate (timeFlatRateAmount) alongside the distance flat rate

Default: false
timeFlatRateAmountstringoptioneel

Separate travel-time flat rate in EUR, applied when includesTime is true

Patternnullable
isActivebooleanoptioneel

Whether this travel allowance is active

Default: true
sortOrderintegeroptioneel

Display sort order

≥ 0Default: 0
appliesToAllCustomersbooleanoptioneel

Whether new trips of all customers (unless the customer defaults to FLAT_RATE) automatically use this allowance when their distance falls into its range

Default: false

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 + filterbaar
  • GET /api/v1/travel_allowances/<id> — Enkele entity
  • POST /api/v1/travel_allowances — Aanmaken
  • PATCH /api/v1/travel_allowances/<id> — Gedeeltelijke update
  • DELETE /api/v1/travel_allowances/<id> — Soft-delete
  • GET /api/v1/travel_allowances/<id>/timeline — Audit + activiteiten

Zoeken