CA
afraid-scarlet
Get user payment status from actor
Hi,
I have a PPR actor and want to access the user's payment status so I can prioritize their queries and set some limitations for non-paying users as well. My current actor implementation is in Node js. I understand that there is an endpoint
/users/me
but how do I get this info via my actor. Below is a skeletal implemention of the actor:
Thanks! 🙏9 Replies
@Jan Novotny will reply you soon 🙂
genetic-orange•15mo ago
Hi, you can get user info like this:
See: https://docs.apify.com/api/client/js/reference/class/UserClient#get
There is
isPaying
flag to check if user is paying or not. So you can have:
afraid-scarletOP•15mo ago
Thanks! Will test it out 👍
@Jan Novotny Smooth! That works, thanks. 🚀
One last question: if a user is subscribed to the creator plan (https://apify.com/pricing), will that also show as
true
OR they cannot even use the actor, to begin with?genetic-orange•15mo ago
The user subscribed to the creator plan will have the flag set to true. But they shouldn't be able to use the actor from the store as they have limited access to public actors.

afraid-scarletOP•15mo ago
Thank you, that helps!
@Jan Novotny can you point me where in the docs I can find the
isPaying
flag? I do not see it on the link you have posted.like-gold•9mo ago
Actor.apifyClient.user().get()?.isPaying
Thanks, but I meant some link to the docs where is this property listed with description what it means. But I guess there is not any.
protestant-coral•9mo ago
there are not