Decrease_inventory
Reduce inventory by a specified amount using the inventory ID. Updates stock levels by subtracting the given number from current on-hand quantity.
Instructions
API for updating inventory by decreasing 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 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 |