Get usage snapshot for a month

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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

Start date - must be the 1st of the month (YYYY-MM-01)

string
required

End date - must be in the same month as startDate (YYYY-MM-DD). Note: Effectively ignored for calculation - always calculates for entire month (MTD if current month, full month if past)

string
^[0-9a-fA-F]{24}$

Optional filter by specific partner (MongoDB ObjectId)

string
^[0-9a-fA-F]{24}$

Optional filter by specific organization (MongoDB ObjectId)

integer
1 to 500

Maximum number of results to return (default: 100, max: 500)

integer
0 to 9007199254740991

Number of results to skip for pagination (default: 0)

Headers
uuid

Optional client-supplied unique ID for one request. The server generates a UUID v4 if omitted and always echoes the value in the response.

uuid

Optional ID that flows across service boundaries for distributed tracing. The server generates a UUID v4 if omitted and always echoes the value in the response.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json