Skip to content

POLICY_RENEWED

This event is fired when a policy is successfully renewed. It extends the policy coverage for a new term period.

When and what fires this event?

If this event is defined on a product, and it has actions that are enabled:

  • Storefront: fires automatically when a policy renewal is completed successfully.
  • API: can fire this event externally on demand.

Request payload

POST: https://api.{ENV}.dais.com/ioi/v3/event/fire

curl --location --request POST 'https://api.{ENV}.dais.com/ioi/v3/event/fire' \
--header 'Authorization: Basic <yourAuthHere>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "POLICY_RENEWED",
    "payload": {
        "policyId": "<policyID>"
    }
}'
{
    "type": "POLICY_RENEWED",
    "payload": {
        "policyId": "3781f5c0-fae6-4bab-8091-8d385fd2a8f5"
    }
}

Request fields

PropertyRequiredDescription
typetrueMust be set to POLICY_RENEWED
payloadtrueSee Payload fields below

Payload fields

PropertyRequiredDescription
policyIdtrueUUID for the policy

Response json

{
  "triggerRequestId": "386861af-6875-49b2-b38c-c435263039be",
  "executedActionCount": 0,
  "expectedResponseCount": 0,
  "metadata": {}
}

Response fields

PropertyRequiredDescription
triggerRequestIdtrueUUID that uniquely identifies the trigger execution instance.
executedActionCounttrueNumber of actions executed during this trigger run.
expectedResponseCounttrueNumber of responses expected from the executed actions.
metadatatrueContains dynamically generated data from executed workflow actions.