Sản Phẩm KiotViet icon

Sản Phẩm KiotViet

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

Lấy Theo Mã

AI-generated

Overview

This node interacts with the KiotViet API to manage products. Specifically, the 'Lấy Theo Mã' (Get By Code) operation retrieves product details based on a given product code. This is useful for scenarios where you need to fetch product information using a unique product identifier, such as inventory checks, product detail displays, or integration with other systems that reference products by code.

Use Case Examples

  1. Fetch product details by entering the product code to display its name, price, and stock information in an inventory management workflow.
  2. Use the product code to retrieve product data for order processing or customer inquiries.

Properties

Name Meaning
Mã Sản Phẩm The unique code of the product used to retrieve its details.

Output

JSON

  • id - The unique identifier of the product in KiotViet.
  • name - The name of the product.
  • categoryId - The category ID to which the product belongs.
  • basePrice - The base price of the product.
  • retailPrice - The retail price of the product.
  • code - The product code (identifier).
  • barCode - The barcode of the product.
  • description - Description of the product.
  • unit - Unit of measurement for the product.
  • allowsSale - Indicates if the product is allowed to be sold.
  • hasVariants - Indicates if the product has variants.
  • isProductSerial - Indicates if the product is a serial product.
  • attributes - Attributes of the product, such as custom properties.
  • inventories - Inventory details per branch or warehouse.
  • images - URLs of images associated with the product.

Dependencies

  • KiotViet API key credential

Troubleshooting

  • Common issues include invalid or missing product codes, resulting in errors or empty responses. Ensure the product code is correct and exists in the KiotViet system.
  • API authentication errors may occur if the KiotViet API key credential is not properly configured or expired. Verify the credential settings.
  • Network or connectivity issues can cause request failures. Check internet connection and API endpoint availability.

Links

Discussion