#Mota

1 messages · Page 1 of 1 (latest)

lusty prairieBOT
keen breach
#

Hey there, can you explain more about what you're trying to do, and what you've tried already?

#

Is something not working like you expect?

haughty flame
#

I'm trying to get the subscription activity history, and from what I've seen the events are the best way

#

the thing is, from the api I can only get events up to the last 30 days, and I want the lifetime events

#

so I was wondering if there is a way to get all ids from the events related to a subscription

keen breach
#

Event retrieval is limited to 30 days, thats accurate. See here:

#

List events, going back up to 30 days.

haughty flame
#

so there's no way I can get all event for a subscription?

keen breach
#

Correct, there is not. Instead, you can look at the Invoice and Payment objects, but events past 30 days are not available.

haughty flame
#

the thing is, invoices and payment objects don't give all the information that I need

keen breach
#

What information are you trying to get?

haughty flame
#

everything since plan changes, applied discounts, manual cancellations and reactivations

#

everything that helps me build a timeline of the subscription activity throughout its lifetime

keen breach
#

Unfortunately that's not something you're going to be able to get from old events beyond 30 days. You will likely need to look at building a simplified history based on the subscription and invoice objects, such as start date and renewals etc.

#

You can look at invoice items on invoices over time to see when plans/prices might have changed

haughty flame
#

that's what I'm doing at the moment, but there's still some info missing

keen breach
#

Yea certain action might not leave any imprint on the invoice or subscription objects, such as scheduling a future cancellation that is subsequently undone

lusty prairieBOT
haughty flame
#

that's why I wanted to get the events ids, so I could get them and build the timeline based on them