panel icon indicating copy to clipboard operation
panel copied to clipboard

Api endpoint for getting purchases

Open anondev-sudo opened this issue 2 years ago • 2 comments

🚀 Feature Request

Is your proposal related to a problem?

Provide a clear and concise description of what the problem is. For example, "I can't change x and it makes me have to do manual work"

(Write your answer here.)

How it is possible to to know if user has purchased credits using api? I am making system that when user left server and had account, email will be sent that it was deleted and account will be deleted using api. But I don't want to do this for users who have purchased credits from store (not just using free initial credits). For those I will send them different email manually, I will just make that bot will send message to private channel letting me know that user who purchased credits has left.

Describe the solution you'd like

Provide a clear and concise description of what you want to happen. For Example, "Automate the changing of x so I don't have to do it manually"

(Describe your proposed solution here.)

Make api endpoint to get all purchases and purchases of specific user.

Additional context

Is there anything else you can add about the proposal? You might want to link to related issues here, if you haven't already.

(Write your answer here.)

anondev-sudo avatar Aug 10 '21 06:08 anondev-sudo

You could check if a user is "client". A user is only a client when he made a successful payment.

IceToast avatar Dec 22 '21 12:12 IceToast

Yes but I want to get list of purchases, to know how many credits has the user purchased

anondev-sudo avatar Dec 22 '21 15:12 anondev-sudo

you can include payments with the route

/api/users?include=payments

1day2die avatar May 09 '23 16:05 1day2die