> ## Documentation Index
> Fetch the complete documentation index at: https://docs.symmetry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Calculate a final paycheck

> Handle termination pay with current and prior pay-period data using the final pay calculator.

The `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:

| `payCodes[n][type]` | Meaning                                           |
| ------------------- | ------------------------------------------------- |
| `CURRENT`           | Current pay-period earnings.                      |
| `PRIOR`             | A prior pay period (include with `includePrior`). |
| `ADDITIONAL`        | Extra amounts such as severance.                  |

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](/cbs/api/object-model).

## Request

POST to `finalpay` 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`.

```bash theme={null}
curl -X POST https://calculators.symmetry.com/api/calculators/finalpay \
  -H "pcc-api-key: yourKey" -H "Content-Type: application/json" \
  -d '{"state":"AZ","payFrequency":"WEEKLY","grossPayYTD":0,"federalFilingStatusType":"SINGLE","federalAllowances":0,"additionalFederalWithholding":0,"includePrior":true,"payCodes":[{"type":"CURRENT","rate":25,"hours":40}]}'
```

The response returns the combined gross, taxes, and net for the final check.
