Add inventory (v0.0.3)

Command that will add item to a given inventory id

Command Recently updated!

Overview

The AddInventory command is issued to add new stock to the inventory. This command is used by the inventory management system to update the quantity of products available in the warehouse or store.

Architecture diagram

Payload example

Payload example
{
"productId": "789e1234-b56c-78d9-e012-3456789fghij",
"quantity": 50,
"warehouseId": "456e7891-c23d-45f6-b78a-123456789abc",
"timestamp": "2024-07-04T14:48:00Z"
}

Schema

schema.json
{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "AddInventoryCommand", "type": "object", "properties": { "productId": { "type": "string", "format": "uuid", "description": "The unique identifier of the product being added to the inventory." }, "quantity": { "type": "integer", "description": "The quantity of the product being added to the inventory." }, "warehouseId": { "type": "string", "format": "uuid", "description": "The unique identifier of the warehouse where the inventory is being added." }, "timestamp": { "type": "string", "format": "date-time", "description": "The date and time when the inventory was added." } }, "required": ["productId", "quantity", "warehouseId", "timestamp"], "additionalProperties": false }