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 product information in a Zalo OA store. It allows users to modify details of an existing product such as its name, price, description, code, images, and display status.

Typical use cases include:

  • Updating product details when prices change or descriptions need correction.
  • Changing product visibility on the store by toggling its status between visible ("Hiển Thị") and hidden ("Ẩn").
  • Refreshing product images by providing new image URLs.

For example, a business owner using Zalo OA can automate updating their product catalog whenever inventory changes or promotions occur, ensuring customers always see accurate product information.

Properties

Name Meaning
ID Sản Phẩm (productId) The unique identifier of the product to update (required).
Tên Sản Phẩm (name) New name for the product.
Giá Sản Phẩm (price) New price of the product in Vietnamese Dong (VND).
Mô Tả Sản Phẩm (description) New description text for the product.
Mã Sản Phẩm (code) New product code or SKU.
URL Hình Ảnh Sản Phẩm (photos) Comma-separated URLs of new product images.
Trạng Thái Sản Phẩm (status) Display status of the product; options are "Hiển Thị" (show) or "Ẩn" (hide).

Output

The node outputs JSON data representing the response from the Zalo OA API after attempting to update the product. This typically includes:

  • Confirmation of the updated product details.
  • Status codes or messages indicating success or failure.
  • Error information if the update failed.

No binary data output is involved in 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 store products.
  • The node uses HTTP POST requests to the endpoint /store/product/update on the Zalo OA API.
  • Proper configuration of credentials and environment variables for authentication tokens is necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing productId will cause the update to fail.
    • Incorrect or expired API access tokens will result in authentication errors.
    • Providing malformed image URLs or unsupported formats may cause image update failures.
    • Insufficient permissions on the API token can lead to authorization errors.
  • Error Messages:

    • "Please check the product ID and parameters." — Indicates invalid or missing product ID or other required fields.
    • "Error updating product:" followed by error details — General failure during the update process; check API response for specifics.
    • Network or timeout errors — Ensure stable internet connection and that the Zalo OA API service is reachable.
  • Resolution Tips:

    • Verify the product ID exists in the Zalo OA store before updating.
    • Refresh or reauthenticate API tokens if expired.
    • Validate all input fields, especially URLs and numeric values.
    • Check API permissions granted to the connected account.

Links and References

Discussion