statsSales
Syntax
statsSales( period='week', from='',
to='')
Returns a list of sales statistics.
Access rights
Read access or full access required.
Arguments
period – ‘day’, ‘month’, ‘quarter’ or ‘year’
from – date, e.g. 2017-12-31 for New Year’s Eve 2017
to – date
Return data
the sales statistics
Array
[data] => Array
(
[amounts] => Array
(
[EUR] => Array
(
[0] => Array
(
[from] => 2016-04-01
[to] => 2016-04-30
[vendor_share_amount] => 26922.49
[vendor_brutto_amount] => 38923.84
[vendor_netto_amount] => 33483.64
[affiliate_share_amount] => 147.61
[affiliate_brutto_amount] => 748.44
[affiliate_netto_amount] => 650.85
[other_share_amount] => 0
[other_brutto_amount] => 0
[other_netto_amount] => 0
[total_share_amount] => 27070.1
[total_brutto_amount] => 38923.84
[total_netto_amount] => 33483.64
)
[1] => Array
(
[from] => 2016-05-01
[to] => 2016-05-31
[vendor_share_amount] => 513.43
[vendor_brutto_amount] => 849.33
[vendor_netto_amount] => 725.5
[affiliate_share_amount] => 0
[affiliate_brutto_amount] => 0
[affiliate_netto_amount] => 0
[other_share_amount] => 0
[other_brutto_amount] => 0
[other_netto_amount] => 0
[total_share_amount] => 513.43
[total_brutto_amount] => 849.33
[total_netto_amount] => 725.5
)
)
)
[from] => 2016-04-01
[to] => 2016-05-31
[period] => month
)