get
https://api.benjipays.com/v2/usage
Access: Requires DISTRIBUTOR actor type
Returns usage data for all Organizations under the authenticated distributor for a specified month. Used by distributors (e.g., Sherweb) to show consumption in marketplace dashboards.
Important Notes:
- Always calculates for entire month (MTD if current month, full month if past)
- endDate is validated but effectively ignored for calculation
- NFR plans are represented as $0 plans, no separate flag
- Each organization may have 1+ items: base plan SKU + one row per overage tier (BENJI-{PLAN}-OVERAGE-TIER{n})
Calculation:
- Uses existing billing.js helpers (getPlanTypeFromUser)
- Queries results collection for transaction counts
- Uses user.billing.details for plan info (priceRanges)
- Integrates with autopay.isCompanyInFreeTrial() for trial status
Requires JWT authentication and 'partners:usage:read' scope.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
