Platform API
Account usage and invoices
Query organization usage, time series, metering status, and final account invoices.
https://app.mindbill.org/partner/v2/developer/account/usageReconcile bill activity by customer and compare it with the partner account invoice.
This endpoint requires a server API key and is unavailable to browser sessions. See the component API inventory for exact paths and SDK methods.
Query parameters
fromstringFirst date in UTC, inclusive (YYYY-MM-DD). Defaults to the first day of this month.
tostringLast date in UTC, inclusive (YYYY-MM-DD). Maximum range: 366 days.
interval"day" | "week" | "month"Time series bucket size.
organizationIdstringFilter gross usage to one customer organization. Invoice amounts remain account-wide.
Examples
curl 'https://app.mindbill.org/partner/v2/developer/account/usage?from=2026-10-01&to=2026-10-31&interval=day' \
--header "Authorization: Bearer $MINDBILL_ACCOUNT_KEY"Response
200 OK
{ "periodStart": "2026-10-01", "periodEnd": "2026-11-01", "interval": "day", "organizationId": null, "currency": "usd", "submittedBills": 3, "usageAmountCents": 300, "organizationBreakdown": [{ "organizationId": "org_example", "organizationName": "Example Practice", "submittedBills": 3, "usageAmountCents": 300 }], "series": [], "metering": { "pending": 0, "delivering": 0, "delivered": 3, "retry": 0, "dead": 0, "skipped": 0 }, "billing": { "status": "available", "scope": "account", "invoices": [], "totals": { "subtotalCents": 0, "totalCents": 0, "creditAppliedCents": 0, "amountDueCents": 0, "amountPaidCents": 0, "amountRemainingCents": 0 } } }periodStartRequiredstringInclusive UTC report start.
periodEndRequiredstringExclusive UTC report end.
organizationBreakdown[]Requiredobject[]Submitted bill counts and gross usage cents by organization.
series[]Requiredobject[]Submitted bill counts and gross usage cents by selected interval.
meteringRequiredobjectPending, delivering, delivered, retry, dead, and skipped usage event counts.
billing.statusRequired"available" | "no_billing_account" | "not_configured" | "unavailable"Whether Stripe invoice details are available.
billing.invoices[]Requiredobject[]Finalized account invoices overlapping the report period, with subtotal, total, credit, due, paid, and remaining amounts in cents.
billing.totalsRequiredobject | nullAccount invoice amount totals in cents, including credits and payments when available.