Zalo OA icon

Zalo OA

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

Overview

This node integrates with the Zalo Official Account (OA) API to update an existing category in the OA's store or content management system. It allows users to modify details such as the category's name, description, image URL, and display status.

Typical use cases include:

  • Renaming a product or content category to reflect updated branding.
  • Changing the description to provide more accurate or appealing information.
  • Updating the category image to keep visuals fresh.
  • Toggling the visibility of a category between shown or hidden states.

For example, a business using Zalo OA to manage their online store can automate category updates when launching new campaigns or reorganizing products.

Properties

Name Meaning
ID Danh Mục The unique identifier of the category to update (required).
Tên Danh Mục The new name for the category.
Mô Tả Danh Mục The new description text for the category.
URL Hình Ảnh Danh Mục The new URL pointing to the category's image.
Trạng Thái Danh Mục The new display status of the category; options are "Hiển Thị" (show) or "Ẩn" (hide).

Output

The node outputs a JSON object representing the response from the Zalo OA API after attempting to update the category. This typically includes fields indicating success or failure, updated category data, and any error messages if applicable.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Zalo Official Account API v3.0.
  • Needs a valid API access token credential with permissions to manage categories.
  • The node uses HTTP POST requests to the endpoint /store/category/update on the Zalo OA API.
  • Proper configuration of credentials and environment variables for authentication tokens is necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing category ID will cause the update to fail.
    • Insufficient permissions or expired access tokens may result in authorization errors.
    • Providing invalid URLs for images or malformed input data can cause API rejections.
  • Error Messages:

    • "Please check the category ID and parameters." — Indicates that the category ID or other parameters are incorrect or missing.
    • API errors related to access tokens suggest checking token validity and refresh mechanisms.
    • Network or HTTP errors should be checked by verifying connectivity and API endpoint availability.
  • Resolution Tips:

    • Ensure the category ID exists and is correct.
    • Verify that the access token is current and has the required scopes.
    • Validate all input fields, especially URLs and status values.
    • Consult Zalo OA API documentation for the latest requirements and error codes.

Links and References

Discussion