Skip to main content
Solved

API downgrade/entitlement renew information


Forum|alt.badge.img+3

Hello,

 

in the iOS SDK theres information about the renewal of entitlement, but not in the REST API. Is there a reason for this? we are validating the subscription on backend and need full information to also serve back subscription information to the user.

 

Also how can I detect user chose to downgrade to lower subscription in the same group on next renewal?

 

Thanks

Best answer by zdnkt

My mistake, I’ve missed the `product_identifier`.

 

Thanks.

View original
Did this post help you find an answer to your question?

3 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 497 replies
  • February 2, 2022

Hello @zdnkt,

Can you clarify what you mean about the iOS SDK having renewal information, but not the REST API? Our GET /subscriber endpoint is the same endpoint we use in the SDK and includes the latest purchase/renewal date for entitlements - you can read about the endpoint in our documentation here: https://docs.revenuecat.com/reference/subscribers

To detect product changes, you can subscribe to webhooks and look for PRODUCT_CHANGE events, which include information about the change so you can reconcile your own backend. Renewal events will also include the product ID that was renewed.


Forum|alt.badge.img+3
  • Author
  • Helper
  • 2 replies
  • Answer
  • February 2, 2022

My mistake, I’ve missed the `product_identifier`.

 

Thanks.


Forum|alt.badge.img+3
  • Author
  • Helper
  • 2 replies
  • February 2, 2022

Actually how can I tell from REST API if the subscription will renew? :)

 

EDIT: by checking unsubscribed at :)


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