Skip to content

PRE_POLICY_CANCELLATION

Before a policy is cancelled, this event may be called any number of times.

Submit this event using Firing an Event. Product configuration and enabled actions determine the workflow behavior. Use identifiers and snapshots from the same environment.

Request payload#

HTTPPOST
POST https://api.{ENV}.dais.com/ioi/v3/event/fire
cURL
curl --location --request POST 'https://api.{ENV}.dais.com/ioi/v3/event/fire' \
--header 'Authorization: Basic <Base64-encoded API key and secret>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "lineId": "<UUID of the product ID>",
  "type": "PRE_POLICY_CANCELLATION",
  "payload": {
    "clientId": "<UUID of the client ID>",
    "quoteId": "<UUID of the quote request ID>",
    "policyId": "<UUID of the policy ID>",
    "documents": [],
    "cancellationReasonConfigId": "<UUID of the cancellation reason configuration ID>",
    "effectiveDate": "2026-04-01",
    "label": "<Label>",
    "backofficeIntake": {
      "cancellationReason": {
        "type": "ANSWER",
        "answer": "<Answer for this question>"
      },
      "noticeDate": {
        "type": "ANSWER",
        "answer": "2026-03-01"
      }
    }
  }
}'
JSON
{
  "lineId": "<UUID of the product ID>",
  "type": "PRE_POLICY_CANCELLATION",
  "payload": {
    "clientId": "<UUID of the client ID>",
    "quoteId": "<UUID of the quote request ID>",
    "policyId": "<UUID of the policy ID>",
    "documents": [],
    "cancellationReasonConfigId": "<UUID of the cancellation reason configuration ID>",
    "effectiveDate": "2026-04-01",
    "label": "<Label>",
    "backofficeIntake": {
      "cancellationReason": {
        "type": "ANSWER",
        "answer": "<Answer for this question>"
      },
      "noticeDate": {
        "type": "ANSWER",
        "answer": "2026-03-01"
      }
    }
  }
}

Request Fields#

See the shared event envelope. Set type to PRE_POLICY_CANCELLATION and provide the payload below.

Payload Fields#

Required fields include the inputs used by this event's built-in action. Configured actions can require additional data.

PropertyRequiredDescription
clientIdNoUUID of the client who owns the policy identified by policyId.
quoteIdNoUUID of the original quote associated with the policy identified by policyId.
policyIdYesUUID of the policy.
documentsNoList of documents related to the event.
cancellationReasonConfigIdYesUUID of the cancellation reason configuration.
effectiveDateYesEffective date of the pre-cancellation notice (format: YYYY-MM-DD).
labelNoOptional label for the cancellation.
backofficeIntakeNoMap of backoffice form fields to values.

Response#

This example illustrates the common trigger response structure. Action counts and metadata depend on the actions that run; action-specific result fields are described where applicable.

JSON
{
  "triggerRequestId": "<UUID of the trigger request ID>",
  "executedActionCount": 0,
  "expectedResponseCount": 0,
  "metadata": {}
}

Response Fields#

PropertyDescription
triggerRequestIdUUID identifying this trigger execution.
executedActionCountNumber of actions reported as executed.
expectedResponseCountNumber of expected action responses.
metadataAction-specific results; may be empty.

See Firing an Event for execution modes and response handling.