Retrieves the total number of new customers for each aggregation period and the corresponding value for each customer over time.
aggregationField required | string Report aggregation field. |
aggregationPeriod required | string Report aggregation period. |
periodStart required | string <date-time> Date and time when the report starts. |
periodEnd required | string <date-time> Date and time when the report ends. |
includeRefunds | string Specifies whether to include refunds. |
includeDisputes | string Specifies whether to include disputes. |
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending
order, prefix with |
criteria | string Criteria parameter for requesting a collection. |
Report retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
const params = { aggregationField: 'month', aggregationPeriod: 'month', periodStart: '2016-09-01T00:00:00Z', periodEnd: '2017-09-01T00:00:00Z', includeRefunds: true, includeDisputes: false, limit: 20, offset: 0, tz: 0 }; const report = await api.reports.getRetentionValue(params);
{- "data": [
- {
- "aggregationValue": "string",
- "customersCount": 0,
- "periods": [
- {
- "period": 0,
- "retentionAverage": 0,
- "transactionsCount": 0,
- "transactionsValue": 0
}
]
}
]
}