Skip to main content
Question

Hourly Promotional Entitlements

  • November 20, 2022
  • 1 reply
  • 195 views

Forum|alt.badge.img+2

Is it possible to give user a hourly or shorter promotional entitlement with REST API?

This post has been closed for comments

1 reply

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • November 23, 2022

This is possible with our current API but it is not obvious. Grant a promotional with a start time in the past. Adjust the start time so that the end time lands when you need. So for example if you want to grant a promotional entitlement for just one hour, grant a daily promotional (which is 24 hours) but set the start time to 23 hours in the past. The end time will then be 1 hour in the future.