306 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
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.

306 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
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?

2468 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+2 more
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.

2468 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+2 more
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 :)

306 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
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  
        )  
)  
86 posts Vibe
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
+3 more
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!!!!
86 posts Vibe
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
+3 more
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!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by