ProductShippingRules_Update
#
Description#
This function is used to update a product’s shipping rule settings in Miva. All parameters are optional.
Requirements#
Available in version 10.08.03 and newer.
Request Body Parameters#
Parameter |
Type | Description |
---|---|---|
product_id Edit_Product Product_Code Product_SKU |
Number String String String |
ID Number of product Product code string Product code string Product SKU string |
ShipsInOwnPackaging |
boolean | Product Always Ships in Separate Packaging |
Width |
number | Maximum 10 digits before decimal and 2 digits after decimal |
Length |
number | Maximum 10 digits before decimal and 2 digits after decimal |
Height |
number | Maximum 10 digits before decimal and 2 digits after decimal |
LimitShippingMethods |
boolean | Limit shipping methods |
ShippingMethods |
object | Shipping methods to restrict |
ShippingMethods.module_code |
string | Shipping Method module code |
ShippingMethods.method_code |
string | Shipping Method code |
Response Parameters#
Parameter |
Type | Description |
---|---|---|
success |
boolean | boolean value for if the request was successful |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "ProductShippingRules_Update",
"Product_ID": 1,
"ShipsInOwnPackaging": true,
"Width": 10,
"Length": 11,
"Height": 12,
"LimitShippingMethods": true,
"ShippingMethods":
[
{
"module_code": "xxx",
"method_code": "yyy"
},
...
]
}
Example Response#
{
"success": 1
}