Skip to main content
The API lets you build your own UI while CBS does the math. The pattern is discover the fields → render your form → POST for results.

1. Get the field definitions

GET the calculator with format=fields to receive the input fields, each with a name, label, default value, validation regex, and help text, so you can render a form dynamically:
See Request and response structure for the model vs fields shapes.

2. POST the inputs

Send the collected values to the calculator endpoint:

3. Render the results

The response content holds grossPay, federal, fica (Social Security), medicare, state, netPay, and any voluntaryDeductions. Map those into your UI. Required fields are grossPay, grossPayYTD, federalAllowances, and additionalFederalWithholding; send state for a meaningful result. For every field, see Object model and default properties; for per-state inputs, see State field reference.