Skip to main content
Get the full calculated breakdown of one compensation on a statement. A compensation is one commission line of a statement. get_statement returns each line as a minimal row; this returns the whole displayable variable breakdown behind its amount — every variable with its value (and, when an admin overrode it, the value_before_override) — plus the compensation’s plan, periodicity, ranking and its scopes (drill into their frozen records with list_statement_records). Hidden intermediate variables and the calculation rules themselves (formulas, tiers) are not exposed. Identify the statement by statement_id (from list_statements / get_statement), then the line within it by compensation_id. A statement or compensation you can’t access reads exactly like one that doesn’t exist, so the error never reveals anything outside your scope.

Parameters

Body

string
required
Id of the statement the compensation sits on — the id list_statements or get_statement returns.
string
required
Id of the compensation to open, from the compensation_id of the line in get_statement’s compensations.

Response

Body

string
string
object
string
number
string
One of: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYR, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LVL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RMB, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, STD, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYI, UYU, UZS, VEF, VND, VUV, WON, WST, XAF, XAG, XAU, XCD, XOF, XPD, XPF, XPT, XSU, YER, ZAR, ZMK, ZWL.
boolean
boolean
True when the compensation or its line errored.
boolean
boolean
boolean
string
How often the compensation is calculated (e.g. EACH_MONTH, EACH_QUARTER, EACH_YEAR).
string
object
object[]
The compensation’s scopes (its calculation perimeters). Drill into a scope’s frozen records with list_statement_records.
object[]
Every displayable variable of the compensation with its value — the full calculated breakdown behind the amount. Hidden (intermediate) variables are excluded.