{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/commercetools/main/json-schema/commercetools-inventory-entry-draft-schema.json", "title": "InventoryEntryDraft", "description": "Request body for creating a new inventory entry.", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/commercetools-inventory-api-openapi.yml#/components/schemas/InventoryEntryDraft", "type": "object", "required": [ "sku", "quantityOnStock" ], "properties": { "key": { "type": "string", "description": "User-defined unique identifier." }, "sku": { "type": "string", "description": "SKU of the product variant to track." }, "supplyChannel": { "$ref": "#/$defs/Reference" }, "quantityOnStock": { "type": "integer", "description": "Initial quantity on stock." }, "restockableInDays": { "type": "integer", "description": "Expected restocking time in days." }, "expectedDelivery": { "type": "string", "format": "date-time", "description": "Expected delivery date for restocking." } }, "$defs": { "Reference": { "type": "object", "description": "A reference to another resource by its typeId and id.", "required": [ "typeId", "id" ], "properties": { "typeId": { "type": "string", "description": "The type identifier of the referenced resource (e.g., 'product', 'category')." }, "id": { "type": "string", "description": "The system-generated unique identifier of the referenced resource." } } } } }