Get Computation
ETag is the edition read: send it as If-Match on the next PUT.
Authorizations
Get token from Auth0 and paste it here
Query Parameters
Valid-time date to read, past or future. Defaults to today, or to the first upcoming edition when nothing is valid yet.
Response
Successful Response
- FixedSpec
- PercentOfSpec
- PercentOfParamSpec
- LookupParamSpec
- WageTypeRefSpec
- TieredSpec
- CappedSpec
- ConditionalSpec
- SumSpec
- SubtractSpec
- MultiplySpec
- DivideSpec
- MinSpec
- MaxSpec
- RoundSpec
Who wrote the edition: the acting user (X-Acting-User, else the access credential), system for our own writes, or <authority>:<notice> for a write on an authority's behalf, e.g. hmrc:P6.
Codes whose amounts the computation reads
Decimal places the result is rounded to; null leaves rounding to the computation itself
0 <= x <= 6The 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.)
HALF_UP, HALF_DOWN, HALF_EVEN, UP, DOWN, CEILING, FLOOR, ZERO_FIVE_UP Paths into computation that a write may not change; * locks the whole computation and depends_on