Skip to main content
Question

How does RevenueCat register subscription status and period types?

  • February 8, 2025
  • 2 replies
  • 126 views

Forum|alt.badge.img

I'm finishing my FlutterFlow app and want to protect content based on user subscriptions. I'll handle the protection with Supabase since there are certain situations where blocked content doesn't depend on whether the user is paying or not.

To do this, I'll use webhooks to send RevenueCat changes to Supabase. The only thing I need to know is how RevenueCat registers users. Researching online, I found the following:

Status: Active / period_type: Normal, Promotional, Intro, Trial
Status: Expired / period_type: Normal, Promotional, Intro, Trial
Status: Non-subscription

I also need to know if these words are registered with the first letter capitalized or not.

I'm asking this because in test environments I can't see how a real user behaves.

Thanks

This post has been closed for comments

2 replies

Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • February 8, 2025

I looked at RevenueCat webhook documentation and found the official subscription status values:


API v1:

For my case, it's important to know exactly what RC will give me since I need to base the app's conditionals on it.

I only have one subscription, with a 1-week free trial and the possibility of offer codes. Android and IOS

 


kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 399 replies
  • February 14, 2025

Hey ​@FreshFlame!

In the first screenshot, it looks like you are looking at our API V2 documentation for the “status” of a subscription, which at this point won’t correspond with webhooks. As you said, the `period_type` field in a webhook has only four values: `normal`, `promotional`, `intro`, and `trial`. 

If you really would like to use the Statuses found in the API V2, I might recommend triggering a call to one of the endpoints after the webhook is received to get this. For example, this endpoint will list all subscriptions associated with a customer, including their status. If the customer has multiple subscriptions, you can use the `transaction_id` in the webhook to match to the `store_subscription_identifier`.


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