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

Trip Schema

Schema-ID
trip
Collection
trips
Permissions
  • Lezentrip_view
  • Aanmakentrip_create
  • Wijzigentrip_edit
  • Verwijderentrip_delete

Velden

Trip Schema

trips4 permissions

Schema for validating trip entities

userIduuidoptioneel

User ID who created this trip entry

datedatevereist

Date of the trip (ISO date format)

statusstringvereist

Current status of the trip

PLANNEDIN_PROGRESSCOMPLETEDCANCELLED
Default: "PLANNED"
startLocationstringvereist

Trip start location

1–200 tekens
endLocationstringvereist

Trip end location

1–200 tekens
isRoundTripbooleanvereist

Whether this is a round trip

Default: false
distanceKmnumbervereist

Distance in kilometers

≥ 0
durationMinutesintegervereist

Trip duration in minutes

≥ 0
travelModestringvereist

Mode of transportation

CARPUBLIC_TRANSPORTFLIGHTTAXIBIKEWALK
vehicleInfostringoptioneel

Vehicle information (license plate, description)

max. 100 tekensnullable
departureAtdatetimeoptioneel

Departure time (ISO datetime)

nullable
arrivalAtdatetimeoptioneel

Arrival time (ISO datetime)

nullable
returnDepartureAtdatetimeoptioneel

Return departure time for round trips (ISO datetime)

nullable
returnArrivalAtdatetimeoptioneel

Return arrival time for round trips (ISO datetime)

nullable
distanceBillablebooleanvereist

Whether distance/mileage is billable

Default: true
timeBillablebooleanvereist

Whether travel time is billable

Default: true
ratePerKmstringvereist

Rate per kilometer in EUR as decimal string

PatternDefault: "0.30"
timeBillingModestringoptioneel

How travel time is billed when timeBillable=true

HOURLYFLAT_RATE
Default: "HOURLY"
timeRatePerHourstringoptioneel

Hourly rate for travel time in EUR (used when timeBillingMode=HOURLY)

PatternDefault: "0.00"
timeFlatRateAmountstringoptioneel

Flat-rate amount for travel time in EUR (used when timeBillingMode=FLAT_RATE)

PatternDefault: "0.00"
parkingCoststringoptioneel

Parking costs in EUR as decimal string

PatternDefault: "0.00"
tollCoststringoptioneel

Toll costs in EUR as decimal string

PatternDefault: "0.00"
otherCostsstringoptioneel

Other costs in EUR as decimal string

PatternDefault: "0.00"
totalCoststringoptioneel

Total computed cost in EUR as decimal string

PatternDefault: "0.00"
ticketIduuidoptioneel

Associated ticket UUID

nullable
projectIduuidoptioneel

Associated project UUID

nullable
partyIduuidoptioneel

Associated party/customer UUID

nullable
contractIduuidoptioneel

Associated contract UUID

nullable
timeRecordIduuidoptioneel

Linked time record UUID (optional)

nullable
billablebooleanvereist

Whether this trip is billable to the customer

Default: true
billingStatusstringvereist

Current billing status

OPENAPPROVEDRECORDEDINVOICEDTRANSFERRED
Default: "OPEN"
notesstringoptioneel

Trip notes

max. 1000 tekensnullable
tagsstring[]optioneel

Trip tags

Default: []

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

Zoeken