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

Contingent Usage Schema

Schema ID
contingent_usage
Collection
contingent_usages
Permissions
  • Readcontingent_usage_view
  • Createcontingent_usage_create
  • Editcontingent_usage_edit
  • Deletecontingent_usage_delete
Relationships

Fields

Contingent Usage Schema

contingent_usages4 permissions

Schema for validating contingent usage entities

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

contingentIduuidrequired

Associated contingent UUID

sourceTypestringrequired

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
sourceIduuidoptional

Source entity UUID

nullable
amountstringrequired

Usage amount as decimal string

Pattern
unitstringrequired

Usage unit

HOURSMINUTESEURTRIPS
convertedAmountstringoptional

Converted amount in contingent unit

Patternnullable
datedaterequired

Usage date (YYYY-MM-DD)

userIduuidoptional

User who performed the work

nullable
ticketIduuidoptional

Associated ticket UUID

nullable
descriptionstringoptional

Usage description

nullable
rateAppliedstringoptional

Rate applied for conversion

Patternnullable
isOveragebooleanrequired

Whether this usage exceeds the contingent limit

overageSurchargestringoptional

Overage surcharge amount

Patternnullable

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/contingent_usages — List, paginated + filterable
  • GET /api/v1/contingent_usages/<id> — Single entity
  • POST /api/v1/contingent_usages — Create
  • PATCH /api/v1/contingent_usages/<id> — Partial update
  • DELETE /api/v1/contingent_usages/<id> — Soft delete
  • GET /api/v1/contingent_usages/<id>/timeline — Audit + activities

Search