json icon

Product Updated

v1.0.0events

Published when an existing product's data has changed.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "ProductUpdated",
4  "description": "Emitted when an existing product's data 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 product was updated",
14      "type": "string",
15      "format": "date-time"
16    },
17    "productId": {
18      "description": "Unique identifier for the product 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        "name": {
27          "type": "string"
28        },
29        "description": {
30          "type": "string"
31        },
32        "price": {
33          "description": "Price in minor units (e.g. cents)",
34          "type": "integer",
35          "minimum": 0
36        },
37        "currency": {
38          "description": "ISO 4217 currency code",
39          "type": "string",
40          "pattern": "^[A-Z]{3}$"
41        },
42        "category": {
43          "type": "string"
44        },
45        "status": {
46          "description": "Lifecycle status of the product",
47          "type": "string",
48          "enum": ["DRAFT", "ACTIVE", "ARCHIVED"]
49        }
50      },
51      "minProperties": 1
52    }
53  },
54  "required": ["eventId", "occurredAt", "productId", "changes"]
55}
56

Details

Format
JSON Schema
Resource
events
Filename
schema.json

Versions