Skip to content

POLICY_CANCEL

This event is fired when a policy is cancelled. It terminates the policy and stops all future coverage and billing.

When and what fires this event?

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

  • Copilot: fires when an administrator cancels a policy manually;
  • 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_CANCEL",
    "payload": {
        "clientId": "<clientId>",
        "policyId": "<policyId>",
        "cancellationReasonConfigId": "<cancellationReasonConfigId>",
        "effectiveDate": "<effectiveDate>",
        "label": "<label>",
        "backofficeIntake": {
            "<qid>": {
                "type": "ANSWER",
                "answer": "<answer>"
            }
        }
    }
}'
{
  "lineId": "262e67be-c08c-43c0-bb51-06fe4408b4e9",
  "type": "POLICY_CANCEL",
  "payload": {
    "clientId": "262e67be-c08c-43c0-bb51-06fe4408b4e9",
    "policyId": "21e398b3-1713-44b7-b044-7328f34efaa3",
    "cancellationReasonConfigId": "c074652b-a9db-4c49-87ee-1bc2404af7a0",
    "effectiveDate": "2020-01-13",
    "label": "label",
    "backofficeIntake": {
      "numEmployees": {
        "type": "ANSWER",
        "answer": "17"
      }
    }
  }
}

Request fields

TypeRequiredDescription
lineIdtrueUUID for the associated product
typetrueMust be set to POLICY_CANCEL
payloadtrueExplained below

Payload fields

TypeRequiredDescription
clientIdtrueUUID
policyIdtruePolicy ID
cancellationReasonConfigIdtrueCancellation reason config ID
effectiveDatetrueEffective date
labelfalseLabel
backOfficeIntakefalseMap of qid to answer

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.