POLICY_CREATED
This event is fired immediately after a new policy is created in the policy system, which must be prior to issuance.
When and what fires this event?
If this event is defined on a product, and it has actions that are enabled:
- CoPilot: fires this event after a new policy is created in the Account Builder;
- Storefront: fires this event after a new policy is created;
- Fired externally via API 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 '{
"lineId": "<UUID of the product>",
"type": "POLICY_CREATED",
"payload": {
"clientId": "<clientId>"
}
}'
{
"line": "ee7f2f91-75e6-4dd2-b872-a605c2664a24",
"type": "POLICY_CREATED",
"payload": {
"clientId": "2b03c21b-3ce9-4d0b-9c99-85f2898f31b4"
}
}
Event fields:
| Property | Required | Description |
|---|---|---|
lineId | true | UUID for the product |
type | true | Must be set to POLICY_CREATED |
payload | true | Explained below |
Payload fields
| Property | Required | Description |
|---|---|---|
clientId | true | UUID for the client |
Response payload
{
"triggerRequestId": "f096cd6b-12cd-43d6-a8f8-d3339c4af9ba",
"executedActionCount": 1,
"expectedResponseCount": 0,
"metadata": {}
}