Get a sponsored group's monthly statement
GET/groups/:group_id/usage
The statement of one sponsored group for one Europe/Paris calendar month: totals (requests, amount charged to the sponsor, share of the quota), one row per client organization, and inside each organization one row per pseudonymized user. Built from the same ledger entries as the sponsor's invoice.
A pseudonym is user- followed by ten hexadecimal characters, stable for one person and one sponsor, never traceable to a person nor comparable across sponsors. Per-user rows are returned only for an organization with at least three distinct users in the month, otherwise only the organization total is given: perUserHidden is "fewer-than-3-users" and users is an empty array.
Requires the invoice:read token ability and at least the org-admin role of the group's owner organization. A member organization has no access to the statement of its own group.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 422
The statement
An ID in the path is not a valid integer
UNAUTHORIZED: the token lacks the grant:read / grant:write ability, or the caller lacks the required role in the organization
GROUP_NOT_FOUND: the group does not exist in the current organization. A group of another organization is a 404 too, including for an admin of a member organization asking for its sponsor's group
GROUP_NOT_SPONSORED: the group is not sponsored
Validation failed