Returns coverage and premium for a given loan amount under a license.
License UID (string)
Loan principal amount. Must be within the license's allowed range.
Optional. This field is required only when both license.isVariablePremium and license.isPremiumDefinedByClient are set to true. In this case, the premium must be defined by you as a percentage, and it must fall within the range specified by license.minimumPremium and license.maximumPremium.
Optional. Required when the license.isVariablePremium is true and license.isPremiumDefinedByClient is false. Provides date context for premium calculation.
Coverage and premium
Calculated coverage amount. For SURETY licenses, this is loanAmount * coveragePercentage; for FIRST_LOSS licenses, it equals the loanAmount.
Calculated premium value for the provided loan amount.
Percentage used to compute the premium. Derived from the license rate table or provided by the client when allowed.