Skip to content

Customer Case Created

This event is triggered when a new customer case is created on WillSuite.

Input


Endpoint

Post your_endpoint


Payload

webhook_type  string

This is set to customer_case.created

case_data  object

This is the newly create 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-1234567890cd",
    "ref": "05062024 - EXAMPLE002",
    "meta": {
      "abcdef12-3456-7890-abcd-ef1234567890": "example@example.com",
      "12345678-90ab-cdef-1234-567890abcdef": "2024-05-23"
    },
    "email": null,
    "notes": "Updated case information",
    "postcode": null,
    "full_names": null,
    "last_names": null,
    "first_names": null
  },
  "webhook_type": "customer_case.created",
  "customer_data": []
}
json
{
  "type": "object",
  "properties": {
    "case_data": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "ref": { "type": "string" },
        "meta": {
          "type": "object",
          "additionalProperties": { "type": "string" }
        },
        "email": { "type": ["string", "null"] },
        "notes": { "type": "string" },
        "postcode": { "type": ["string", "null"] },
        "full_names": { "type": ["string", "null"] },
        "last_names": { "type": ["string", "null"] },
        "first_names": { "type": ["string", "null"] }
      },
      "required": ["id", "ref", "meta", "email", "notes", "postcode", "full_names", "last_names", "first_names"]
    },
    "webhook_type": { "type": "string" },
    "customer_data": {
      "type": "array"
    }
  },
  "required": ["case_data", "webhook_type", "customer_data"]
}