Sản Phẩm KiotViet icon

Sản Phẩm KiotViet

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

Lấy Nhiều

AI-generated

Overview

This node interacts with the KiotViet API to retrieve multiple product records based on specified filters and pagination options. It is useful for scenarios where users need to fetch a list of products from KiotViet, such as for inventory management, reporting, or synchronization with other systems. For example, a user can retrieve all active products in a specific category or search for products by name or code.

Use Case Examples

  1. Retrieve all active products in category ID 123.
  2. Fetch up to 50 products matching a search term 'coffee'.
  3. Get all products without limit.

Properties

Name Meaning
Lấy Toàn Bộ Determines whether to retrieve all product results or limit the number of results.
Giới Hạn Specifies the maximum number of product results to retrieve when not returning all results.
Bộ Lọc Filters to narrow down the product list by category ID, search term (name or code), and product status (Active or Inactive).

Output

JSON

  • id - Unique identifier of the product.
  • name - Name of the product.
  • categoryId - Category ID the product belongs to.
  • basePrice - Base price of the product.
  • retailPrice - Retail price of the product.
  • status - Current status of the product (e.g., Active, Inactive).
  • code - Product code if available.
  • barCode - Barcode of the product if available.
  • description - Description of the product.
  • unit - Unit of measurement for the product.
  • attributes - List of product attributes with name and value.
  • inventories - Inventory details per branch including branch ID, name, on-hand quantity, and cost.
  • images - List of image URLs associated with the product.

Dependencies

  • KiotViet API key credential

Troubleshooting

  • Common issues include invalid or missing API credentials, resulting in authentication errors.
  • Incorrect filter values or data types may cause the API to return errors or empty results.
  • Network connectivity issues can prevent successful API calls.
  • Error messages from the API are typically propagated; ensure to check the error message for details and verify input parameters.

Links

Discussion