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
| Property | Required | Description |
|---|---|---|
type | true | Must be set to POLICY_RENEWED |
payload | true | See Payload fields below |
Payload fields
| Property | Required | Description |
|---|---|---|
policyId | true | UUID for the policy |
Response json
{
"triggerRequestId": "386861af-6875-49b2-b38c-c435263039be",
"executedActionCount": 0,
"expectedResponseCount": 0,
"metadata": {}
}
Response fields
| Property | Required | Description |
|---|---|---|
triggerRequestId | true | UUID that uniquely identifies the trigger execution instance. |
executedActionCount | true | Number of actions executed during this trigger run. |
expectedResponseCount | true | Number of responses expected from the executed actions. |
metadata | true | Contains dynamically generated data from executed workflow actions. |