← Docs API Reference
Rating.
The rating engine is a pure function. Same input, same plan, same result. All arithmetic uses integer cents with banker's rounding at every intermediate step.
How It Works
- Decline triggers evaluate hard stops (loss ratio, years in business, experience mod)
- Loss cost lookup by LOB and state from versioned rate tables
- Exposure units calculated by basis (vehicle, payroll, revenue, property value)
- Base premium computed in integer cents
- 14-factor chain applied in fixed, versioned order
- Condition rules evaluated (AND-logic, data-driven)
- Minimum premium floor enforced per-LOB
- Expense loading applied (acquisition, G&A, profit margin, LAE)
Supported Lines
Commercial AutoGeneral LiabilityWorkers CompPropertyCyberMedical Stop-Loss
Rating Plans
Plans are version-controlled JSON objects containing base rates, factor tables, territory factors, class codes, fleet modifiers, cargo modifiers, expense loading, and underwriting rules. Plans are stored in the database and referenced by ID during rating.
Specialized Modules
APD (physical damage) and Cargo coverages have their own internal factor chains. The engine uses a specialized flag to prevent overlapping factors from being applied twice. Flat-rate coverages get the full chain; specialized coverages skip factors the module already handles.