Lấy Theo ID
AI-generatedOverview
This node interacts with the KiotViet API to manage products. Specifically, for the 'Lấy Theo ID' (Get by ID) operation, it retrieves detailed information about a product using its unique product ID. This is useful in scenarios where you need to fetch product details for inventory management, order processing, or product display in an application.
Use Case Examples
- Retrieve product details by providing the product ID to get its name, price, stock levels, and other attributes.
- Use the product ID to fetch the latest product information before updating or displaying it.
Properties
| Name | Meaning |
|---|---|
| ID Sản Phẩm | The unique identifier of the product to retrieve. |
Output
JSON
id- The unique identifier of the product.name- The name of the product.categoryId- The category ID the product belongs to.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 or attributes.isProductSerial- Indicates if the product is a serial product.attributes- List of product attributes with name and value.inventories- Inventory details per branch including branch ID, name, stock on hand, and cost.images- List of image URLs associated with the product.weight- Weight of the product.isActive- Indicates if the product is active.isRewardPoint- Indicates if the product is eligible for reward points.
Dependencies
- KiotViet API with authentication credentials
Troubleshooting
- Ensure the product ID provided is valid and exists in the KiotViet system to avoid 'not found' errors.
- Check API credentials and network connectivity if the node fails to connect to the KiotViet API.
- If the node throws errors related to permissions, verify that the API key has sufficient rights to access product data.
Links
- KiotViet API Documentation - Official API documentation for KiotViet platform, useful for understanding product data and API usage.