Reserve Inventory
v1.0.0commandsCommand to reserve stock for the items in a checked-out cart.
1{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "ReserveInventory",
4 "description": "Command to reserve stock for the items in a checked-out cart",
5 "type": "object",
6 "properties": {
7 "cartId": {
8 "description": "Identifier of the cart being checked out",
9 "type": "string",
10 "format": "uuid"
11 },
12 "customerId": {
13 "description": "Identifier of the customer checking out",
14 "type": "string",
15 "format": "uuid"
16 },
17 "items": {
18 "description": "The items to reserve",
19 "type": "array",
20 "items": {
21 "type": "object",
22 "properties": {
23 "productId": {
24 "type": "string",
25 "format": "uuid"
26 },
27 "quantity": {
28 "type": "integer",
29 "minimum": 1
30 }
31 },
32 "required": ["productId", "quantity"]
33 }
34 }
35 },
36 "required": ["cartId", "items"]
37}
38Details
- Format
- JSON Schema
- Resource
- commands
- Filename
- schema.json