json icon

Remove Item From Cart

v1.0.0commands

Command to remove an item from a shopping cart.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "RemoveItemFromCart",
4  "description": "Command to remove an item from 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 remove",
14      "type": "string",
15      "format": "uuid"
16    },
17    "quantity": {
18      "description": "Number of units to remove. If omitted, removes the item entirely.",
19      "type": "integer",
20      "minimum": 1
21    }
22  },
23  "required": ["cartId", "productId"]
24}
25

Details

Format
JSON Schema
Resource
commands
Filename
schema.json

Versions