Skip to main content
Question

How to check if user is entitled at the moment via API?

  • January 18, 2024
  • 1 reply
  • 151 views

Forum|alt.badge.img+1

I have everything configured perfectly, the problem is that when I make a call to:

https://api.revenuecat.com/v1/subscribers/user_id

I do not receive directly if the user has an activated entitlement. For example, if you have never been subscribed, it will not return any entitlement, but if you have already had an entitlement, you will have it in the response, even the current subscription is not active.

How are you verifying whether the user is currently subscribed or not via API? Do you compare the expiration date of the entitlement with the current date?

Wouldn't it be easier if the API returned directly whether the person has the active subscription or not?

1 reply

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 266 replies
  • January 22, 2024

Hi! The RevenueCat recommendation is to check if the expiration date has passed or not in order to determine if an entitlement is still active. We wanted to make sure that we allowed for people to see historical data for subscriber information, including past entitlements, through the API and not just display the active ones, but I can provide your feedback regarding this difficulty internally.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings