What this means is, that if you program against this version, it’ll never change in the future, so your app won’t break, and we can continue to improve the API on the edge version, and eventually ‘freeze’ a version 2

Cool I just set default API version to v1 in the SalesDonkey app. Will release updated version in a few hours.

Now ryan, can I ask you something?
In the account dataset there are two variables: total_earnings and balance. I expected total_earnings to represent total amount of money ever earned on that account, while balance would be current amount of money present on the account. But in reality those two variables seem to return always the same value, we withdrew money from our account and both of the variables now show $0.00, while I expected total_earnings to be the amount before withdrawal.

Is it meant to be like this or is it a bug in the API ? I got around this by adding up all earning variables in earnings-and-sales-by-month dataset which works OK.

Now ryan, can I ask you something?
In the account dataset there are two variables: total_earnings and balance. I expected total_earnings to represent total amount of money ever earned on that account, while balance would be current amount of money present on the account. But in reality those two variables seem to return always the same value, we withdrew money from our account and both of the variables now show $0.00, while I expected total_earnings to be the amount before withdrawal.

Hello! The total_earnings is the balance of the earnings in the account at the time of the request. It’s not the ‘total for all time’, it’s the current total withdrawalable earnings.

If they have requested a ‘max amount withdrawal’ it’ll grow up until the cut off time, then it’ll be zero and put in a withdrawal request for the full amount. If they have put a fixed request in at any given time it’ll immediately deduct it from the earnings_total.

So basically, you can think of it as ‘how much money can you withdrawal right now?’, almost. I believe this is what authors look at to figure out how theyr’e doing.

If you want a total earnings of all time, you could pull down the earnings-and-sales-by-month data set.

Post Reply

<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