GET api/statistics/usersavings?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| fromDate | date |
Required |
|
| toDate | date |
Required |
|
| countryId | integer |
None. |
|
| defaultPortalId | integer |
None. |
|
| customerId | integer |
None. |
Body Parameters
None.
Response Information
| Name | Description | Type | Additional information |
|---|---|---|---|
| Summary | SavingsSummary |
None. |
|
| TimeSpanSummary | SavingsTimeSpanSummary |
None. |
|
| Currency | CurrencyModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"summary": {
"directDealsPurchase": 1,
"directDealsSavings": 2,
"cashbackPurchase": 3,
"cashbackSavings": 4,
"shoppingCardPurchase": 5,
"shoppingCardSavings": 6,
"eVoucherSavings": 7,
"eVoucherPurchase": 8
},
"timeSpanSummary": {
"directDealsPurchase": 1.1,
"directDealsSavings": 2.1,
"directDealsSavingsPercent": 3.1,
"directDealsSavingsPrUser": 4.1,
"directDealsSavingsPrOrder": 5.1,
"directDealsOrdersCount": 6,
"cashbackPurchase": 7.1,
"cashbackSavings": 8.1,
"cashbackSavingsPercent": 9.1,
"cashbackSavingsPrUser": 10.1,
"cashbackSavingsPrOrder": 11.1,
"cashbackOrdersCount": 12,
"shoppingCardPurchase": 13.1,
"shoppingCardSavings": 14.1,
"shoppingCardSavingsPercent": 15.1,
"shoppingCardSavingsPrUser": 16.1,
"shoppingCardSavingsPrOrder": 17.1,
"shoppingCardOrdersCount": 18,
"totalPurchase": 19.1,
"totalSavings": 20.1,
"totalSavingsPercent": 21.1,
"totalSavingsPrUser": 22.1,
"totalSavingsPrOrder": 23.1,
"totalSavingsOrdersCount": 24,
"eVoucherSavings": 25.1,
"eVoucherPurchase": 26.1,
"eVoucherSavingsPercent": 27.1,
"eVoucherSavingsPrUser": 28.1,
"eVoucherSavingsPrOrder": 29.1,
"eVoucherOrdersCount": 30
},
"currency": {
"currencyName": "sample string 1",
"currencySymbol": "sample string 2",
"currencySymbolIsPrefix": true
}
}