Skip to main content
POST
Create an allowance adjustment

Autorisierungen

X-API-KEY
string
header
erforderlich

Pfadparameter

member_id
string<uuid>
erforderlich
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Body

application/json
allowance_type_id
string<uuid>
erforderlich
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
amount
number
erforderlich

Adjustment amount (positive to add, negative to subtract). For day-based allowance types the value is in days; for hour-based allowance types the value is in MINUTES (e.g. 480 = 8 hours).

Erforderlicher Bereich: -100000 <= x <= 100000
date
string
erforderlich

Effective date of the adjustment in YYYY-MM-DD format

Pattern: ^\d{4}-\d{2}-\d{2}$
expiry_date
string | null

Optional. The LAST day (inclusive, YYYY-MM-DD) these days can still be used; from the day after, whatever is left of them is forfeited. To let them be used through 2026-08-31, send 2026-08-31. May equal date (granted and gone the same day). Only allowed for positive adjustments.

Pattern: ^\d{4}-\d{2}-\d{2}$
comment
string
Standard:""

Optional comment for audit trail (max 500 characters)

Maximum string length: 500

Antwort

Successful response

id
number
erforderlich