I have a requirement of getting the total number of Subscriptions of specific plan within duration of one month.
A work around is to use ChargeBee::Subscription.list( ... ).count and set the limit to a very big number (and use next_offset, if ever needed).
To save resources, is there a better way of getting the total items count?
https://apidocs.chargebee.com/docs/api/subscriptions
I have a requirement of getting the total number of
Subscriptionsof specific plan within duration of one month.A work around is to use
ChargeBee::Subscription.list( ... ).countand set the limit to a very big number (and usenext_offset, if ever needed).To save resources, is there a better way of getting the total items count?
https://apidocs.chargebee.com/docs/api/subscriptions