statsDailyAmounts
Syntax
statsDailyAmounts( from='-7d', to='now' )
Returns a list of daily sales.
Access rights
Read access or full access required.
Arguments
from – time, e.g.
- “2014-02-28 23:11:24”
- “now” for now
- “-3d” for exactly 3 days ago
- “-6h” for exactly 6 hours ago
- “-10m” for exactly 10 minutes ago
- “-30s” for exactly 30 seconds ago
Default value for ‘from’ is ‘-7d’, i.e. 7 days ago.
to – time – see ‘from’.
Default value is ‘now’ i.e. today’s date
Return data
amount_list: list of sales with these fields:
- day – the date e.g.: 2017-10-31
- currency – the currency, e.g. EUR
-
in the role as vendor
- vendor_share_amount – the amount that the user gets paid as vendor
- vendor_brutto_amount – the gross sales which the user achieved as vendor
- vendor_netto_amount – analogous to net sales
-
in the role as affiliate
- affiliate_share_amount – the amount that the user gets paid as affiliate
- affiliate_brutto_amount – the gross sales which the user achieved as affiliate
- affiliate_netto_amount – analogous to net sales
-
in other roles(e.g. joint venture partner)
- other_share_amount – the amount that the user gets paid in other roles
- other_brutto_amount – the gross amount which the user has achieved in other roles
- other_netto_amount – analogous to net sales
-
Total amounts
- total_share_amount – the user’s total payout amount
- total_brutto_amount – the total gross sales achieved
- total_netto_amount – the total net sales achieved
Was this helpful?