json icon

Product Created

v1.0.0events

Published when a new product has been added to the catalog.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "ProductCreated",
4  "description": "Emitted when a new product is added to the catalog",
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 created",
14      "type": "string",
15      "format": "date-time"
16    },
17    "product": {
18      "description": "The product that was created",
19      "type": "object",
20      "properties": {
21        "productId": {
22          "description": "Unique identifier for the product",
23          "type": "string",
24          "format": "uuid"
25        },
26        "sku": {
27          "description": "Stock keeping unit",
28          "type": "string"
29        },
30        "name": {
31          "description": "Display name of the product",
32          "type": "string"
33        },
34        "description": {
35          "description": "Long-form product description",
36          "type": "string"
37        },
38        "price": {
39          "description": "Price in minor units (e.g. cents)",
40          "type": "integer",
41          "minimum": 0
42        },
43        "currency": {
44          "description": "ISO 4217 currency code",
45          "type": "string",
46          "pattern": "^[A-Z]{3}$"
47        },
48        "category": {
49          "description": "Category the product belongs to",
50          "type": "string"
51        },
52        "status": {
53          "description": "Lifecycle status of the product",
54          "type": "string",
55          "enum": ["DRAFT", "ACTIVE", "ARCHIVED"]
56        }
57      },
58      "required": ["productId", "sku", "name", "price", "currency", "status"]
59    }
60  },
61  "required": ["eventId", "occurredAt", "product"]
62}
63

Details

Format
JSON Schema
Resource
events
Filename
schema.json

Versions