24/7 Support: 800.608.6482

Get Started

Developer Docs

JSON API

Product_Update

Description

Update a product in Miva using Miva's Product Code as the unique identifier.

HTTP Parameters

Name Type Required Description
API_Token string yes Miva Store API Access Token
Store_Code string yes Store Code to run the function on
Fucntion string yes Name of API function to run
Product_Code string yes Product Code to Update
Product_Name string yes Product Name to Update
Product_Price string yes Product price to update
Product_Cost string yes Product cost to update
Product_Weight string yes Product weight to udpate
Product_Active string yes 0 = inactive, 1 = active Note if Product_Active is not sent, product will default to an Active value of 0 or inactive.
Product_SKU
string no Optional product SKU 
Product_Canonical_Category_Code string no Canonical Category Code for Product
Product_Alternate_Display_Page string no Alternate display page for product
Product_Thumbnail string no Legacy Image - Thumbnail image name including path for product.
Note: This is only supported for legacy image support. Images should be added via ProductImage_Add
Product_Image string no
Legacy Image - Fullsizel image name including path for product.
Note: This is only supported for legacy image support. Images should be added via ProductImage_Add
Product_Page_Title string no Title tag used for HTML page title
CustomField_Values:customfields:<fieldcode> string no Example: CustomField_Values:customfields:brand where "brand" is the Product Custom Field Code you wish to update. 

Example Request

Success Response

Error Response

Required Fields Validation Error

Error Details

Error Code Error Message Validation Error Error_Field Error_Field_Error
MER-JSN-PRD-00014       
Unable to load Product


MER-JSN-00017 Missing required parameter Store_Code


MER-JSN-00018
Invalid value for field 'Product_Weight': Please enter a number
true Product_Weight Please enter a number
MER-JSN-00018
Invalid value for field 'Product_Price': Please enter a number
true Product_Price Please enter a number
MER-JSN-00018
Invalid value for field 'Product_Name': Please specify a product name
true Product_Name Please specify a product name
MER-JSN-00018
Invalid value for field 'Product_Cost': Please enter a number
true Product_Cost Please enter a number
MER-JSN-00018
Invalid value for field 'CustomField_Values:customfields:brand': EOF: Record not found: MER-UTL-CST-00085
true CustomField_Values:customfields:brand
EOF: Record not found: MER-UTL-CST-00085






Note: Error Code MER-JSN-0018 is a generic error code for any Validation Field error. If any required fields are incorrect or missing this is the error that will be returned. If multiple validation fields exist, only the first validation will be returned. 

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