Danh Mục KiotViet icon

Danh Mục KiotViet

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

Tạo Mới

AI-generated

Overview

This node manages product categories in KiotViet, specifically allowing the creation of new categories. It is useful for automating the addition of product categories in KiotViet's inventory system, such as when integrating with other systems or bulk uploading categories.

Use Case Examples

  1. Creating a new product category with a specific name and optional additional details like category code, parent category ID, description, display order, and custom attributes.
  2. Automating category creation during product onboarding workflows.

Properties

Name Meaning
Tên Danh Mục The name of the category to be created.
Trường Bổ Sung Additional optional fields for the category such as category code, parent category ID, description, display order, and attributes.

Output

JSON

  • categoryId - The unique identifier of the created category.
  • categoryName - The name of the created category.
  • categoryCode - The code of the created category, if provided or auto-generated.
  • parentId - The ID of the parent category if set.
  • description - Description of the created category.
  • orderIndex - Display order index of the created category.
  • attributes - List of custom attributes associated with the category.

Dependencies

  • KiotViet API with authentication credentials

Troubleshooting

  • Ensure the 'Tên Danh Mục' (category name) is provided as it is required.
  • If the API returns an error about unsupported update operation, it means the KiotViet API does not support updating categories in the current context.
  • Check that numeric fields like 'ID Danh Mục Cha' and 'Thứ Tự Hiển Thị' are valid numbers.
  • If the node fails and 'Continue On Fail' is not enabled, the execution will stop on the first error.

Discussion