json icon

Add Item To Cart

v1.0.0commands

Command to add an item to a shopping cart.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "AddItemToCart",
4  "description": "Command to add an item to a shopping cart",
5  "type": "object",
6  "properties": {
7    "cartId": {
8      "description": "Unique identifier of the cart",
9      "type": "string",
10      "format": "uuid"
11    },
12    "productId": {
13      "description": "Identifier of the product to add",
14      "type": "string",
15      "format": "uuid"
16    },
17    "quantity": {
18      "description": "Number of units to add",
19      "type": "integer",
20      "minimum": 1,
21      "default": 1
22    }
23  },
24  "required": ["cartId", "productId", "quantity"]
25}
26

Details

Format
JSON Schema
Resource
commands
Filename
schema.json

Versions