InventoryProductSettings_Update
Description
This function is used to update a product’s inventory settings in Miva. All parameters are optional. The product you want to update can be specified using Product_ID, Product_Code, Edit_Product or Product_SKU.
Request Parameters
Name |
Type |
Title |
product_id |
Number |
This is the product id of the product you wish to update. |
product_code |
String |
This is the product code of the product you wish to update. |
product_sku |
String |
This is the product SKU of the product you wish to update. |
TrackLowStockLevel |
String |
The string of Default, Yes, No can used to set the Track Low Stock Level setting |
TrackOutOfStockLevel |
String |
The string of Default, Yes, No can used to set the Track Out Of Stock Level setting |
HideOutOfStockProducts |
String |
The string of Default, Yes, No can used to set the Hide Out Of Stock Products setting |
LowStockLevel |
Number |
The Number for the low stock level. |
OutOfStockLevel |
Number |
The Number for the out of stock level. |
TrackProduct |
Boolean |
True of False value to track product inventory |
InStockMessageShort |
String |
The In Stock Message Short |
InStockMessageLong |
String |
The In Stock Message Long |
LowStockMessageShort |
String |
The Low Stock Message Short |
LowStockMessageLong |
String |
The Low Stock Message Long |
OutOfStockMessageShort |
String |
The Out Of Stock Message Short |
OutOfStockMessageLong |
String |
The out of stock message |
LimitedStockMessage |
String |
The limited stock message |
AdjustStockBy |
Number |
An Number with the value to adjust the current product inventory count. Note this parameter can not be used with CurrentStock |
CurrentStock |
Number |
An Number with the value to adjust the current product inventory count. Note this parameter can not be used with CurrentStock |
Response Parameters
Parameter |
Type |
Description |
success |
Boolean |
Boolean value indicating if the API request was successful |
Example Request
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "InventoryProductSettings_Update",
"product_code": "PRODUCT_CODE",
"TrackLowStockLevel": "Yes",
"TrackOutOfStockLevel": "No",
"HideOutOfStockProducts": "Default",
"LowStockLevel": 2,
"OutOfStockLevel": 10,
"TrackProduct": true,
"InStockMessageShort": "In Stock Message Short",
"InStockMessageLong": "In Stock Message Long",
"LowStockMessageShort": "Low Stock Message Short",
"LowStockMessageLong": "Low Stock Message Long",
"OutOfStockMessageShort": "Out Of Stock Message Short",
"OutOfStockMessageLong": "Out Of Stock Message Long",
"LimitedStockMessage": "Limited Stock Message",
"AdjustStockBy": 10
}
Example Response