Adjust inventory
adjust_inventoryIncreases, decreases or sets one product's on-hand quantity at one warehouse. Posts an inventory movement, which changes stock valuation and COGS. Returns the adjustment id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| dry_run | No | Validate only; saves nothing. | |
| quantity | Yes | Units to add or remove, or the new on-hand total when adjustment_type is set. Non-zero. | |
| unit_cost | No | Unit cost of added stock; needed for an increase when the product has no average cost yet. | |
| product_id | Yes | ||
| warehouse_id | Yes | ||
| adjustment_date | Yes | ISO date. | |
| adjustment_type | Yes | increase, decrease or set. | |
| idempotency_key | No | A repeat with this key replays the first result. | |
| warehouse_location_id | No |