{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/bluecart/refs/heads/main/json-structure/bluecart-product-create-structure.json", "name": "ProductCreate", "description": "Payload for creating or updating a product.", "type": "object", "properties": { "productName": { "type": "string", "example": "Cabernet Sauvignon 750ml" }, "sku": { "type": "string", "example": "WINE-CAB-750" }, "description": { "type": "string", "example": "Estate-bottled Cabernet Sauvignon, vintage 2022." }, "uom": { "type": "string", "example": "Bottle" }, "price": { "type": "float", "example": 18.5 }, "pack": { "type": "int32", "example": 12 }, "tags": { "type": "array", "items": { "type": "string" }, "example": [ "Wine", "Red" ] }, "inventory": { "type": "object", "additionalProperties": true }, "discounts": { "type": "object", "additionalProperties": true } }, "required": [ "productName", "price" ] }