Solved

API downgrade/entitlement renew information

  • 2 February 2022
  • 3 replies
  • 62 views

Badge +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

icon

Best answer by zdnkt 2 February 2022, 16:51

View original

3 replies

Userlevel 6
Badge +8

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.

Badge +3

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

 

Thanks.

Badge +3

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

 

EDIT: by checking unsubscribed at :)

Reply