Skip to content

Policy Finance

Retrieve a billing comparison for a quote or policy event, with before/after premiums, coverage, tax, and fee changes.

Endpoint#

HTTPPOST
POST https://api.{ENV}.dais.com/ioi/v3/policy/finance

Request#

cURL
curl --location --request POST 'https://api.{ENV}.dais.com/ioi/v3/policy/finance' \
--header 'Authorization: Basic <Base64-encoded API key and secret>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "quoteId": "<UUID of the quote request ID>"
}'
PropertyTypeDescription
quoteIdUUIDQuote to evaluate. Takes precedence when both quoteId and eventId are supplied.
eventIdUUIDPolicy event from which to resolve the quote when quoteId is omitted.
endorsementConfigIdUUIDOptional endorsement configuration identifier.

Provide a quoteId or an eventId associated with a quote. A policyId is not a supported request field.

Response#

When a comparison is available, the response contains comparison totals, line items, and before/after policy segments. This abridged example shows totals and line items:

JSON
{
  "totalBeforeCoverages": 5250.0,
  "totalBeforeTaxes": 262.5,
  "totalBeforeFees": 50.0,
  "totalAfterCoverages": 5500.0,
  "totalAfterTaxes": 275.0,
  "totalAfterFees": 50.0,
  "totalCoverageChangeAmount": 250.0,
  "totalTaxesChangeAmount": 12.5,
  "totalFeesChangeAmount": 0.0,
  "totalBeforePremium": 5562.5,
  "totalAfterPremium": 5825.0,
  "totalChangeAmount": 262.5,
  "coverages": [
    {
      "label": "<Label>",
      "beforePremium": 5250.0,
      "afterPremium": 5500.0,
      "changeAmount": 250.0
    }
  ],
  "taxes": [
    {
      "label": "<Label>",
      "beforePremium": 262.5,
      "afterPremium": 275.0,
      "changeAmount": 12.5
    }
  ],
  "fees": [
    {
      "label": "<Label>",
      "beforePremium": 50.0,
      "afterPremium": 50.0,
      "changeAmount": 0.0
    }
  ],
  "effectiveDate": "03/01/26",
  "sequenceNumber": 1
}

Response Fields#

FieldTypeDescription
beforeSegmentsarrayPolicy segments before the change.
afterSegmentsarrayPolicy segments after the change.
totalBeforeCoveragesnumberCoverage total before the change.
totalBeforeTaxesnumberTax total before the change.
totalBeforeFeesnumberFee total before the change.
totalAfterCoveragesnumberCoverage total after the change.
totalAfterTaxesnumberTax total after the change.
totalAfterFeesnumberFee total after the change.
totalCoverageChangeAmountnumberChange in coverage total.
totalTaxesChangeAmountnumberChange in tax total.
totalFeesChangeAmountnumberChange in fee total.
totalBeforePremiumnumberTotal premium before the change, rounded to two decimal places.
totalAfterPremiumnumberTotal premium after the change, rounded to two decimal places.
totalChangeAmountnumberTotal premium change, rounded to two decimal places.
coveragesarrayCoverage comparison items.
taxesarrayTax comparison items.
feesarrayFee comparison items.
effectiveDatestring (date)Change effective date, formatted as MM/dd/yy.
sequenceNumberintegerEvent sequence number.

Each item in coverages, taxes, and fees has label (string), beforePremium (number), afterPremium (number), and changeAmount (number).

Policy Segments#

Common fields on each segment in beforeSegments and afterSegments include:

FieldTypeDescription
startDate, endDatestring (date)Segment boundaries, formatted as MM/dd/yy.
policyEventobjectPolicy event associated with the segment.
segmentTypestringSegment classification.
fullTermDays, totalDays, earnedDays, unearnedDaysintegerTerm and segment day counts.
coverages, taxes, feesarrayPricing elements for the segment.
totalCoverages, totalTaxes, totalFeesnumberSegment component totals.
proratedTotal, totalPremiumnumberSegment premium totals.
segmentPremiumChangenumberPremium change for the segment.
quoteId, eventIdUUIDAssociated quote and event identifiers.