How is the best workaround to check if a user exists or not in RevenueCat using the API without creating new users

96 Views Asked by At

I have a task to get subscriber info from each user in my database. However, some users exist in my database but are not subscribers. The point is RevenueCat offers only one endpoint to do both things (GET and POST). Check it on https://www.revenuecat.com/reference/subscribers.

Whether I request https://api.revenuecat.com/v1/subscribers/{app_user_id} and this app_user_id does not exist in my RevenueCat contacts base, RevenueCat creates a new user as it was a "free subscription" user.

This makes things harder since I already had thought to check that recent created user and delete it according to its attributes. But if it is a real "free subscription" user (an user with no subscriptions in my RevenueCat App) I would be deleting my real user from RevenueCat.

As seen on Request all Revenue Cat customers with the REST API, we do not have an "ETA" about when RevenueCat will offer a decent endpoint to get all customers base.

Other answers which do not helpd me, but it worths mention to avoid misunderstanding:

What is the best workaround it would make sense to adopt here when you cannot request https://api.revenuecat.com/v1/subscribers/{app_user_id} before know that app_user_id actually exists in RevenueCat or not?

0

There are 0 best solutions below