Skip to content

Retrieve usage per client organization

GET
/partner/usage
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);

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.

from
string
/^\d{4}-\d{2}-\d{2}$/

The first day (YYYY-MM-DD, your time zone). Default: the first day of the current month.

to
string
/^\d{4}-\d{2}-\d{2}$/

The last day, inclusive (up to 400 days after from). Default: today.

group
string
default: client
Allowed values: client kind

client (default): data has one row per client organisation; kind: one row per usage kind across your clients.

MoreVoice-Version
string
/^\d{4}-\d{2}-\d{2}$/

The API version to use for this request. Defaults to the version the API key is pinned to.

Example
2026-11-01

OK

Media typeapplication/json

Usage per client organisation at wholesale and at your retail prices.

object
currency
required
string
Allowed values: ILS USD EUR
data
required
Array<object>
object
ai_minutes
required

Group client: the client’s AI minutes.

number | null
billing_mode
required
Any of:
string
Allowed values: wholesale direct
events
required
integer
>= -9007199254740991 <= 9007199254740991
kind
required

Group kind: the usage kind; null in client rows.

string | null
kinds
required
Any of:
Array<object>
object
events
required
integer
>= -9007199254740991 <= 9007199254740991
kind
required

The usage kind, e.g. ai_minute, seat_day, copilot_seat_day, qa_scored_call, carrier_minute, sms.

string
quantity
required
number
retail
required
Any of:

An amount of money in minor units.

object
amount
required

The amount in the currency’s minor unit (agorot, cents).

integer
>= -9007199254740991 <= 9007199254740991
currency
required

ISO 4217 currency code.

string
Allowed values: ILS USD EUR
unit
required
string
wholesale
required
Any of:

An amount of money in minor units.

object
amount
required

The amount in the currency’s minor unit (agorot, cents).

integer
>= -9007199254740991 <= 9007199254740991
currency
required

ISO 4217 currency code.

string
Allowed values: ILS USD EUR
margin
required
Any of:

An amount of money in minor units.

object
amount
required

The amount in the currency’s minor unit (agorot, cents).

integer
>= -9007199254740991 <= 9007199254740991
currency
required

ISO 4217 currency code.

string
Allowed values: ILS USD EUR
name
required

The client’s name (group client).

string | null
organization
required
Any of:

The client organisation (group client); null in kind rows.

string
/^org_[0-9A-Za-z]+$/
retail
required
Any of:

An amount of money in minor units.

object
amount
required

The amount in the currency’s minor unit (agorot, cents).

integer
>= -9007199254740991 <= 9007199254740991
currency
required

ISO 4217 currency code.

string
Allowed values: ILS USD EUR
wholesale
required
Any of:

An amount of money in minor units.

object
amount
required

The amount in the currency’s minor unit (agorot, cents).

integer
>= -9007199254740991 <= 9007199254740991
currency
required

ISO 4217 currency code.

string
Allowed values: ILS USD EUR
from
required
string
group
required
string
Allowed values: client kind
livemode
required

true in live mode, false in test mode.

boolean
object
required
string
Allowed value: partner_usage_report
provisional
required

Some amounts are estimates (a month not invoiced yet, or cut by the range). Closed months with an invoice use the invoice’s figures.

boolean
timezone
required

Your time zone: the days and months are its local calendar.

string
to
required
string
total
required

The whole range, wholesale clients; your programme fees are on your invoice, not here.

object
margin
required

An amount of money in minor units.

object
amount
required

The amount in the currency’s minor unit (agorot, cents).

integer
>= -9007199254740991 <= 9007199254740991
currency
required

ISO 4217 currency code.

string
Allowed values: ILS USD EUR
retail
required

An amount of money in minor units.

object
amount
required

The amount in the currency’s minor unit (agorot, cents).

integer
>= -9007199254740991 <= 9007199254740991
currency
required

ISO 4217 currency code.

string
Allowed values: ILS USD EUR
wholesale
required

An amount of money in minor units.

object
amount
required

The amount in the currency’s minor unit (agorot, cents).

integer
>= -9007199254740991 <= 9007199254740991
currency
required

ISO 4217 currency code.

string
Allowed values: ILS USD EUR
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.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

No valid API key was sent.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

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).

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

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.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

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.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
Retry-After
integer

Seconds to wait before retrying.

X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

Something went wrong on MoreVoice’s side. Retry with the same Idempotency-Key.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.