Statistics licenses monthly

Retrieves monthly license usage statistics for reporting and analysis by the user authorized.

get

This endpoint returns a breakdown of license data grouped by date, including totals for licenses created, active, expired, used, unused, and financial details such as total amount, refund, and postpaid billing.

        Filters can be applied to narrow the result set by package, subscription type,
        license type (e.g., Prepaid/Postpaid), and license status (e.g., Active, Inactive).
Query parameters
packageIdstringOptional

The id of the package.

subscriptionIdstringOptional

The id of the subscription type.

typestring · enumOptional

The type of the license.

Possible values:
statusstring · enumOptional

The status of the license.

Possible values:
Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Responses
200

The request was successful.

application/json
get
GET /api/v1/licenses/statistics/monthly HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "totalRemaining": 150,
    "totalLimit": 500,
    "totalLicenses": 350,
    "days": [
      {
        "date": "2025-09-12",
        "items": [
          {
            "packageId": "sApKpllz4sAplsmzha",
            "subscriptionTypeId": "sApKpllz4sAplsmzha",
            "totalLicenses": 50,
            "totalAmount": 1500,
            "currency": "USD",
            "usedLicenses": 30,
            "unusedLicenses": 20,
            "totalNormalAmount": 1800,
            "totalRefundAmount": 100,
            "totalPostpaidAmount": 200,
            "totalMailDeliveryAmount": 20,
            "notStartedLicenses": 5,
            "inactiveLicenses": 3,
            "activeLicenses": 40,
            "expiredLicenses": 2
          }
        ]
      }
    ]
  },
  "errors": []
}

Last updated

Was this helpful?