Sản Phẩm KiotViet icon

Sản Phẩm KiotViet

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

Overview

This node integrates with the KiotViet platform to manage product data. It supports operations such as creating new products, retrieving product details by ID or code, listing multiple products, updating existing products, deleting products, and fetching inventory levels. This node is useful for automating product management workflows in e-commerce or retail businesses that use KiotViet as their backend system.

For example, you can:

  • Retrieve detailed information about a specific product by its ID.
  • Create new products with detailed attributes and inventory information.
  • Update product details or delete products as needed.
  • Fetch inventory levels across different branches or warehouses.

Properties

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

Note: Only the "ID Sản Phẩm" property is relevant here because the operation specified is "Lấy Theo ID" (get by ID).

Output

The output is a JSON object representing the product data retrieved from KiotViet by the given product ID. The structure includes all product details such as name, category, pricing, attributes, inventories, images, and other metadata depending on the product's configuration in KiotViet.

If the operation succeeds, the output contains the full product information as returned by the KiotViet API.

If the operation fails and "continue on fail" is enabled, the output will contain an error object with the error message.

Dependencies

  • Requires an API key credential for authenticating with the KiotViet API.
  • The node depends on the internal KiotVietApiBase class to handle API requests.
  • Proper configuration of the KiotViet API credentials in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing product ID may cause the API call to fail.
    • Network or authentication errors if the API key is incorrect or expired.
    • If the product ID does not exist, the node may return an error or empty result.
  • Error messages:

    • Errors from the KiotViet API are propagated; typical messages include "Product not found" or authentication failures.
    • To resolve, verify the product ID exists and the API credentials are valid.
    • Enable "Continue On Fail" in the node settings to handle errors gracefully without stopping the workflow.

Links and References

Discussion