Runs data consistency checks against a single policy and returns detailed results. This is a read-only diagnostic endpoint — no data is modified.
Eight checks are available, covering segment contiguity, hash
correctness, version sequentiality, full-term invariance, duplicate
detection, transaction-segment existence, and cancel/reinstate
premium consistency. By default all checks run; use the checks
parameter to select a subset.
Checks are either version-scoped (run once per policy version) or policy-scoped (run once for the whole policy). A policy with 3 versions and all 8 checks enabled produces up to 18 results (5 version-scoped checks x 3 versions + 3 policy-scoped checks).
Use the version parameter to validate a single version instead of
all versions.
| Check | Scope | What it validates |
|---|---|---|
contiguity | version | Segments form a contiguous date range with no gaps or overlaps |
fullTermInvariance | version | Billing and policy metadata fields are constant across all segments in a version |
hashCorrectness | version | Stored segment hash matches the computed hash of the segment data |
noDuplicateSegments | version | No adjacent segments have identical hashes |
transactionSegmentExistence | version | At least one segment exists for the version |
versionSequentiality | policy | Versions are sequential starting from 1 with no gaps |
cancelEarnedPremium | policy | Cancel transaction premium matches earned premium through the cancellation date |
cancelReinstatePremium | policy | Reinstate transaction premium matches the pre-cancel version premium |
Required permission: company.policy:read
API key authentication. Include your API key in the Authorization header.
Company identifier
Policy identifier
Validate only this policy version. If omitted, all versions are validated. Version-scoped checks run only for the specified version; policy-scoped checks always run.
x >= 1Comma-separated list of check names to run (e.g.,
contiguity,hashCorrectness). If omitted, all checks run.
Unrecognized check names are silently ignored. If all provided
names are unrecognized, all checks run (same as omitting the
parameter). Check names are case-sensitive.
Validation results for the policy
Validation results for a single policy, including a summary of pass/fail/skip counts and the individual check results.
The policy that was validated
ISO 8601 timestamp of when the validation was performed
Aggregate counts of check results for a single policy. A policy with multiple versions will have more results than the number of check types, because version-scoped checks run once per version.
Individual check results. Contains one entry per check per scope (version-scoped checks produce one result per version).