Sản Phẩm KiotViet icon

Sản Phẩm KiotViet

Quản lý sản phẩm từ KiotViet

Cập Nhật

AI-generated

Overview

This node updates an existing product in the KiotViet system. It allows users to modify various product details such as name, code, barcode, category, pricing, attributes, inventory levels, images, and other supplementary fields. This operation is useful for keeping product information current and accurate in an e-commerce or inventory management workflow.

Use Case Examples

  1. Updating the name and barcode of a product identified by its product ID.
  2. Modifying inventory details and attributes of a product to reflect new stock levels or product variations.

Properties

Name Meaning
ID Sản Phẩm The unique identifier of the product to update, required to specify which product to modify.
Tên Sản Phẩm The new name of the product, required for the update operation.
Trường Bổ Sung A collection of additional optional fields to update, including product code, description, unit, sale permission, barcode, full name, variant status, serial product status, attributes, master product and unit IDs, conversion value, inventories, weight, and images.

Output

JSON

  • success - Indicates if the delete operation was successful (only for delete operation).
  • id - The product ID (for update operation response).
  • name - The updated product name.
  • code - The updated product code.
  • barCode - The updated product barcode.
  • categoryId - The updated category ID of the product.
  • allowsSale - Whether the product is allowed to be sold.
  • description - The updated product description.
  • hasVariants - Indicates if the product has variants.
  • unit - The updated unit of the product.
  • masterUnitId - The updated master unit ID.
  • conversionValue - The updated conversion value between units.
  • basePrice - The updated base price of the product.
  • weight - The updated weight of the product.
  • isActive - Indicates if the product is active.
  • isRewardPoint - Indicates if the product is eligible for reward points.
  • attributes - List of updated product attributes with name and value.
  • inventories - Updated inventory details per branch.
  • images - List of updated image URLs for the product.

Dependencies

  • Requires an API key credential for KiotViet API authentication.

Troubleshooting

  • Common issues include providing an invalid or missing product ID, which will cause the update to fail.
  • Incorrect data types for fields such as numeric IDs or prices may cause errors; ensure proper types are used.
  • If the API credentials are invalid or expired, the node will fail to authenticate and perform the update.
  • Error messages typically indicate missing required fields or invalid parameter values; verify all required inputs are correctly set.

Discussion