24/7 Support: 800.608.6482

Navigation


ProductVariantPricing_Update

This function updates the variant pricing.

Request Parameters

store_code Type:
String
Title:
Store Code
Store code to run the function against. Found in the Miva Admin under Settings > Store Details
function Type:
String
Title:
Product Variant Pricing Update
The name of the function being executed
product_id Type:
Number
Title:
Product ID
The id number of the product
variant_id Type:
Number
Title:
Variant ID
The variant id of the product
method Type:
Number/String
Title:
Variant Pricing Method
0=master 1=specific 2=sum
price Type:
Number
Title:
Variant Price
[optional] The variant price
cost Type:
Number
Title:
Variant Cost
[optional] The variant cost
weight Type:
Number
Title:
Variant weight
[optional] The weight of the variant

Response Parameters

success Type:
Boolean
Title:
Status Response
Boolean value indicating if the api request was successful
product_id Type:
Number
Title:
Product ID
The product id for the variant
variant_id Type:
Number
Title:
Variant ID
The new variant id

Example Request

Example Response

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay Vault®, Camp Miva®, Miva Connect®, Vexture℠, Miva, Inc. All Rights Reserved.