24/7 Support: 800.608.6482

Navigation


ProductVariant_Insert

This function inserts a new product variant.

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 Insert
The name of the function being executed
product_id Type:
Number
Title:
Product ID
The id number of the product
attribute_ids Type:
Number
Title:
Attribute IDs
The attribute id of the product
attributetemplateattribute_ids Type:
Number
Title:
Attribute Template Attribute IDs
The attribute template ids of the product attribute
option_ids Type:
Number
Title:
Option IDs
The option id numbers of the product
part_ids Type:
Number
Title:
Part IDs
The id numbers of the product parts
quantities Type:
Number
Title:
Quantities
The part quantities for the product 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

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2022 Miva©, Miva Merchant©, MivaPay©, MivaCon©, Camp Miva ℠, Miva, Inc. All Rights Reserved.