inventory-set-quantities
Set absolute inventory quantities for items at specific locations, with optional expected-quantity checks and idempotent retries. Use it for inventory corrections and cycle counts.
Instructions
Set absolute inventory quantities for items at specific locations. Use for inventory corrections, cycle counts, etc. Pass changeFromQuantity per item to only apply the change if the current quantity still matches. Returns the idempotencyKey used, so a failed call can be retried with the same key, plus userErrors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Which quantity to set: 'available' or 'on_hand' | |
| reason | Yes | Reason for the quantity change | |
| quantities | Yes | Quantities to set for each inventory item at each location | |
| idempotencyKey | No | Idempotency key for this request. Omit it and a new UUID is generated for each call. Reuse a key only to retry the exact same request; a different request with the same key is rejected. |