PRE_POLICY_CANCELLATION
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 '{
"lineId": "<UUID of the product>",
"type": "PRE_POLICY_CANCELLATION",
"payload": {
"configId": "<configId>",
"effectiveDate": "<effectiveDate>",
"label": "<label>",
"backOfficeIntake": {
"<qid>": "<answer>"
}
}
}'
{
"lineId": "262e67be-c08c-43c0-bb51-06fe4408b4e9",
"type": "PRE_POLICY_CANCELLATION",
"payload": {
"configId": "262c67be-c08c-43c0-bb51-06fe4408b4e9",
"effectiveDate": "2020-01-13",
"label": "label",
"backOfficeIntake": {
"numEmployees": "17"
}
}
}
Event payload fields:
| Type | Required | Description |
|---|---|---|
lineId | true | UUID for the associated product |
type | true | Must be set to PRE_POLICY_CANCELLATION |
payload | true | Explained below |
Payload fields
| Type | Required | Description |
|---|---|---|
configId | true | Cancellation config ID |
effectiveDate | true | Effective date |
label | true | Label |
backOfficeIntake | true | Map of qid to answer |
Cancellation documents are generated asynchronously. To retrieve them set up a webhook action on the Per-Cancellation Notice event in the platform.