Get total count of products
This method returns the total number of products in your project. You can optionally pass a filter body to count only products matching specific conditions.
✅ Purpose of the scenario:
- Get the total number of products
- Optionally filter by attribute conditions
- Use count for pagination or availability checks
✅ What you need:
- A valid PROJECT_URL and APP_TOKEN for authentication with the OneEntry API.
- At least one product in the project
📌 Important:
- These examples do not include error handling.
- You can manage errors using a try-catch block or by employing a construction like await Promise.catch((error) => error).
- Pass an empty array [] to count all products without filtering.
Loading sandbox…
