Hello,
I need to notify the expiry of the sub a few days before its.
At the moment I’m trying to use the created_At field, but the result date is inaccurate.
Is there a way to know the expiration date directly from the API?
Or do you know the algorithm for calculating the duration of a month used by twitch?
I’m fairly certain there’s a field like lease_seconds or something that you can provide the number of seconds your webhook is active for. If you can do this, then you should know almost exactly when your webhook expires.
You can guess at created_at + 28 days but then thats not reliable.
And in most cases most users are on auto renew anyway. So I’m not sure why it’s useful myself. Unless you are trying to solicit people to reuse their prime sub on a given channel.
And then the end date for that is gawd knows because half the time the token doesn’t release “on time”