Sapo Sản Phẩm icon

Sapo Sản Phẩm

Quản lý sản phẩm trên Sapo

Overview

This node integrates with the Sapo platform to manage products. It allows users to perform various product-related operations such as retrieving a list of products, getting details of a specific product, creating new products, updating existing ones, deleting products, and counting the total number of products.

A common use case is automating product synchronization between Sapo and other systems, or managing product catalogs programmatically within workflows. For example, you can fetch all products created after a certain date, update product information in bulk, or delete discontinued products automatically.

Specifically, the "Lấy Danh Sách" (Get Many) operation retrieves multiple products from Sapo, optionally filtered by creation or update timestamps, and supports pagination controls like limiting the number of results or returning all available products.

Properties

Name Meaning
Trả Về Tất Cả Boolean option to return all results or only up to a specified limit.
Giới Hạn Maximum number of results to return when not returning all. Minimum value is 1.
Thông Tin Bổ Sung Additional filtering fields:
- Tạo Sau: Filter products created after this date/time.
- Tạo Trước: Filter products created before this date/time.
- Cập Nhật Sau: Filter products updated after this date/time.
- Cập Nhật Trước: Filter products updated before this date/time.

Output

The output is an array containing one item with a json property holding the response data from the Sapo API:

  • For "Lấy Danh Sách" operation, the json field contains a list of products matching the query parameters and filters.
  • The structure typically includes product details such as IDs, names, creation and update timestamps, and other product attributes as returned by the Sapo API.
  • No binary data output is produced by this node.

Example output snippet:

{
  "json": {
    "products": [
      {
        "id": 123,
        "name": "Product A",
        "created_at": "2023-01-01T12:00:00Z",
        "updated_at": "2023-02-01T12:00:00Z"
        // ... other product fields
      },
      // more products
    ]
  }
}

Dependencies

  • Requires an API key credential for authenticating with the Sapo platform.
  • Depends on the internal Sapo API base class to handle HTTP requests to Sapo's product endpoints.
  • No additional external services are required beyond access to the Sapo API.

Troubleshooting

  • Common issues:

    • Authentication failures due to invalid or missing API credentials.
    • Rate limiting or API quota exceeded errors from Sapo.
    • Invalid filter dates causing no results or errors.
    • Network connectivity problems affecting API calls.
  • Error messages:

    • Errors thrown by the node include the message from the underlying API error.
    • If "Continue On Fail" is enabled, errors will be returned as JSON objects with an error property describing the issue.
    • To resolve errors, verify API credentials, check network connectivity, and ensure filter parameters are valid.

Links and References

Discussion