Adjust_inventory
Update inventory by adjusting the current on-hand quantity with a specified amount, ensuring total stock stays below 100,000 units.
Instructions
API for updating inventory by adjusting the inventory amount from the current inventory on hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Inventory ID | |
| amount | Yes | Amount must greater than or equal to 0 and less than 100,000 (0 <= amount + availableNumber < 100,000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| availableNumber | No | Quantity that is available and display on the storefront (Exclude ‘Reserved’ and ‘Ready to ship’ status) | |
| onHandAmount | No | Quantity in stock (Include ‘Reserved’ and ‘Ready to ship’ status) | |
| readyToShipAmount | No | Quantity that customers complete payment and wait to ship | |
| reservedAmount | No | Quantity that customers do not complete payment |