Reputation: 2967
I would like to query my customers (with active / trial subscriptions) from Revenue Cat. I do see that i can get any customer by using this endpoint.
I would like to be able to do some pagination and retrieve the customers directly without having to do 1 request per customer AND know their ID.
I am not sure that this is possible since i have not seen anything in the REST API but i prefer ask to be sure in case i have missed something
Upvotes: 3
Views: 837
Reputation: 2967
Here is the answer from RevenueCat support team :
We will likely have a general "list customers" endpoint within the next couple of months, but for more detailed searching and filtering, we do not currently have an ETA.
So it will likely be available in second half of 2023 !
EDIT : This is still not available in the first Quarter of 2024...
EDIT 2 : This is finally available in 2025 !!
Upvotes: 3
Reputation: 121
I know it's an important feature, but it also brings with it a big security problem, if an attacker manages to obtain one of your secret keys and obtains the complete list of subscribed users, they could, with that information, attack the entire project. It is important that the API key that will have contact with the client (app, js, ect,) only have read permission.
Upvotes: -1
Reputation: 531
We can use the REST API v2 endpoint to retrieve a list of subscriptions, but it is only applicable to web subscriptions that use RevenueCat billing.
https://www.revenuecat.com/docs/api-v2#tag/Customer/operation/list-subscriptions
Upvotes: 0