curl --request GET \
--url https://api.example.com/cabinet/admin/stats/sales/renewals \
--header 'Authorization: Bearer <token>'{
"total_renewals": 123,
"total_revenue_kopeks": 123,
"renewal_rate": 123,
"current_period": {
"count": 123,
"revenue_kopeks": 123
},
"previous_period": {
"count": 123,
"revenue_kopeks": 123
},
"change": {
"absolute": 123,
"percent": 123,
"trend": "<string>"
},
"daily": [
{
"date": "<string>",
"count": 123
}
]
}Get renewal statistics with period comparison.
curl --request GET \
--url https://api.example.com/cabinet/admin/stats/sales/renewals \
--header 'Authorization: Bearer <token>'{
"total_renewals": 123,
"total_revenue_kopeks": 123,
"renewal_rate": 123,
"current_period": {
"count": 123,
"revenue_kopeks": 123
},
"previous_period": {
"count": 123,
"revenue_kopeks": 123
},
"change": {
"absolute": 123,
"percent": 123,
"trend": "<string>"
},
"daily": [
{
"date": "<string>",
"count": 123
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes