How to verify a purchase code using the Envato API

Hi, the method doesn’t work no more. There is not "View the user’s items’ sales history” for personal token:

Also if you go to https://build.envato.com/create-token/?sale:history=t and generate the token, the scope is converted to YOUR purchase not the user’s one.

Anyone know another method?

Thank you!

Hey @Schiocco - The wording for permissions is a little different if you edit them. When editing an existing token, you want to select “View your items’ sales history”, which is selected in your screenshot. It will still work as normal.

Basically, “View your items’ sales history” and “View the user’s items’ sales history” are identical, so whichever one you see works fine. :slight_smile:

1 Like

I’m a bit confused about this API closure. If this is the api being closed, then why does the documention on build.envato.com still show ‘https://api.envato.com/v3/market…’ in most of their examples. If we can’t use this API URL anymore, it would be really helpful for some relevant examples.

I haven’t done much with the API before, but now I’m in a bind because a plugin I rely on is using this URL to verify purchases.

Hi @bolderelements,

Sorry for any confusion! I was referring to the old API at http://marketplace.envato.com/api/ - not sure if the post above was edited or if I saw him using it somewhere else, but that’s what is being removed/shut down (in March).

api.envato.com is the proper API.

Oh good, thank you! So happy to know the plugin should continue working then… It’s no longer supported so I was trying to figure it out on my own. Whew! Some day when I have more time I’ll have to learn it for myself :slight_smile:

1 Like