Contingent Usage Schema
Felder
Contingent Usage Schema
Schema for validating contingent usage entities
contractId
Associated contract UUID. Stays set even when the contract is soft-deleted — the reference remains intact for audit/reporting; the contract is just hidden from `deletedAt: null` listings (relationship policy `onDelete: ignore`, ADR 0064 follow-up).
contingentId
Associated contingent UUID
sourceType
Source of the entry. TIME_RECORD/TRIP/EXPENSE = automatischer Verbrauch, MANUAL = manueller Verbrauch, REFILL = manuelle oder automatische Aufladung (positive Saldo-Bewegung).
TIME_RECORDTRIPEXPENSEMANUALREFILLsourceId
Source entity UUID
amount
Usage amount as decimal string
unit
Usage unit
HOURSMINUTESEURTRIPSconvertedAmount
Converted amount in contingent unit
date
Usage date (YYYY-MM-DD)
userId
User who performed the work
ticketId
Associated ticket UUID
description
Usage description
rateApplied
Rate applied for conversion
isOverage
Whether this usage exceeds the contingent limit
overageSurcharge
Overage surcharge amount
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/contingent_usages— Liste, paginiert + filterbarGET /api/v1/contingent_usages/<id>— Einzelne EntityPOST /api/v1/contingent_usages— AnlegenPATCH /api/v1/contingent_usages/<id>— Teil-UpdateDELETE /api/v1/contingent_usages/<id>— Soft-DeleteGET /api/v1/contingent_usages/<id>/timeline— Audit + Aktivitäten