PULLFIRST[THE RECORD]
API ReferenceAg Enforcement

Get AG enforcement statistics

GET
/v1/ag-enforcement/stats

Returns aggregated AG enforcement data including:

  • Total cases and penalties
  • Cases by year
  • Cases by order type
AuthorizationBearer <token>

API key passed as a Bearer token. Keys start with sk_live_.

In: header

Response Body

application/json

curl -X GET "https://loading/api/docs-proxy/v1/ag-enforcement/stats"
{
  "totalCases": 0,
  "totalPenalties": 0.1,
  "averagePenalty": 0.1,
  "byYear": [
    {
      "year": 0,
      "count": 0,
      "totalPenalty": 0.1
    }
  ],
  "byOrderType": [
    {
      "orderType": "string",
      "count": 0,
      "totalPenalty": 0.1
    }
  ]
}