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:
model vs fields shapes.
2. POST the inputs
Send the collected values to the calculator endpoint:3. Render the results
The responsecontent 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.
