cURL
curl --request GET \ --url https://api.raul.ugps.io/api/v1/subscription_history/count-by-status \ --header 'Authorization: Bearer <token>'
{ "count": 123, "status_id": 123, "status_name": "<string>", "date_from": "<string>", "date_to": "<string>" }
Count subscriptions that changed to a specific status in a date range
Bearer token authentication
Status ID to count (2 = Desactivado)
Start date (ISO 8601)
End date (ISO 8601)
Filter by client ID
Count of status changes
Number of status changes
Status ID
Status name
Start date of range
End date of range