Skip to content

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

TypeRequiredDescription
typetrueMust be set to SELECT_QUOTE
payloadtrueExplained below

Payload fields

TypeRequiredDescription
clientIdtrueUUID for the client
quoteIdstrueList of selected quotes

Response json

{
  "triggerRequestId": "386861af-6875-49b2-b38c-c435263039be",
  "executedActionCount": 0,
  "expectedResponseCount": 0,
  "metadata": {}
}

Response fields

PropertyRequiredDescription
triggerRequestIdtrueUUID that uniquely identifies the trigger execution instance.
executedActionCounttrueNumber of actions executed during this trigger run.
expectedResponseCounttrueNumber of responses expected from the executed actions.
metadatatrueContains dynamically generated data from executed workflow actions.