curl --request GET \
--url http://localhost:8080/partners/referrers/{user_id}/stats/compare{
"current_period": {
"days": 123,
"start": "<string>",
"end": "<string>",
"referrals_count": 123,
"earnings_kopeks": 123
},
"previous_period": {
"days": 123,
"start": "<string>",
"end": "<string>",
"referrals_count": 123,
"earnings_kopeks": 123
},
"change": {
"referrals": {
"absolute": 123,
"percent": 123,
"trend": "<string>"
},
"earnings": {
"absolute": 123,
"percent": 123,
"trend": "<string>"
}
},
"user_id": 123
}Сравнение периодов для реферера.
curl --request GET \
--url http://localhost:8080/partners/referrers/{user_id}/stats/compare{
"current_period": {
"days": 123,
"start": "<string>",
"end": "<string>",
"referrals_count": 123,
"earnings_kopeks": 123
},
"previous_period": {
"days": 123,
"start": "<string>",
"end": "<string>",
"referrals_count": 123,
"earnings_kopeks": 123
},
"change": {
"referrals": {
"absolute": 123,
"percent": 123,
"trend": "<string>"
},
"earnings": {
"absolute": 123,
"percent": 123,
"trend": "<string>"
}
},
"user_id": 123
}1 <= x <= 3651 <= x <= 365Successful Response