put
https://{store}/api/rest/stockitems/
Allows you to update existing stock item data.
Parameters - Enter only those parameters which you want to update.
| Name | Description | Type | Example Value |
|---|---|---|---|
| item_id | Item ID | int | 1 |
| product_id | Product ID | int | 1 |
| stock_id | Stock ID | int | 1 |
| qty | Quantity of stock items for the current product | int | float |
| min_qty | Quantity for stock items to become out of stock | int | float |
| use_config_min_qty | Choose whether the Config settings will be applied for the Qty for Item's Status to Become Out of Stock option | int | 1 |
| is_qty_decimal | Choose whether the product can be sold using decimals (e.g., you can buy 2.5 product) | int | 0 |
| backorders | The customer can place the order for products that are out of stock at the moment (0 - No Backorders, 1 - Allow Qty Below 0, and 2 - Allow Qty Below 0 and Notify Customer) | int | 0 |
| use_config_backorders | Choose whether the Config settings will be applied for the Backorders option | int | 1 |
| min_sale_qty | Minimum number of items in the shopping cart to be sold | int | float |
| use_config_min_sale_qty | Choose whether the Config settings will be applied for the Minimum Qty Allowed in Shopping Cart option | int | 0 |
| max_sale_qty | Maximum number of items in the shopping cart to be sold | int | float |
| use_config_max_sale_qty | Choose whether the Config settings will be applied for the Maximum Qty Allowed in Shopping Cart option | int | 0 |
| is_in_stock | Defines whether the product is available for selling (0 - Out of Stock, 1 - In Stock) | int | 1 |
| low_stock_date | Date when the number of stock items became lower than the number defined in the Notify for Quantity Below option | string | 2020-02-14 12:37:51 |
| notify_stock_qty | The number of inventory items below which the customer will be notified via the RSS feed | int | float |
| use_config_notify_stock_qty | Choose whether the Config settings will be applied for the Notify for Quantity Below option | int | 0 |
| manage_stock | Choose whether to view and specify the product quantity and availability and whether the product is in stock management( 0 - No, 1 - Yes) | int | 0 |
| use_config_manage_stock | Choose whether the Config settings will be applied for the Manage Stock option | int | 1 |
| stock_status_changed_auto | Defines whether products can be automatically returned to stock when the refund for an order is created | int | 0 |
| use_config_qty_increments | Choose whether the Config settings will be applied for the Enable Qty Increments option | int | 1 |
| qty_increments | The product quantity increment value | int | float |
| use_config_enable_qty_inc | Choose whether the Config settings will be applied for the Qty Increments option | int | 1 |
| enable_qty_increments | Defines whether the customer can add products only in increments to the shopping cart | int | 0 |
| is_decimal_divided | Defines whether the stock items can be divided into multiple boxes for shipping | int | 0 |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200OK (no example documented yet)
