Miva icon

Miva

Interact with Miva eCommerce API

Update Product

AI-generated

Summary

Update product information in a specified Miva store by identifying the product using a chosen identifier type and field in the input data, and optionally setting various product fields including name, description, price, cost, weight, inventory, taxable status, active status, category codes, display pages, page titles, thumbnail and full-size images, as well as custom field values.

Inputs

  • Store Code (required) — The Miva store code identifier.
  • Product Identifier Type (required) — The type of product identifier to use (Product ID, Product Code, or Product SKU).
  • Product Identifier Field (required) — Field in the input data containing the product identifier value.
  • Additional Fields — Optional fields in the input data to update product details, including product name, description, price, cost, weight, inventory, taxable status, active status, canonical category code, alternate display page, page title, thumbnail image, full-size image, and custom fields (each custom field requires module name, custom field name, and the input data field containing the custom value).

Output shape

a single JSON object per item representing the API response from the product update operation.

The output includes success status and a success message indicating whether the product was updated, as well as the product identifier used. If the operation fails, errors are either thrown or returned depending on the node's error handling configuration.

Examples

Example 1: Update product with product code and set name and price

Store Code: yt2; Product Identifier Type: Product Code; Product Identifier Field: product_code; Additional Fields: productNameField='name', productPriceField='price' (input data fields)

Links

Discussion