5 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 200+ members
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
WiniThemes says

Hello,

I am making a call to Envato API trying to fetch earnings-and-sales-by-month. However it returns an empty array. If I request the statement, it works, but I need the former results.

http://marketplace.envato.com/api/v3/winithemes/api-key-was-replaced/earnings-and-sales-by-month.json

Is the API malfunctioning or am I doing something wrong?

Thank you!

3437 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

do you have any sales? if no then its returning properly

5 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 200+ members
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
WiniThemes says

I have commisions. I suppose commisions are earnings, therefore they should be included here.

3437 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

I have commisions. I suppose commisions are earnings, therefore they should be included here.

there is no affiliate information returned by the API

Returns the monthly sales data, as displayed on the user’s earnings page.
5 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 200+ members
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
WiniThemes says

Thanks for your prompt replies.

Actually it is possible. http://marketplace.envato.com/api/v3/winithemes/api-key/statement.json returns earnings, including refferal cuts, the drawback is that it returns only the last 100. If I could get more than 100, lets say 500, that would be way better. And that is supposed to be provided with the earnings and sales by month api call.

3437 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says
5 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 200+ members
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
WiniThemes says

Thank you for that link. Now I see your pain Chris.

I must agree, the API needs some improvements ASAP and it’s a shame it misses such important features as get all earnings and sales data for retrieving the data the api call is saying to do (sales + earnings, and affiliate earnings are also earnings!).

I will request a DEV to reply on this one

5 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 200+ members
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
WiniThemes says

It’s already 5 days since I first requested a staff to reply…

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