Product/count deprecated


The documentation
shows the product count api.
However, when I try it, I get:
“error_message”: “‘NoneType’ object has no attribute ‘rule’”,
“param”: null

If that is correct, how I can I know the total number of products so I can set the number of times I will the API product (once we have a 100 records limit per call).


Hey @sergio.nader
The error you’re getting is because you are missing a trailing slash. Since the count endpoint is deprecated, you can use the /product/ endpoint which returns a count element with the list of products

Thank you!
I am using the product call to get the total count now.