Contractor Insurance Expiry Checker
Pricing
$2.00 / 1,000 reviewed insurance documents
Contractor Insurance Expiry Checker
Pre-check structured contractor insurance inventories for expiry, dates, occurrence and aggregate limits, explicit renewals and currency gaps. CSV/XLSX/JSON with a review queue and row evidence. No insurer verification.
Pricing
$2.00 / 1,000 reviewed insurance documents
Rating
0.0
(0)
Developer
AFK Digital
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
8 days ago
Last modified
Categories
Features
Share
Review customer-supplied contractor insurance records against customer-defined dates and coverage limits. This Actor produces a preliminary review queue, not an insurance verification or compliance certification.
What it checks
Expired documents, documents expiring today, future effective dates, missing/invalid dates, invalid date ranges, upcoming expiration windows, missing/invalid occurrence and aggregate limits, insufficient limits, currency mismatches, missing required coverage types and explicit renewal relationships. An optional requirement-level min_days_remaining enforces your minimum remaining term.
No OCR, insurer connection, external verification, currency lookup or automatic policy aggregation. No assessment of exclusions, endorsements, cancellation, premiums, insured parties, policy wording or claim coverage.
Input
Three required fields: insuranceInventoryFile, contractorRequirementsFile and asOfDate. Empty input runs a five-record synthetic demo with a fixed review date, never customer data. asOfDate is an explicit YYYY-MM-DD calendar date; timestamps, locale date strings and bare Excel serial numbers are not accepted.
File descriptors accept:
- {"rows":[{...}]} for inline JSON records.
- {"format":"json","content":"[ ... ]"} for UTF-8 JSON text.
- {"format":"csv","content":"contractor_id,...\nC1,..."} for UTF-8 CSV with unique headers.
- {"format":"xlsx","base64":"...","sheet":"Inventory"} for a base64 workbook. The first sheet is used if sheet is omitted. Actual Excel date cells are supported.
- {"storeId":"YOUR_APIFY_KVS_ID","key":"inventory.xlsx","format":"xlsx","sheet":"Inventory"} for an authenticated Apify Key-Value Store record. Upload binary XLSX or UTF-8 CSV/JSON first with Apify Console/API. For limited-permission execution, also select the same store in sourceKeyValueStores, e.g. {"sourceKeyValueStores":["YOUR_APIFY_KVS_ID"]}. The schema grants read-only access to those selected stores; no full-account permission is requested. Omit storeId only for the current run's default store.
No arbitrary URL fetching. XLSX formulas are rejected; export calculated values instead. Password-protected files, macros, OCR, PDF, ZIP input and multi-sheet merging are unsupported. Each file is limited to 10 MiB and 50,000 records; XLSX expanded contents are limited to 40 MiB. maxRecords (1–50,000; default 10,000) limits inventory documents and fails rather than silently truncating an oversized inventory.
Inventory columns
| Column | Meaning |
|---|---|
| contractor_id | Stable customer contractor identifier; retain leading zeroes as text |
| policy_record_id | Required unique document inventory identifier, not a policy number |
| coverage_type | Customer-controlled exact type key, trimmed and case-normalized |
| effective_date / expiration_date | ISO date or Excel date cell |
| occurrence_limit | Separate numeric per-occurrence limit |
| aggregate_limit | Separate numeric aggregate limit |
| currency | Explicit three-letter currency code |
| policy_number | Optional; only final four characters appear in output |
| replaces_policy_record_id | Optional explicit reference to a preceding document record |
Alternatively supply supplied_limit with limit_basis equal to occurrence or aggregate. Direct occurrence_limit/aggregate_limit fields take priority unless an explicit matching limit_basis is supplied. Amounts must be nonnegative plain decimals without currency signs, grouping commas or scientific notation. Blank supplied amounts produce missing-limit findings; unparseable supplied values produce invalid-limit findings.
Requirements columns
One row per (contractor_id, coverage_type), with occurrence_limit and/or aggregate_limit, plus currency. Alternatively required_limit with limit_basis occurrence or aggregate. At least one explicit nonnegative limit is required; blank limits are not interpreted as zero. Duplicate requirements are rejected rather than merged. Optional min_days_remaining is an integer from 0 to 3,650.
columnMapping maps canonical fields to source columns independently: {"inventory":{"contractor_id":"Vendor ID","expiration_date":"Expires"},"requirements":{"occurrence_limit":"Minimum Each Occurrence"}} A mapped column that does not exist is an input error. Coverage types are matched exactly after trimming/lowercasing; there is no fuzzy matching or inferred equivalence.
alertWindowsDays defaults to [7,30,60]. The smallest matching window produces a finding. days_remaining is expiration_date minus asOfDate. Expiration on the review date produces EXPIRES_TODAY with zero days remaining; the Actor does not assume a policy expiry time or timezone.
exchangeRates is optional, e.g. {"EUR/USD":"1.10"}. Only the specified direct conversion is used; no inverse, triangulation or external rates. Output retains supplied amounts/currency and required currency separately, plus the converted comparison evidence.
Renewal rules
Only an explicit reference to an existing unique record with the same contractor and coverage type can supersede it. The successor must have valid supplied dates, already have started and expire after asOfDate. Future renewals do not hide an expired preceding record. Self-links, cycles, ambiguous multiple successors and cross-contractor/type links remain review findings. Unlinked records never supersede one another. Old findings remain visible even when review_status is SUPERSEDED_EXPLICITLY. These relationships only describe supplied records and do not verify cancellation or actual replacement.
Outputs
The Dataset has exactly one result per reviewed inventory document record. Each result includes contractor_id, policy_record_id, coverage_type, effective_date, expiration_date, days_remaining, supplied_limit, required_limit, currency, review_status, findings and evidence_rows. Additional fields: required_currency, limit_comparisons and policy_number_masked.
supplied_limit and required_limit are objects containing separate occurrence and aggregate amounts, serialized as decimal strings to preserve precision. There is no sum across documents or limit bases.
Statuses include EXPIRED, NOT_YET_EFFECTIVE, EXPIRES_TODAY, REVIEW_REQUIRED, SUPERSEDED_EXPLICITLY and NO_ISSUES_FOUND_IN_SUPPLIED_RECORD. All findings are retained even when a date status takes priority. The last status only means these supplied fields triggered no configured check.
KVS outputs:
- OUTPUT: all reviewed document results as JSON.
- OUTPUT.csv: all reviewed document results as CSV.
- REVIEW_QUEUE / REVIEW_QUEUE.csv: records containing findings, including superseded history.
- SUMMARY: counts, budget truncation, missing_required_coverage and the disclaimer.
Evidence contains source and row references, never raw source records. CSV/JSON references count logical records with an implicit header at row 1; XLSX references use actual worksheet rows. Select a sheet explicitly to include its name in evidence. Missing coverage requirements are in SUMMARY, never additional chargeable document rows.
CSV export escapes spreadsheet formula prefixes. Treat original customer inputs and exports as confidential. No raw customer records or policy numbers are written to application logs. Apify stores input and results in your account according to your retention/access settings; delete them when appropriate. Document record IDs should be pseudonymous; if the document ID exactly equals policy_number the output substitutes a row identifier.
Billing and runtime
Price: USD 2.00 per 1,000 reviewed document records (USD 0.002 per record). The custom PPE event is reviewed-document, once per inventory record, regardless of the number of findings. No fee for finding count, requirement rows, queue exports or download. No startup fee or separate Dataset-item event should be enabled on publication. Standard post-run storage interactions may incur Apify fees.
The Actor respects the platform charge budget before review output. Only the permitted inventory prefix is reviewed, with partial_due_to_budget=true and a partial-coverage note. maxRecords is separate from the billing budget and never silently drops records. Inputs are validated before charging. A failed output write is not a completed result; inspect a failed run before retrying. A rerun is a new review and can be charged again.
Default memory 256 MiB; timeout 180 seconds. The fixed synthetic demo should finish under five minutes. No proxy or external service costs. Actor source code is hidden. The published event price includes platform usage.
Local testing
python3 -m venv .venv .venv/bin/pip install -r requirements.txt .venv/bin/python -m unittest discover -v .venv/bin/python -m src.main
Limitations
This is a preliminary review of customer-supplied records only. It does not establish that a policy is in force, a claim is covered, a contractor is compliant, or any legal/contractual requirement is met. Missing or incorrect customer data produces incomplete results. Review material findings with an appropriately qualified person.