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, enabling users to manage various aspects of their Zalo OA such as messaging, followers, articles, products, categories, orders, and tags. Specifically, the "Lấy Thông Tin Sản Phẩm" (Get Product Info) operation retrieves detailed information about a product in the OA's store by its product ID.

Typical use cases include:

  • Fetching detailed product data for display or processing within an automation workflow.
  • Integrating Zalo OA product information into other systems like CRMs or e-commerce platforms.
  • Automating inventory checks or updates based on product details retrieved from Zalo OA.

Example: You can use this node to get the details of a specific product by providing its product ID, then use that data to update your internal database or trigger notifications.

Properties

Name Meaning
ID Sản Phẩm The unique identifier (ID) of the product whose information you want to retrieve.

Output

The node outputs a JSON object containing the response from the Zalo OA API for the requested product information. This typically includes fields such as product name, price, description, code, category, photos, status, and other relevant product details as returned by the API.

If an error occurs (e.g., invalid product ID or access issues), the output JSON will contain an error flag set to true, an error message, and possibly additional response data from the API to help diagnose the issue.

The node does not output binary data for this operation.

Dependencies

  • Requires an active Zalo Official Account API access token credential configured in n8n.
  • Uses the Zalo OA API endpoint at https://openapi.zalo.me/v2.0/oa/store/product/getproduct.
  • Requires proper permissions granted to the access token to read product information.

Troubleshooting

  • Common Issues:

    • Invalid or missing product ID: Ensure the product ID provided exists and is correct.
    • Access token issues: Make sure the API key or token has the necessary permissions and is valid.
    • Network or API errors: Temporary network issues or API downtime may cause failures.
  • Error Messages:

    • "Error getting product info: <message>": Indicates failure in fetching product details. Check the product ID and access token validity.
    • Response data included in the error output can provide HTTP status codes and API error messages for further diagnosis.
  • Resolutions:

    • Verify the product ID is correct and the product exists in the OA store.
    • Confirm the access token is current and has required scopes.
    • Review API documentation for any changes or limitations.
    • Retry after some time if the issue is due to temporary API unavailability.

Links and References


Note: The above summary focuses exclusively on the "Lấy Thông Tin Sản Phẩm" operation under the "Zalo OA" resource as requested.

Discussion