24/7 Support: 800.608.6482

Get Started

Navigation


Product_Update

This funciton is used to update a product in Miva. All parameters are optional. The product to be updated may 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 conjustion 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. This is usually a unique value although Miva does not enfore unique values on the SKU field like it does for the Product Code. If you pass up a non-unique product sku an "Abmigous Product SKU" error will be returned.
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 categoruy code is present.
product_alternate_display_page Type:
String
Title:
Product Alternate Display Page
[optional] Alternate Page template to use whne 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/td>
[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
#Error#
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

Miva believes that all online businesses should have access to a scalable ecommerce platform that can meet their unique business requirements. Miva offers PCI compliant ecommerce, hosting, and custom website design and development solutions. Miva customers have processed over $100 billion in online sales since 1997.

Copyright © 2016 Miva, Inc - All Rights Reserved   Privacy Policy | Store Policy

Links
Contact Us
Receive Tips & Updates

Copyright © 2017 Miva, Inc - All Rights Reserved

Back To The Top