POST
Dry-Run Wage Type Computation

Authorizations

Authorization
string
header
required

Get token from Auth0 and paste it here

Path Parameters

organization_id
string
required
wage_type_id
string
required

Body

application/json

A candidate computation for the type, checked as a write dated valid_from would be, and run against context when one is sent.

computation
FixedSpec · object
required
valid_from
string<date>
required

The date the candidate would take effect

depends_on
string[]

Codes whose amounts the computation reads

precision
integer | null
default:2

Decimal places the result is rounded to; null leaves rounding to the computation itself

Required range: 0 <= x <= 6
rounding
enum<string>
default:HALF_UP

The eight rounding modes from Python's decimal module.

A closed mathematical set: every value maps 1:1 to a decimal.ROUND_* constant, exposed via :attr:decimal_mode. Exposing all eight once keeps the set stable — a country needing e.g. HALF_DOWN never forces a library release. (Nearest-multiple rounding — Swiss 0.05, Swedish öre — is not a decimal mode and needs a richer Round, not a new member.)

Available options:
HALF_UP,
HALF_DOWN,
HALF_EVEN,
UP,
DOWN,
CEILING,
FLOOR,
ZERO_FIVE_UP
context
WageTypeDryRunContext · object | null

The mock payrun a dry run executes against.

Response

Successful Response

ok
boolean
required
read-only

Derived, so no early return can report success alongside errors.

errors
string[]
explanation
string | null
result
string | null

Present when the request carried a context.