Is it possible to get the customer purchased items history and refunds history with using api ?
Refund history – no, the API does not make refund data available to us.
Purchase history – yes, but not directly. You’ll most likely want to use OAuth for this to obtain an access token for each buyer’s account with the desired permissions. It’s possible to do the same by asking customers to provide their own API key, but this would allow you to see all of their purchases including from other authors. That’s not very privacy friendly so I don’t recommend it.
Thank you for your response.
Possible to take ratings?
Unfortunately not. The API is pretty simple and only offers the most essential data.
I’m sure you are already aware of this page, but everything the API offers is listed here: https://build.envato.com/api/
The only endpoint not listed on that page that I’m aware of is https://api.envato.com/whoami which just returns information about the current token/user.