Sản Phẩm KiotViet icon

Sản Phẩm KiotViet

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

Overview

This node manages products in the KiotViet system, a popular retail management platform. It supports operations such as creating new products, retrieving product details by ID or code, updating existing products, deleting products, listing multiple products, and fetching inventory levels.

Typical use cases include:

  • Automating product catalog synchronization between KiotViet and other systems.
  • Bulk updating product information or prices.
  • Retrieving product data for reporting or integration purposes.
  • Managing inventory levels across branches.

For example, you can use this node to delete a product by specifying its product ID, or create a new product with detailed attributes and inventory information.

Properties

Name Meaning
ID Sản Phẩm The unique identifier of the product (required for get, update, delete operations).

Note: The provided properties JSON only includes the "ID Sản Phẩm" property relevant for the "delete" operation.

Output

The node outputs JSON data representing the result of the performed operation:

  • For delete operation: Outputs an object { success: true } indicating successful deletion.
  • For other operations (not requested here), it returns product details or lists accordingly.

No binary data output is produced by this node.

Dependencies

  • Requires connection to the KiotViet API via an API key credential configured in n8n.
  • Uses an internal KiotViet API helper class to perform REST API calls.

Troubleshooting

  • Invalid Product ID: If the product ID does not exist or is invalid, the API may return an error. Ensure the product ID is correct.
  • API Authentication Errors: Make sure the API key credential is correctly set up and has sufficient permissions.
  • Network Issues: Connectivity problems with the KiotViet API will cause failures; verify network access.
  • Continue On Fail: If enabled, errors for individual items will be returned as JSON objects with an error field instead of stopping execution.

Links and References

Discussion