braintree / braintree_python

Braintree Python library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
242 stars 115 forks source link

Search subscriptions by `updated_at` field? #91

Closed frnsys closed 6 years ago

frnsys commented 7 years ago

Is there any way to search subscriptions by updated_at? I'm trying to query the number of cancellations given a datetime range and currently there doesn't seem to be a way to do that.

frnsys commented 7 years ago

I'm currently trying to search for all subscriptions with a status of Canceled, then iterate over all of them and check if updated_at is within the specified range. But this is very slow and I always hit a ConnectTimeout before I can iterate through the entire result set (of about ~2000 items).

crookedneighbor commented 6 years ago

According to our records, this was answered in a support ticket back in June. I'm going to go ahead and close this, but if you need further assistance, feel free to comment or open a new support ticket.