I need to use Envato API to verify purchase codes. Put simply, when user provides his purchase code, I need to know which item this code is for (if code is valid, of course). However, reading https://build.envato.com/api/ I got more questions than answers.
-
Docs say API rate is limited ( https://build.envato.com/api/#rate-limit ). However, my header does NOT contain any RateLimit tag. I believe my coding is OK because I can connect to API (I use personal token and NOT oauth) and API returns information I ask for. It even returns header with many data, except RateLimit. Does it mean no more limit, or there’s a bug in API (or my code)?
-
Now, code verification. Which API function should I call to get item’s ID after user provides his purchase code? I did many search on forum without any luck because:
Purchase code verify?? - suggests using “verify-purchase” function, which is not even listed at https://build.envato.com/api/
Best way for Verifying Purchase Codes & Support Packs? - once again, the same function is suggested. Oh well, gave it a try and Envato returned "error on line 1 at column 1"
When can we expect the API to be fixed? - purchase code was removed from “/author/sales” since then.
The worst thing is that Envato doesn’t provide a sandbox like other companies, so I can’t really test it myself; that’s why I ask here. Thank you for your replies.
Update: it looks I’ll have to use https://api.envato.com/v3/market/author/sale?code=xxx Maybe someone could show me the output of content returned by this function (you can mask sensitive data, of course). I need this to complete my API app, but because I didn’t make any sales yet, I can’t use this function. And I don’t want to make any sales before I finish API stuff…
However, API rate limit still remains unclear.