API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · vehicle_contracts

Vehicle Contract Schema

Schema ID
vehicle_contract
Collection
vehicle_contracts
Permissions
  • Readvehicle_contract_view
  • Createvehicle_contract_create
  • Editvehicle_contract_edit
  • Deletevehicle_contract_delete

Fields

Vehicle Contract Schema

vehicle_contracts4 permissions

Schema for validating vehicle contract / Fahrzeugvertrag entities

vehicleIduuidrequired

Reference to the vehicle

contractTypestringrequired

Type of contract / Vertragsart

LEASINGINSURANCEMAINTENANCEFINANCINGRENTALSERVICEOTHER
contractNumberstringrequired

Contract number / Vertragsnummer

1–100 characters
providerstringrequired

Contract partner / Vertragspartner

1–200 characters
startDatedaterequired

Contract start date / Vertragsbeginn

endDatedateoptional

Contract end date / Vertragsende

nullable
monthlyCoststringoptional

Monthly cost in EUR / Monatliche Kosten

Patternnullable
totalCoststringoptional

Total contract value in EUR / Gesamtkosten

Patternnullable
paymentIntervalstringoptional

Payment interval / Zahlungsintervall

MONTHLYQUARTERLYSEMI_ANNUALANNUALONE_TIME
nullable
mileageLimitnumberoptional

Annual mileage limit in km (leasing) / Jährliche Kilometergrenze

≥ 0nullable
startMileageKmnumberoptional

Vehicle mileage at contract start / Kilometerstand bei Vertragsbeginn

≥ 0nullable
excessMileageCostPerKmstringoptional

Cost per excess km in EUR / Mehrkilometerkosten pro km

Patternnullable
depositAmountstringoptional

Deposit / Kaution in EUR

Patternnullable
noticePeriodDaysnumberoptional

Notice period in days / Kündigungsfrist in Tagen

≥ 0nullable
autoRenewalbooleanoptional

Auto-renewal / Automatische Verlängerung

Default: falsenullable
statusstringoptional

Contract status / Vertragsstatus

ACTIVEPENDINGEXPIREDCANCELLED
Default: "ACTIVE"
descriptionstringoptional

Contract description / Vertragsbeschreibung

max 2000 charactersnullable
attachmentIdsstring[]optional

Attached document IDs (contract PDFs, etc.)

Default: []
notesstringoptional

Additional notes / Bemerkungen

max 2000 charactersnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/vehicle_contracts — List, paginated + filterable
  • GET /api/v1/vehicle_contracts/<id> — Single entity
  • POST /api/v1/vehicle_contracts — Create
  • PATCH /api/v1/vehicle_contracts/<id> — Partial update
  • DELETE /api/v1/vehicle_contracts/<id> — Soft delete
  • GET /api/v1/vehicle_contracts/<id>/timeline — Audit + activities

Search