This is not the official sandbox by envato, I voluntarily created this script to test the purchase code verification process.
This is a script that mocks the real Envato API for verifying purchase codes. You can use this to test a purchase code verification system.
- Real API:
https://api.envato.com/v3/market/author/sale?code=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- Mocks API:
https://sandbox.arcoticsolutions.com/envato/api.php?code=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
For full details on how purchase code verification works, see: https://forums.envato.com/t/#
- Valid code:
829862b2-59ef-42c9-894c-665208ac2f41
- Returns
200
with sale information.
- Returns
- Invalid code:
94252c00-df24-4cf5-99dd-49fc17e23043
- Returns
404
with message 'Purchase code was not found (or) did not belong to one of your items.'.
- Returns
- Improper code:
02b6429f-9274-9a70-03ce49bc5a48
- Returns
403
with message 'Your personal token is incorrect or is missing the required permission.'.
- Returns