292 posts
  • Exclusive Author
  • Has been a member for 2-3 years
crossroad says

I am trying to use themeforest API to verify purchase. However, I do not have any sample data to test (eg. a test purchase code). Can someone please tell me if there is any way to test the API for the purchase code. I’ll highly appreciate any help in this matter. Thanks.

292 posts
  • Exclusive Author
  • Has been a member for 2-3 years
crossroad says

Hey sushipasta, Thanks for your reply. What you mean that you were wrong? Is there a way to test the API without purchasing any item?

2440 posts
  • Has been a member for 5-6 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Envato Studio (Microlancer) Beta Tester
digitalimpact says

This * 1000. The Marketplace API is good but lacks dummy data. I’ve just had to purchase an item because I thought I’d be able to use that to test the API . I was wrong. >.>’

As I mentioned in a previous post, you obviously need to purchase your own item from a different account, to test it.

Another user has also posted the sample JSON response that you get when an item successfully verifies; I believe it also returns the item ID, so you could test for that.

2440 posts
  • Has been a member for 5-6 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Envato Studio (Microlancer) Beta Tester
digitalimpact says

Another user has also posted the sample JSON response
A link would be helpful. Thanks.

Sorry I couldn’t find it in time; glad to see you did :)

292 posts
  • Exclusive Author
  • Has been a member for 2-3 years
crossroad says

Hey, Thanks for posting this. How did you get this array? Do you have the link digitalimpact mentioned? So that I can get some basic example on how to use this.


Another user has also posted the sample JSON response

A link would be helpful. Thanks.

EDIT : For future reference.

Array  
(  
    [verify-purchase] => Array  
        (  
            [licence] => Regular Licence  
            [item_id] => 147510  
            [buyer] => EnvatoDemo  
            [created_at] => Thu Dec 31 08:28:03 +1100 2009  
            [item_name] => WordPress Car Dealer  
        )  
)  
75 posts Vibe
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
VibeThemes says
Strange…. I tried to test Envato API and alll I get in response is this: {"verify-purchase":{}}

Can anyone paste a sample link. I have rechecked the api documentation and the links but this

http://marketplace.envato.com/api/v3/USERNAME/API-KEY/verify-purchase:550e8400-e29b-41d4-a716-446655440000.json {Offcourse I’ve replaced the username/apikey & purchasecodes}
Simply doesn’t work!!!!
75 posts Vibe
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
VibeThemes says

For anyone who visits this: here’s an example given to us by “Envato” of what is called as improper documentation.

http://marketplace.envato.com/api/edge/Author_Username/Author_API_Key/verify-purchase:Buyer_Item_Purchase_Code.json found this here: http://codecanyon.net/forums/thread/finally-used-the-envato-api/35945?page=1#339754

a million thanks to Philo01. Finally after 4 hours, I can get this working.

Next, I create a new account in Envato and purchase my own product….duh!

by
by
by
by
by
by