json icon

Delete Product

v1.0.0commands

Command to remove a product from the catalog.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "DeleteProduct",
4  "description": "Command to remove a product from the catalog",
5  "type": "object",
6  "properties": {
7    "productId": {
8      "description": "Unique identifier of the product to delete",
9      "type": "string",
10      "format": "uuid"
11    },
12    "reason": {
13      "description": "Optional reason the product is being removed",
14      "type": "string",
15      "enum": ["DISCONTINUED", "DUPLICATE", "MERCHANT_REQUEST", "OTHER"]
16    }
17  },
18  "required": ["productId"]
19}
20

Details

Format
JSON Schema
Resource
commands
Filename
schema.json

Versions