Question

API https://api.revenuecat.com/v1/subscribers/ returns active subscription for the users who failed to renew subscription

  • 15 October 2023
  • 1 reply
  • 22 views

Badge +3

As you can see, the user’s subscription is cancelled due to a billing error but the api returns the user still have active subscription. can you guys help me to solve the issue?


1 reply

Userlevel 4
Badge +8

Hi, in this case if you did not receive an expiration event after the cancellation, then it means this user most likely successfully renewed their subscription. Without seeing this user and their Stripe event history I cannot say for sure why this renewal event is not showing, but it may be that you did not send us the Stripe purchase at the right event. You’ll want to post this receipt to RevenueCat at the checkout.session.completed event: https://www.revenuecat.com/docs/stripe#5-send-stripe-tokens-to-revenuecat

 

If you are posting them at this event, you may want to check this user’s Stripe event history to see if this event is generated for them. If it is not, then you could also send the receipt to RevenueCat for the customer.subscription.created event as well (you can send purchases on both events if you’d like, we will not double-count them).

Reply