SwiftGoma.SwiftGoma

Search endpoints

Jump to any API endpoint by name, method, or path

Subscriptions

Get subscription stats

GET/api/v1/subscriptions/stats

Returns subscription counts by plan and status. Staff-only.

Requires Authorization
ADMIN, ACCOUNTANT only
Session
Request
curl --request GET \
  --url https://api.swiftgoma.com/api/v1/subscriptions/stats \
  --header 'Authorization: Bearer <access_token>'
200Example response
{
  "success": true,
  "data": {
    "totalActive": 128,
    "byPlan": {
      "starter": 90,
      "growth": 38
    },
    "byStatus": {
      "ACTIVE": 128,
      "CANCELED": 12,
      "PAST_DUE": 4
    }
  }
}