Export the grants report with the same filters as GET /entitlements/grants.
With over_limit=true it is the list of add-ons past their tier
(Owner organization only), widest overrun first.
Features:
- Maximum 10,000 grants per export (DoS protection)
- CSV: system id and key, system, product, organization, reseller, add-on, tier, usage, limit, overrun, measured at, order, status, valid until
- PDF: formatted report with metadata and filters applied
- File naming:
addons_export_YYYY-MM-DD_HHmmss.[csv|pdf],addons_over_tier_export_...for the over-limit list
Query parameters
-
Export format
Values are
csvorpdf. -
When "true", only active grants past their tier limit. Owner organization only (ignored otherwise)
Value is
true. -
Matches system name, organization name, add-on id or name and tier label
-
Filter by catalog id
-
Filter by the organization owning the system
-
Filter by grant source
Values are
manual,shop, orlegacy-import. -
When "true", only active grants
Value is
true.
GET
/entitlements/grants/export
curl \
--request GET 'https://my.nethesis.it/backend/api/entitlements/grants/export?format=csv' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}