event documentation template
id: eventtemplate title: EVENT_TEMPLATE
brief description
When and what fires this event?
If this event is defined on a product, and it has actions that are enabled:
- CoPilot: ;
- Storefront: ;
- 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 '{
"type": "POLICY_CREATED",
"payload": {
}
}'
{
"productId": "UUID",
"type": "GET_QUOTES",
"agencyCodes": ["<for some events, agency codes are required>"],
"payload": {}
}
Event payload fields:
| Property | Required | Description |
|---|---|---|
property | true | description |
Payload fields
| Property | Required | Description |
|---|---|---|
property | false | description |
Response payload
{
"payload": "here"
}