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
Input Schema
TableJSON 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()) |