24/7 Support: 800.608.6482

Navigation


Product_Update

This function is used to update a product 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 Body Parameters

edit_product Type:
String
Title:
Edit Product
[optional] This is the product code of the product you wish to edit. This can be used in conjunction with the Product_Code parameter to change the product_code.
product_code Type:
String
Title:
Product Code
[optional] Product Code of the product to update. This is a unique value in Miva.
product_sku Type:
String
Title:
Product SKU
[optional] Product SKU of the product to update. If a non-unique value is passed to this parameter, it will generate an "Ambiguous product SKU" error.
product_name Type:
String
Title:
Product Name
[optional] Product Name
product_description Type:
String
Title:
Product Description
[optional] Product Description. Full HTML description allowed.
product_canonical_category_code Type:
String
Title:
Produt Canonical Category Code
[optional] The canonical category is used to populate the breadcrumbs and category tree when no category code is present.
product_alternate_display_page Type:
String
Title:
Product Alternate Display Page
[optional] Alternate Page template to use when rendering this product
product_page_titlee Type:
String
Title:
Product Page Title
[optional] The Title Tag for this product.
product_thumbnail Type:
String
Title:
Product Thumbnail
[optional] [depreciated] Product Thumbnail. This field is depreciated. Images should be uploaded using ProductImage_Add
product_image Type:
String
Title:
Product Fullsize Image
[optional] [depreciated] Product Fullsize Image. This field is depreciated. Images should be uploaded using ProductImage_Add
product_price Type:
Number
Title:
Product Price
[optional] Product Price. This is the price the product will be purchased at.
product_cost Type:
Number
Title:
Product Cost
[optional] Product Cost. Used for reporting and certing types of discounts (markup from cost)
product_weight Type:
Number
Title:
Product Weight
[optional] Product Weight
product_Inventory Type:
Number
Title:
Product Inventory
[optional] Current inventory count available for the product. Updating this value does not take into account stock held in open baskets
product_taxable Type:
Boolean
Title:
Product Taxable
[optional] true or false value depending on if a product is taxable.
product_active Type:
Boolean
Title:
Product Active
[optional] true or false value depending on if a product is active
customfield_values Type:
Object
Title:
Custom Fields Values
[optional] An object containing a customfields object with custom order fields to update. See examples.

Response Parameters

success Type:
boolean
Title:
Success
boolean value for if the request was successfull

Example Request

Update Inventory. Note: Inventory currently held in baskets is not taken into account when using this funciton.

Example Response

Example Error Response

Error Responses

error code
MER-JSN-PRD-00013
error message
Product not found
description
Product Code sent in "Edit_Product" field does not exist.
error code
MER-JSN-PRD-00014
error message
Product not found
description
Product Code sent in "Product_Code" does not exist.
error code
#Error#
error message
Unable to load product: One of Edit_Product, Product_ID, Product_Code or Product_SKU must be specified
description
Unable to load product: One of Edit_Product, Product_ID, Product_Code or Product_SKU must be specified.
error code
MER-JSN-PRD-00072
error message
Ambiguous product SKU
description
Two or more products share the same product SKU

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 – 2023 Miva©, Miva Merchant©, MivaPay©, MivaCon©, Camp Miva ℠, Miva, Inc. All Rights Reserved.