create_stock_adjustment
Modify inventory quantities for products by creating stock adjustments with specified locations, products, quantities, and adjustment reasons.
Instructions
Create a stock adjustment to modify inventory quantities for one or more products
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stockAdjustmentId": "<stockAdjustmentId>",
"locationId": "<locationId>",
"lines": "<lines>"
},
"name": "create_stock_adjustment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adjustmentDate | No | Date of adjustment (ISO format) | |
| adjustmentReasonId | No | Reason ID for the adjustment | |
| lines | Yes | Array of products and quantities to adjust | |
| locationId | Yes | Location ID where adjustment occurs | |
| notes | No | Notes about the adjustment | |
| stockAdjustmentId | Yes | UUID for the adjustment (generate with crypto.randomUUID()) |