API not working

Hi, are you updating the API? I cant retrieve any info from the API. This has been working flawlessly for the last 2 years and now I get the following error when trying to connect

We are unable to retrieve any information from the API.

I’m also encountering the same problem, nothing is being returned when calling the api to verify purchase codes. :cold_sweat:

Maybe you need to update your code to the version 3 of the API.
you can have an example here: https://codecanyon.net/item/envato-purchase-code-verify-script/19441507

Best regards.

Same issue here.

Are you using https or http version? Few hours back they started redirection of all non SSL requests to SSL.

1 Like

I’m not sure if what @UltimateKode is true (would appreciate any sources for this), but everyone should definitely make sure they’re using SSL for API requests.

If you’re getting errors about peer verification, grab the latest certificate authority bundle and configure your HTTP client to use it so that it will be able to handle SSL requests.

curl_setopt($h, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($h, CURLOPT_CAINFO, "/path/to/ca-bundle.crt");
1 Like

Gotcha! It is now working again after updating the script to use https version of the API.

Thanks for the hint @UltimateKode! :relaxed:


Seems to be working again. Thanks for the info also added the SSL lines to be sure.