All URIs are relative to https://www.koronacloud.com/web/api/v3
| Method | HTTP request | Description |
|---|---|---|
| getRevenue | GET /accounts/{koronaAccountId}/statistics/revenueData | returns information about the revenue in the given period |
| getRevenueForCustomerGroups | GET /accounts/{koronaAccountId}/statistics/revenueDataForCustomerGroups | returns the turnover per customer group during the given period |
| getRevenueHourly | GET /accounts/{koronaAccountId}/statistics/revenueDataHourly | returns the turnover per hour during the given period |
| getTopSeller | GET /accounts/{koronaAccountId}/statistics/topSeller | returns the top-seller |
StatisticRevenueData getRevenue(koronaAccountId, opts)
returns information about the revenue in the given period
var KoronacloudApiV3 = require('cloud-api-v3-js-client');
var defaultClient = KoronacloudApiV3.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new KoronacloudApiV3.StatisticsApi();
var koronaAccountId = "koronaAccountId_example"; // String | account id of the korona.cloud account
var opts = {
'organizationalUnit': "organizationalUnit_example", // String | number of the organizational unit
'period': "period_example" // String | time period for comparison
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getRevenue(koronaAccountId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| koronaAccountId | String | account id of the korona.cloud account | |
| organizationalUnit | String | number of the organizational unit | [optional] |
| period | String | time period for comparison | [optional] |
- Content-Type: application/json
- Accept: application/json
StatisticMapStringRevenueData getRevenueForCustomerGroups(koronaAccountId, opts)
returns the turnover per customer group during the given period
var KoronacloudApiV3 = require('cloud-api-v3-js-client');
var defaultClient = KoronacloudApiV3.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new KoronacloudApiV3.StatisticsApi();
var koronaAccountId = "koronaAccountId_example"; // String | account id of the korona.cloud account
var opts = {
'organizationalUnit': "organizationalUnit_example", // String | number of the organizational unit
'period': "period_example" // String | time period for comparison
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getRevenueForCustomerGroups(koronaAccountId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| koronaAccountId | String | account id of the korona.cloud account | |
| organizationalUnit | String | number of the organizational unit | [optional] |
| period | String | time period for comparison | [optional] |
- Content-Type: application/json
- Accept: application/json
StatisticMapStringRevenueData getRevenueHourly(koronaAccountId, opts)
returns the turnover per hour during the given period
var KoronacloudApiV3 = require('cloud-api-v3-js-client');
var defaultClient = KoronacloudApiV3.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new KoronacloudApiV3.StatisticsApi();
var koronaAccountId = "koronaAccountId_example"; // String | account id of the korona.cloud account
var opts = {
'organizationalUnit': "organizationalUnit_example", // String | number of the organizational unit
'period': "period_example" // String | time period for comparison
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getRevenueHourly(koronaAccountId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| koronaAccountId | String | account id of the korona.cloud account | |
| organizationalUnit | String | number of the organizational unit | [optional] |
| period | String | time period for comparison | [optional] |
- Content-Type: application/json
- Accept: application/json
StatisticListTopSeller getTopSeller(koronaAccountId, opts)
returns the top-seller
var KoronacloudApiV3 = require('cloud-api-v3-js-client');
var defaultClient = KoronacloudApiV3.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new KoronacloudApiV3.StatisticsApi();
var koronaAccountId = "koronaAccountId_example"; // String | account id of the korona.cloud account
var opts = {
'organizationalUnit': "organizationalUnit_example", // String | number of the organizational unit
'period': "period_example", // String | time period for comparison
'limit': 56 // Number | maximum number of products to show
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getTopSeller(koronaAccountId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| koronaAccountId | String | account id of the korona.cloud account | |
| organizationalUnit | String | number of the organizational unit | [optional] |
| period | String | time period for comparison | [optional] |
| limit | Number | maximum number of products to show | [optional] |
- Content-Type: application/json
- Accept: application/json