ProductVariantPricing_Update#
Description#
This function updates the variant pricing.
Request Parameters#
| Parameter | Type | Description |
|---|---|---|
product_idEdit_ProductProduct_CodeProduct_SKU |
Number String String String |
ID Number of product Product code string Product code string Product SKU string |
variant_id |
Number | The variant id of the product |
method |
Number/String | 0 = master 1 = specific 2 = sum |
price |
Number | The variant price |
cost |
Number | The variant cost |
weight |
Number | The weight of the variant |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
success |
Boolean | Boolean value indicating if the api request was successful |
product_id |
Number | The product id for the variant |
variant_id |
Number | The new variant id |
Example Request#
{
"Store_Code": "STORE_CODE",
"Function": "ProductVariantPricing_Update",
"Product_ID": 1,
"Variant_ID": 1,
"Method": 2,
"Price": 99.99,
"Cost": 99.99,
"Weight": 99.99
}
Example Response#
{
"Store_Code": "STORE_CODE",
"Function": "ProductVariantPricing_Update",
"Product_ID": 1,
"Variant_ID": 1,
"Method": 2,
"Price": 99.99,
"Cost": 99.99,
"Weight": 99.99
}