Introducing the Chargebee CLI

How to increase the subscription API limit to list all subscriptions? The current limit is 100 entries.

This article covers

How to list all the subscriptions using the API.

Summary

You may want to extract all subscriptions using the List subscriptions API. Each request returns 10 subscriptions by default and at most 100 when you set limit to 100.

Solution

You do not need to raise the limit. Set limit to 100, then repeat the request with offset set to the next_offset value from the previous response. Stop when the response has no next_offset. Contact Chargebee Support if you still need help.