Skip to main content
Question

trial plan assignment VIA API?


Forum|alt.badge.img+1

we are now planning to implement in-app purchases for mobile using RevenueCat. Given this change, how can we handle the trial plan assignment to a user on register via the backend while integrating with RevenueCat’s in-app purchase system? 

 

any API ?

This post has been closed for comments

3 replies

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 391 replies
  • March 27, 2025

Hi ​@james-,

Depending on the store, you likely won’t need to do anything additional to ensure that an eligible user can take advantage of the trial. You can see in our documentation how to set up free trials or introductory offers for various stores here: https://www.revenuecat.com/docs/subscription-guidance/subscription-offers


Forum|alt.badge.img+1
  • Author
  • Member
  • 5 replies
  • March 28, 2025

hello ​@kaitlin 

I want to assign a trial using the API instead of using the SDK.


kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 391 replies
  • April 3, 2025

Hey ​@james-,

Thanks for specifying. This can be done through the POST /receipts API, using the same process that you would for any purchase, by sending along the fetch token and the app user id: https://www.revenuecat.com/docs/api-v1#tag/transactions

With this information, RevenueCat would be able to tell that it is a trial period and reflect this in the customer history correctly.


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