finalpay calculator computes a termination payout, combining current-period pay with prior-period and additional amounts (accrued balances, severance, and so on).
Pay codes
Final pay is driven by a list of pay codes, each typed by when it applies:
Each pay code carries rates and hours (regular, overtime, double time, vacation, sick, holiday), plus optional
tipAmount, severanceAmount, and an override flag to use custom overtime/double-time rates instead of the standard 1.5×/2×. See the full field list in Object model and default properties.
Request
POST tofinalpay with the wage/tax inputs and a payCodes array. includePrior defaults to true, so prior pay codes are included in the calculation unless you set it false.

