Skip to content

CLIENT_STATUS_UPDATED

This event is fired when the status of a client is updated with CLIENT_STATUS_UPDATED action

When and what fires this event?

If this event is defined for a client, and the associated actions are enabled:

  • Copilot: fires when a user updates a client's status;
  • API: can fire this event externally 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": "CLIENT_STATUS_UPDATED",
  "payload": {
      "clientId": "<UUID of the client>",
      "productId": "<UUID of the product>",
      "statusKey": "ACTIVE",
      "description": "Client moved to active status",
      "clientAnswers": {}
  }
}'
{
  "type": "CLIENT_STATUS_UPDATED",
  "payload": {
    "clientId": "9fca0c23-7e8d-4e3b-bc14-4f408c422a7f",
    "productId": "c41288e7-2a5b-4f5d-9c79-f8331e09a653",
    "statusKey": "ACTIVE",
    "description": "Client status changed to active after policy issuance",
    "clientAnswers": {
      "confirmation": true,
      "updatedBy": "AgentPortal"
    }
  }
}

Request fields

PropertyRequiredDescription
typetrueMust be set to CLIENT_STATUS_UPDATED.
payloadtrueSee Payload fields below.

Payload fields

PropertyRequiredTypeDescription
clientIdtrueUUIDUnique identifier of the client whose status has been updated.
productIdtrueUUIDIdentifier of the associated product or policy line.
statusKeytrueStringKey of the new client status (e.g., "ACTIVE", "SUSPENDED").
descriptionfalseStringOptional description or reason for the status change.
clientAnswersfalseMapOptional custom data or form responses related to the client.

Response json

{
  "success": true,
  "message": "Event fired successfully",
  "data": {
    "triggerRequestId": "ff55a520-5194-4b6f-b84d-3457f189c5cf",
    "executedActionCount": 1,
    "expectedResponseCount": 1
  },
  "timestamp": "2025-01-17T12:00:00.000Z"
}

Response fields

PropertyRequiredDescription
successtrueRequest status
messagetrueStatus message
datatrueResponse data
timestamptrueResponse timestamp

Data fields

PropertyRequiredDescription
triggerRequestIdtrueRequest identifier
executedActionCounttrueActions executed
expectedResponseCounttrueExpected responses