API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · vehicle_contracts

Vehicle Contract Schema

ID du schéma
vehicle_contract
Collection
vehicle_contracts
Autorisations
  • Lirevehicle_contract_view
  • Créervehicle_contract_create
  • Modifiervehicle_contract_edit
  • Supprimervehicle_contract_delete

Champs

Vehicle Contract Schema

vehicle_contracts4 autorisations

Schema for validating vehicle contract / Fahrzeugvertrag entities

vehicleIduuidobligatoire

Reference to the vehicle

contractTypestringobligatoire

Type of contract / Vertragsart

LEASINGINSURANCEMAINTENANCEFINANCINGRENTALSERVICEOTHER
contractNumberstringobligatoire

Contract number / Vertragsnummer

1–100 caractères
providerstringobligatoire

Contract partner / Vertragspartner

1–200 caractères
startDatedateobligatoire

Contract start date / Vertragsbeginn

endDatedatefacultatif

Contract end date / Vertragsende

nullable
monthlyCoststringfacultatif

Monthly cost in EUR / Monatliche Kosten

Motifnullable
totalCoststringfacultatif

Total contract value in EUR / Gesamtkosten

Motifnullable
paymentIntervalstringfacultatif

Payment interval / Zahlungsintervall

MONTHLYQUARTERLYSEMI_ANNUALANNUALONE_TIME
nullable
mileageLimitnumberfacultatif

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

≥ 0nullable
startMileageKmnumberfacultatif

Vehicle mileage at contract start / Kilometerstand bei Vertragsbeginn

≥ 0nullable
excessMileageCostPerKmstringfacultatif

Cost per excess km in EUR / Mehrkilometerkosten pro km

Motifnullable
depositAmountstringfacultatif

Deposit / Kaution in EUR

Motifnullable
noticePeriodDaysnumberfacultatif

Notice period in days / Kündigungsfrist in Tagen

≥ 0nullable
autoRenewalbooleanfacultatif

Auto-renewal / Automatische Verlängerung

Par défaut : falsenullable
statusstringfacultatif

Contract status / Vertragsstatus

ACTIVEPENDINGEXPIREDCANCELLED
Par défaut : "ACTIVE"
descriptionstringfacultatif

Contract description / Vertragsbeschreibung

max. 2000 caractèresnullable
attachmentIdsstring[]facultatif

Attached document IDs (contract PDFs, etc.)

Par défaut : []
notesstringfacultatif

Additional notes / Bemerkungen

max. 2000 caractèresnullable

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/vehicle_contracts — Liste, paginée et filtrable
  • GET /api/v1/vehicle_contracts/<id> — Une entité
  • POST /api/v1/vehicle_contracts — Créer
  • PATCH /api/v1/vehicle_contracts/<id> — Mise à jour partielle
  • DELETE /api/v1/vehicle_contracts/<id> — Suppression logique
  • GET /api/v1/vehicle_contracts/<id>/timeline — Audit et activités

Recherche