Order Created
v1.0.0eventsPublished when a new order has been created.
1{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "OrderCreated",
4 "description": "Published when a new order has been created",
5 "type": "object",
6 "properties": {
7 "orderId": {
8 "type": "string",
9 "format": "uuid"
10 },
11 "customerId": {
12 "type": "string",
13 "format": "uuid"
14 },
15 "total": {
16 "type": "integer",
17 "description": "Order total in minor units (e.g. cents)"
18 },
19 "currency": {
20 "type": "string",
21 "pattern": "^[A-Z]{3}$"
22 },
23 "createdAt": {
24 "type": "string",
25 "format": "date-time"
26 }
27 },
28 "required": ["orderId", "customerId", "total", "currency", "createdAt"]
29}
30Details
- Format
- JSON Schema
- Resource
- events
- Filename
- schema.json