Sapo icon

Sapo

Interact with ZaloUser

Product → Get List Products

AI-generated

Overview

This node interacts with the Sapo API to retrieve a list of products. It is useful for scenarios where you need to fetch product data from a Sapo store, such as for inventory management, reporting, or integration with other systems. For example, you can use it to get paginated lists of products with optional filters like page number, limit of items per page, since ID for incremental fetching, and specific fields to return.

Use Case Examples

  1. Fetch the first 20 products from the Sapo store.
  2. Retrieve products starting from a specific product ID to sync new products.
  3. Get a customized list of products with only selected fields for a lightweight response.

Properties

Name Meaning
Page The page number of the product list to retrieve, used for pagination.
Limit The maximum number of products to return per request.
Since ID Fetch products with IDs greater than this value, useful for incremental data fetching.
Fields Specify which product fields to include in the response, allowing for customized data retrieval.

Output

JSON

  • json - The JSON response from the Sapo API containing the list of products and related metadata.

Dependencies

  • Requires an API key credential for authenticating requests to the Sapo API.

Troubleshooting

  • Ensure the API key credential is correctly configured and has the necessary permissions to access product data.
  • Verify that the page and limit parameters are within acceptable ranges to avoid empty or partial responses.
  • Check the since_id parameter to ensure it is a valid product ID to prevent errors or empty results.
  • If specifying fields, ensure the field names are valid according to the Sapo API documentation to avoid errors.

Links

  • Sapo API Documentation - Official documentation for the Sapo API, including details on product endpoints and parameters.

Discussion