Lấy Theo ID
AI-generatedOverview
This node interacts with the KiotViet API to manage product categories. Specifically, for the 'Lấy Theo ID' (Get By ID) operation, it retrieves a product category from KiotViet by its unique identifier. This is useful in scenarios where you need to fetch detailed information about a specific category, such as for display, editing, or integration purposes.
Use Case Examples
- Fetch a category by its ID to display its details in a dashboard.
- Retrieve category information to update related product listings.
- Use the category data in workflows that require category-specific processing.
Properties
| Name | Meaning |
|---|---|
| ID Danh Mục | The unique identifier of the category to retrieve. This is a required string input used to specify which category to fetch. |
Output
JSON
id- The unique identifier of the category.categoryName- The name of the category.categoryCode- The code of the category, if available.parentId- The ID of the parent category, if this is a subcategory.description- Description of the category.orderIndex- The order index for sorting categories.attributes- An array of attributes associated with the category, each with a name and value.
Dependencies
- KiotViet API credentials required for authentication.
Troubleshooting
- If the category ID is invalid or does not exist, the node will throw an error indicating the category could not be found.
- Ensure the KiotViet API credentials are correctly configured and have the necessary permissions to access category data.
- If the API endpoint for updating categories is not supported, an error will be thrown when attempting to update.