Zalo OA icon

Zalo OA

Tương tác với Zalo Official Account API

Zalo OA → Tạo Danh Mục

AI-generated

Summary

Create a new product category for the Zalo Official Account's store by specifying its name, optional description, optional image URL, and display status.

Inputs

  • Tên Danh Mục (required) — The name of the product category to create.
  • Mô Tả Danh Mục — An optional description of the product category.
  • URL Hình Ảnh Danh Mục — Optional URL of an image representing the category.
  • Trạng Thái Danh Mục — Display status of the category: either 'Hiển Thị' (show) or 'Ẩn' (hide), defaults to 'Hiển Thị'.

Output shape

a single JSON object containing the API response for the created category, including success or error details.

The operation performs an authenticated POST request to Zalo's /store/category/create endpoint. Ensure the category name is provided, and optional parameters are correctly formatted. The output includes the API's JSON response. In case of API errors, error information is included in the output JSON.

Discussion