Skip to content

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:

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

Payload fields

TypeRequiredDescription
configIdtrueCancellation config ID
effectiveDatetrueEffective date
labeltrueLabel
backOfficeIntaketrueMap of qid to answer