PAW state minimums: new Standard vs the API
The new Standard widget (5.8.0, local build from paw/v5/dist) above what the lowest payment amount link API (POST /lowest-payment-amount-link, headway) returns today for the same estimate and borrower state. Same table as the Standard section of the state minimums test page. The API returns a payment and a /calculator link, so this page is Page only: the widget runs as kind="page" and its Learn more opens the calculator, never a popup.
The API card is drawn the way API partners draw it, with the Quotes R Us markup and the rules it uses from af-standard-style-api.min.css, copied into this page (that file is served on qa only) (“Payment options from $X /mo. Click to Start”). When the API returns no payment (value: null) or an error, the card shows the fallback link. Under each card: the payment, the line under it, and the amount and path in the link. Red rows differ from the other side. The API can price on different rates than the widget’s rates/current file, so a payment can differ by a dollar or two even where the amount matches.
“API gets” sets the request: the raw estimate, or the estimate clamped to $1,000–$100,000 as the API docs tell partners to send it. The API environment follows the host (localhost, dev and qa call QA, uat calls UAT, anything else production); ?api=qa, uat or prod overrides it, and the widget links to the matching loan app. Credentials are the Quotes R Us demo ones (../quotes-r-us/api-credentials.json). Serve with npm run start -- --port 8002 in paw/v5 after npm run build. No widget activity logs are sent; the API calls are real.
Standard widget vs the API
Light theme, Page. The widget prices on the larger of the estimate and the state minimum, caps at $100,000, shows the line and puts the priced-on amount in its calculator link. Today’s API (v1) returns no payment below a state floor, a 422 under $1,000, and prices over-the-cap totals on $100,000 with no line.
