SELECT_QUOTE
This event is fired when a quote is selected by a client. It marks the chosen quote for policy creation or binding.
When and what fires this event?
If this event is defined on a product, and it has actions that are enabled:
- Storefront: fires when a client selects a quote;
- API: can fire this event externally on demand;
- Copilot: fires when an agent selects a quote on behalf of a client.
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": "SELECT_QUOTE",
"payload": {
"clientId": "<clientId>",
"quoteIds": [
"<quoteId>"
]
}
}'
{
"type": "SELECT_QUOTE",
"payload": {
"clientId": "262c67be-c08c-43c0-bb51-06fe4408b4e9",
"quoteIds": [
"b5d87fb6-1f92-44b7-882a-0470ce228395"
]
}
}
Request fields
| Type | Required | Description |
|---|---|---|
type | true | Must be set to SELECT_QUOTE |
payload | true | Explained below |
Payload fields
| Type | Required | Description |
|---|---|---|
clientId | true | UUID for the client |
quoteIds | true | List of selected quotes |
Response json
{
"triggerRequestId": "386861af-6875-49b2-b38c-c435263039be",
"executedActionCount": 0,
"expectedResponseCount": 0,
"metadata": {}
}
Response fields
| Property | Required | Description |
|---|---|---|
triggerRequestId | true | UUID that uniquely identifies the trigger execution instance. |
executedActionCount | true | Number of actions executed during this trigger run. |
expectedResponseCount | true | Number of responses expected from the executed actions. |
metadata | true | Contains dynamically generated data from executed workflow actions. |