Customers subscriptions statistics
GET /v2/subscription/customers/:tenantId/statistics
Retrieves aggregated statistical data for customer subscriptions. The endpoint returns counts and total prices grouped by subscription status, including active, expired, in cancellation, cancelled, and total. Supports the same filtering, sorting, and pagination parameters as the subscription list endpoints.
Query Parameters
~filter[_id]- Parameter for ~filter[_id]~filter[tenant]- Parameter for ~filter[tenant]~filter[start_date]- Parameter for ~filter[start_date]~filter[end_date]- Parameter for ~filter[end_date]~filter[price]- Parameter for ~filter[price]~filter[items.sku]- Parameter for ~filter[items.sku]~filter[agreementPrice]- Parameter for ~filter[agreementPrice]~search- Parameter for ~search
Request Example
GET /v2/subscription/customers/:tenantId/statistics
Headers
Accept- Expected response format (Example:application/json, text/csv)
Response Example
{
"active": {
"count": 12,
"price": 5400
},
"expired": {
"count": 3,
"price": 1200
},
"in_cancellation": {
"count": 1,
"price": 450
},
"cancelled": {
"count": 4,
"price": 1800
},
"total": {
"count": 20,
"price": 8850
}
}