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

Contingent Usage Schema

Schema-ID
contingent_usage
Collection
contingent_usages
Permissions
  • Lezencontingent_usage_view
  • Aanmakencontingent_usage_create
  • Wijzigencontingent_usage_edit
  • Verwijderencontingent_usage_delete
Relaties

Velden

Contingent Usage Schema

contingent_usages4 permissions

Schema for validating contingent usage entities

contractIduuidvereist→ contract

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).

contingentIduuidvereist

Associated contingent UUID

sourceTypestringvereist

Source of the entry. TIME_RECORD/TRIP/EXPENSE = automatischer Verbrauch, MANUAL = manueller Verbrauch, REFILL = manuelle oder automatische Aufladung (positive Saldo-Bewegung), EXPIRY = Verfall des ungenutzten Rests beim automatischen Periodenwechsel (ADR 0934, negative Saldo-Bewegung).

TIME_RECORDTRIPEXPENSEMANUALREFILLEXPIRY
sourceIduuidoptioneel

Source entity UUID

nullable
amountstringvereist

Usage amount as decimal string

Pattern
unitstringvereist

Usage unit

HOURSMINUTESEURTRIPS
convertedAmountstringoptioneel

Converted amount in contingent unit

Patternnullable
datedatevereist

Usage date (YYYY-MM-DD)

userIduuidoptioneel

User who performed the work

nullable
ticketIduuidoptioneel

Associated ticket UUID

nullable
descriptionstringoptioneel

Usage description

nullable
rateAppliedstringoptioneel

Rate applied for conversion

Patternnullable
isOveragebooleanvereist

Whether this usage exceeds the contingent limit

overageSurchargestringoptioneel

Overage surcharge amount

Patternnullable

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

Zoeken