I want to list all customers in Chargebee, and currently I have 101 customers. I use chargebee.Customer.list({'limit': 100}) because in the documentation it says that "optional, integer, default=10, min=1, max=100".
Documentation link: https://apidocs.chargebee.com/docs/api/customers?prod_cat_ver=2#list_customers
I have more than 100 customers but I still do not have "next_offset" returned.
May I ask how I can get all customers? Or 100 customers at first with an offset?
Thanks.
According to the Chargebee documentation for list operations (here), one has to repeatedly call the API until the
next_offsetfield is missing in the response object. Theoffsetparameter allows us to start where we left off.One can use the
limitparameter to ask Chargebee for more customers in one call, reducing the number of total calls we have to make.I included a Python snippet as an example of how to implement pagination.
Unfortunately, we cannot provide help with that, as we cannot access your Chargebee environment and debug.