json icon

Order Cancelled

v1.0.0events

Published when an order has been cancelled.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "OrderCancelled",
4  "description": "Published when an order has been cancelled",
5  "type": "object",
6  "properties": {
7    "orderId": {
8      "type": "string",
9      "format": "uuid"
10    },
11    "customerId": {
12      "type": "string",
13      "format": "uuid"
14    },
15    "reason": {
16      "type": "string",
17      "enum": ["CUSTOMER_REQUESTED", "PAYMENT_FAILED", "OUT_OF_STOCK", "FRAUD"]
18    },
19    "cancelledAt": {
20      "type": "string",
21      "format": "date-time"
22    }
23  },
24  "required": ["orderId", "reason", "cancelledAt"]
25}
26

Details

Format
JSON Schema
Resource
events
Filename
schema.json

Versions