Skip to content

Customer Case Updated

This event is triggered when an existing customer case is updated on WillSuite

Input


Endpoint

Post your_endpoint


Payload

webhook_type  string

This is set to customer_case.updated

case_data  object

This is the updated case data

customer_data  array of object

This will contain any associated customers for this case.


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 - UPDATED002",
    "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": "customer_case.updated",
  "customer_data": [
    {
      "id": "36d29b03-40c8-4f32-b182-2982e86507ce",
      "email": null,
      "tel_1": null,
      "tel_2": null,
      "title": "Mr",
      "gender": "male",
      "postcode": "NG1 6AB",
      "address_1": "40 Friar Lane",
      "address_2": "Nottingham",
      "address_3": "Nottinghamshire",
      "last_name": "Doe",
      "occupation": null,
      "first_names": "John",
      "middle_names": null,
      "date_of_birth": null,
      "marital_status": null,
      "customer_case_id": "dc88990b-0d07-49b1-aa8f-6063cf66ed97"
    }
  ]
}
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" },
    "customer_data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": { "type": "string" },
          "email": { "type": ["string", "null"] },
          "tel_1": { "type": ["string", "null"] },
          "tel_2": { "type": ["string", "null"] },
          "title": { "type": "string" },
          "gender": { "type": ["string", "null"] },
          "postcode": { "type": ["string", "null"] },
          "address_1": { "type": ["string", "null"] },
          "address_2": { "type": ["string", "null"] },
          "address_3": { "type": ["string", "null"] },
          "last_name": { "type": "string" },
          "occupation": { "type": ["string", "null"] },
          "first_names": { "type": "string" },
          "middle_names": { "type": ["string", "null"] },
          "date_of_birth": { "type": ["string", "null"] },
          "marital_status": { "type": ["string", "null"] },
          "customer_case_id": { "type": "string" }
        },
        "required": ["id", "email", "tel_1", "tel_2", "title", "gender", "postcode", "address_1", "address_2", "address_3", "last_name", "occupation", "first_names", "middle_names", "date_of_birth", "marital_status", "customer_case_id"]
      }
    }
  },
  "required": ["case_data", "webhook_type", "customer_data"]
}