#Robert-find-old-requests
1 messages ยท Page 1 of 1 (latest)
๐ Hi there, Happy to help!
You can try filtering all the API requests related to a resourceId via your dashboard?
https://dashboard.stripe.com/logs?object=sub_1234
Hey @bleak trench ๐
That looks promising!
Any way we can do it via API call as well? (We're using Ruby version of the API if that matters).
When using APIs you can filter just by event type but not with resource Id unfortunately.
https://stripe.com/docs/api/events/list#list_events-type
I see.
List events, going back up to 30 days.
Stripe documentation says that there's access for up to 30 days back via API, while we need the data for the last 12 months.
How can we do that?
Yes, there is a retentials of 30 days for events, that's why I suggest you to filter by request
Hm... Let me experiment with that and get back to you.
To clarify, do I understand correctly that if we filter the list by request in this manner:
Stripe::Event.list type: 'customer.subscription.updated'
it will fetch events going back as 12 months in the past (i.e. bypass 30 days limitation)?
No, the event listing is limited to 30 days back up,
https://stripe.com/docs/api/events/list#:~:text=List events%2C going back up to 30 days
Meanwhile searching by request via the dashboard, you can go back more than 30 days, in the history
I see. Thanks for clarification. Unfortunately we have thousands of subscriptions, so searching through the dashboard wouldn't be an option.
Returning to the original question (and keeping in mind that the changes occurred in last 12 months):
We want to find out the date when Subscription was changed to new Product. How do we do that?
What approaches could we take to get this information in an automated manner?
Hi ๐ taking over as my teammate needs to step away. It's not easy to retrieve when a request was made to update a Subscription from the API, using the dashboard is going to be the better approach for that.
Hey @heavy kayak ๐
Thanks for stepping in.
Going through thousands of subscriptions manually via dashboard doesn't seem to be an option.
What other alternatives do we have?
There aren't any from our end. You could try going back through your outbound request logs to find the request that was made to update the Subscription (assuming it was made from an integration rather than manual action via the dashboard) and see when that request was made.
Hm... That's unfortunate.
I wonder if we can look at it under other angle somehow:
- we have a
Subscriptionid - we want to know when it was changed (within last 12 months)
Do I understand correctly that Stripe provides no way to do that via API?
That is correct.
Trying to think outside the box here and solve the actual problem...
We have a list of subscriptions that we need to check.
We could write a scraper on our end which will go through subscriptions one by one, open them via dashboard page, i.e.
GET https://dashboard.stripe.com/logs?object=sub_001
GET https://dashboard.stripe.com/logs?object=sub_002
GET https://dashboard.stripe.com/logs?object=sub_003
and fetch the date that way. It shouldn't be more than a couple of thousands requests.
Would that be treated as any violation from our end? i.e. would that cause any inconvenience to Stripe servers, could our IP get banned, etc?
I do not know off-hand.
Is there someone this could be transferred to?
Greatly appreciate prompt answers and willingness to help btw. ๐
Happy to help, but dashboard questions do get a bit outside of our wheelhouse as we focus on the API in this forum. Our Support team may have more insight on these matters:
https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Roger. The question seems to be of a "dev nature" as we're trying to fetch the data for thousands of entities, hence pinged here first. Will try my luck with https://support.stripe.com/?contact=true
If we don't get an answer there/won't come up with a solution in the nearest time - would it be ok to re-ask this question in the #dev-help again? Or would that violate any rules?
About the dashboard question or about using the API to retrieve changes made within the last year?
Robert-find-old-requests
Tbh. not sure.
About finding an automated way to figure out when a number of subscriptions changed their products (within last 12 months).
I would expect that my teammates would provide the same resposne.
I see...
In case there's no scenario on how this could be fetched via API and assuming dashboard does provide access to this data. Whom can I consult if scraping this data in automated manner from the dashboard (as suggested here) #1065627009461518386 message violate any Stripe rules?
Is Support team on https://support.stripe.com/?contact=true the best contact to reach?
Also - what topic would you suggest to pick up "API Integration", "Subscriptions & Invoices" or "Other"?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Yes, and "Other" seems like it would be the best fit.