Policy Created Event

Event emitted when a new insurance policy is created in the system.

Event Lifecycle

Overview

The PolicyCreatedEventV1 event is emitted by the PolicyService when a new insurance policy is successfully created in the system. This event marks the beginning of the policy lifecycle and contains comprehensive information about the newly created policy.

When is this event emitted?

This event is published when:

  • A customer successfully completes the policy purchase process
  • A quote is converted into an active policy
  • A new policy is created through administrative channels

Key Information

The event payload includes:

  • Policy Identification: Policy ID, policy code, and status
  • Policyholder Details: Policy holder ID and associated quote ID
  • Partner Information: Partner ID, name, package details
  • Product Details: Full product information including premiums, tranches, and beneficiaries
  • Financial Configuration: Premium amounts, escalation settings, and collection details
  • Categorization: Division, subdivision, product category, and country code

Downstream Consumers

Systems that typically consume this event include:

  • Billing and collections systems
  • Customer communication services
  • Reporting and analytics platforms
  • Partner integration services

Schemas

JSON Schema

28 properties

Event emitted when a policy is created.

idstring<uuid>
required

Unique identifier for the event (UUID as string)

correlationIdstring<uuid>
required

Correlation identifier for the event (UUID as string)

noticedDateinteger
required

Timestamp when the event was noticed (milliseconds since epoch)

effectedDateinteger
required

Timestamp when the event took effect (milliseconds since epoch)

detailTypestring
required

Type of the event.

logicalClockReadinginteger
required

Logical clock reading for event ordering

policyIdstring<uuid>
required

Unique identifier for the policy (UUID as string)

policyCodestring
required

Unique identifier for the policy

policyStatusstring
required

Status of the policy (e.g., PENDING_FIRST_PAYMENT, ACTIVE)

policyStartDateinteger
required

Start date of the policy (milliseconds since epoch)

policyHolderIdstring
required

Unique identifier for the policy holder

quoteIdnullstring<uuid>

Unique identifier for the quote (UUID as string)

partnerIdstring
required

Unique identifier for the partner

partnerNamestring
required

Name of the partner

packageIdstring
required

Unique identifier for the package

packageNamestring
required

Name of the package

productBundleNamenullstring

Name of the product bundle

productBundleIdnullstring

Unique identifier for the product bundle

productCategoryIdstring
required

Unique identifier for the product category

productCategoryNamestring
required

Name of the product category

divisionstring
required

Division information for categorization

subdivisionstring
required

Subdivision information for categorization

productsnullarray

List of products associated with this event

metaDatanullobject

Additional metadata as key-value pairs

countryCodestring
required

Country code for the policy.

policyPremiumoneOf

The premium amount for the policy

escalationConfigurationoneOf

Configuration for escalation handling.

policyFinancialDetailoneOf

Financial details related to this policy.

Avro Schema

28 fields
Record:PolicyCreatedEventV1(sft.pas.policy.events.policycreatedevent.avro)

Event emitted when a policy is created.

idstring (uuid)

Unique identifier for the event (UUID as string)

correlationIdstring (uuid)

Correlation identifier for the event (UUID as string)

noticedDatelong (timestamp-millis)

Timestamp when the event was noticed

effectedDatelong (timestamp-millis)

Timestamp when the event took effect

detailTypestring

Type of the event.

logicalClockReadingint

Logical clock reading for event ordering

policyIdstring (uuid)

Unique identifier for the policy (UUID as string)

policyCodestring

Unique identifier for the policy

policyStatusstring

Status of the policy (e.g., PENDING_FIRST_PAYMENT, ACTIVE)

policyStartDatelong (timestamp-millis)

Start date of the policy

policyHolderIdstring

Unique identifier for the policy holder

quoteIdnull | string (uuid)

Unique identifier for the quote (UUID as string)

partnerIdstring

Unique identifier for the partner

partnerNamestring

Name of the partner

packageIdstring

Unique identifier for the package

packageNamestring

Name of the package

productBundleNamenull | string

Name of the product bundle

productBundleIdnull | string

Unique identifier for the product bundle

productCategoryIdstring

Unique identifier for the product category

productCategoryNamestring

Name of the product category

divisionstring

Division information for categorization

subdivisionstring

Subdivision information for categorization

productsnull | array<record: AvroProductEventInfo>

List of products associated with this event

metaDatanull | map<string>

Additional metadata as key-value pairs

countryCodestring

Country code for the policy.

policyPremiumnull | AvroMoney

The premium amount for the policy

escalationConfigurationnull | record: AvroEscalationConfigurationEventInfo

Configuration for escalation handling.

policyFinancialDetailnull | record: AvroPolicyFinancialDetailEventInfo

Financial details related to this policy.