Question

Programmatically set entitlements for one-time purchase or workaround

  • 25 October 2022
  • 1 reply
  • 88 views

Badge +1

Our company is working on healthcare educational software that allows users to pay for multiple years via Stripe. While this is not the norm in software, it is somewhat normal with healthcare and educational software. From what I can tell, RevenueCat does not allow entitlement or subscription modification of any kind, nor does it allow manual assignment of entitlements (outside of a one-year promotional entitlement) via the API.

Is there any way to programmatically grant/modify a user’s entitlement with RevenueCat, or expire a user’s entitlement via the API?


1 reply

Userlevel 6
Badge +8

Hey @David Hicks,

The stores don’t allow developers to modify subscriptions in this way - but promotional entitlements are just about the closest we can get right now. These aren’t related to store transactions in any way, and are a RevenueCat-specific feature to allow for easy granting/revoking of various time lengths.

In this case, I’d recommend storing the “years” on your end, and keep granting promotional entitlements to the users as needed. It would take a bit of work, but you should be able to take advantage of our API from your server: https://www.revenuecat.com/reference/grant-a-promotional-entitlement 

Reply