json icon

Customer Updated

v1.0.0events

Published when an existing customer's profile has changed.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "CustomerUpdated",
4  "description": "Emitted when an existing customer's profile changes",
5  "type": "object",
6  "properties": {
7    "eventId": {
8      "description": "Unique identifier for this event",
9      "type": "string",
10      "format": "uuid"
11    },
12    "occurredAt": {
13      "description": "Time the customer was updated",
14      "type": "string",
15      "format": "date-time"
16    },
17    "customerId": {
18      "description": "Unique identifier for the customer that changed",
19      "type": "string",
20      "format": "uuid"
21    },
22    "changes": {
23      "description": "The fields that changed and their new values",
24      "type": "object",
25      "properties": {
26        "email": {
27          "type": "string",
28          "format": "email"
29        },
30        "name": {
31          "type": "string"
32        },
33        "status": {
34          "type": "string",
35          "enum": ["ACTIVE", "SUSPENDED", "CLOSED"]
36        }
37      },
38      "minProperties": 1
39    }
40  },
41  "required": ["eventId", "occurredAt", "customerId", "changes"]
42}
43

Details

Format
JSON Schema
Resource
events
Filename
schema.json

Versions