Inventory Unavailable
v1.0.0eventsPublished when stock could not be reserved for an order.
1{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "InventoryUnavailable",
4 "description": "Published when stock could not be reserved for an order",
5 "type": "object",
6 "properties": {
7 "orderId": { "type": "string", "format": "uuid" },
8 "cartId": { "type": "string", "format": "uuid" },
9 "unavailableItems": {
10 "type": "array",
11 "items": {
12 "type": "object",
13 "properties": {
14 "productId": { "type": "string", "format": "uuid" },
15 "requested": { "type": "integer", "minimum": 1 },
16 "available": { "type": "integer", "minimum": 0 }
17 },
18 "required": ["productId", "requested", "available"]
19 }
20 },
21 "checkedAt": { "type": "string", "format": "date-time" }
22 },
23 "required": ["unavailableItems", "checkedAt"]
24}
25Details
- Format
- JSON Schema
- Resource
- events
- Filename
- schema.json