Retrieve usage per client organization
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const partnerUsageReport = await mv.partnerBilling.usage.retrieve();console.log(partnerUsageReport);from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
partner_usage_report = client.partner_billing.usage.retrieve()print(partner_usage_report)curl https://api.morevoice.ai/v1/partner/usage \ -H "Authorization: Bearer $MOREVOICE_API_KEY"Usage of each of your client organisations for a date range, and for your wholesale clients its price at wholesale (what you pay) and at your retail prices (what you charge). Closed months use their invoice’s figures; other months are estimates (provisional). Test keys get an empty report.
Try it in the API playground with a test-mode key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The first day (YYYY-MM-DD, your time zone). Default: the first day of the current month.
The last day, inclusive (up to 400 days after from). Default: today.
client (default): data has one row per client organisation; kind: one row per usage kind across your clients.
Header Parameters
Section titled “Header Parameters”The API version to use for this request. Defaults to the version the API key is pinned to.
Example
2026-11-01Responses
Section titled “Responses”OK
Usage per client organisation at wholesale and at your retail prices.
object
object
Group client: the client’s AI minutes.
Group kind: the usage kind; null in client rows.
object
The usage kind, e.g. ai_minute, seat_day, copilot_seat_day, qa_scored_call, carrier_minute, sms.
The client’s name (group client).
true in live mode, false in test mode.
Some amounts are estimates (a month not invoiced yet, or cut by the range). Closed months with an invoice use the invoice’s figures.
Your time zone: the days and months are its local calendar.
The whole range, wholesale clients; your programme fees are on your invoice, not here.
object
An amount of money in minor units.
object
The amount in the currency’s minor unit (agorot, cents).
ISO 4217 currency code.
An amount of money in minor units.
object
The amount in the currency’s minor unit (agorot, cents).
ISO 4217 currency code.
An amount of money in minor units.
object
The amount in the currency’s minor unit (agorot, cents).
ISO 4217 currency code.
Example
{ "currency": "ILS", "data": [ { "ai_minutes": 3120.5, "billing_mode": "wholesale", "events": 1840, "kind": null, "kinds": [ { "events": 1650, "kind": "ai_minute", "quantity": 3120.5, "retail": { "amount": 131061, "currency": "ILS" }, "unit": "minute", "wholesale": { "amount": 81133, "currency": "ILS" } } ], "margin": { "amount": 49928, "currency": "ILS" }, "name": "Haifa Dental Clinic", "organization": "org_6Hn3QpX8vB2mK9tL4wR7yZ", "retail": { "amount": 131061, "currency": "ILS" }, "wholesale": { "amount": 81133, "currency": "ILS" } } ], "from": "2026-11-01", "group": "client", "livemode": true, "object": "partner_usage_report", "provisional": false, "timezone": "Asia/Jerusalem", "to": "2026-11-30", "total": { "margin": { "amount": 49928, "currency": "ILS" }, "retail": { "amount": 131061, "currency": "ILS" }, "wholesale": { "amount": 81133, "currency": "ILS" } }}The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "parameter_missing", "doc_url": "https://docs.morevoice.ai/api/errors#parameter-missing", "message": "Missing required parameter: to.", "param": "to", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "invalid_request_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
No valid API key was sent.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "invalid_api_key", "doc_url": "https://docs.morevoice.ai/api/errors#invalid-api-key", "message": "Invalid API key.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "authentication_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
The key may not do this (a missing scope, a plan limit, or a compliance block).
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "missing_scope", "doc_url": "https://docs.morevoice.ai/api/errors#missing-scope", "message": "This API key lacks the calls:write scope.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "permission_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
No object with this ID (in the path or the body) exists in this organisation and mode.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "resource_missing", "doc_url": "https://docs.morevoice.ai/api/errors#resource-missing", "message": "No such object: 'call_4Gk2'.", "param": "id", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "not_found" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
Too many requests, or no call capacity right now. Retry after the Retry-After delay.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "rate_limited", "doc_url": "https://docs.morevoice.ai/api/errors#rate-limited", "message": "Too many requests. Retry after 1 second.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "rate_limit_error" }}Headers
Section titled “Headers”Seconds to wait before retrying.
The request’s ID (req_…). Quote it when you contact support.
Something went wrong on MoreVoice’s side. Retry with the same Idempotency-Key.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the error.
Example
{ "error": { "code": "internal_error", "doc_url": "https://docs.morevoice.ai/api/errors#internal-error", "message": "Something went wrong on MoreVoice's side.", "request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ", "type": "api_error" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.