Skip to content

Case Interaction Updated

This event is triggered when a existing case interaction is updated on WillSuite.

Input


Endpoint

Post your_endpoint


Payload

webhook_type  string

This is set to case_interaction.updated

interaction_data  object

The updated case interaction

case_data  object

This is the case data related to the interaction


Response

WARNING

A response of 202 status code is expected

INFO

202 status code indicates the request has been accepted for processing, but the processing has not been finished yet.

Payload

json
{
  "case_data": {
    "id": "12345678-abcd-efgh-ijkl-1234567890ab",
    "ref": "06062024 - RPTEST002",
    "meta": {
      "abcdef12-3456-7890-abcd-ef1234567890": "updated@example.com",
      "12345678-90ab-cdef-1234-567890abcdef": "2024-06-02"
    },
    "email": "",
    "notes": "Updated case information",
    "postcode": "NG1 6AB",
    "full_names": "Mr John Doe",
    "last_names": "Doe",
    "first_names": "John"
  },
  "webhook_type": "case_interaction.updated",
  "interaction_data": {
    "id": "62302123-3244-49bc-b220-cab495a80421",
    "type": "SMS",
    "when": "2024-06-02T09:06:00.000000Z",
    "notes": "Updated interaction notes",
    "sender": null,
    "recipient": "John Doe",
    "is_user_created": true
  }
}
json
{
  "type": "object",
  "properties": {
    "case_data": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "ref": { "type": "string" },
        "meta": {
          "type": "object",
          "additionalProperties": { "type": "string" }
        },
        "email": { "type": "string" },
        "notes": { "type": "string" },
        "postcode": { "type": "string" },
        "full_names": { "type": "string" },
        "last_names": { "type": "string" },
        "first_names": { "type": "string" }
      },
      "required": ["id", "ref", "meta", "email", "notes", "postcode", "full_names", "last_names", "first_names"]
    },
    "webhook_type": { "type": "string" },
    "interaction_data": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "type": { "type": "string" },
        "when": { "type": "string", "format": "date-time" },
        "notes": { "type": "string" },
        "sender": { "type": ["string", "null"] },
        "recipient": { "type": "string" },
        "is_user_created": { "type": "boolean" }
      },
      "required": ["id", "type", "when", "notes", "sender", "recipient", "is_user_created"]
    }
  },
  "required": ["case_data", "webhook_type", "interaction_data"]
}