Skip to content

Retrieve a wholesale invoice

GET
/partner/invoices/{id}
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const partnerInvoice = await mv.partnerBilling.invoices.retrieve("inv_7Hk2Lm9Qp");
console.log(partnerInvoice);

One issued wholesale invoice with its lines grouped per client organisation, then your programme fees.

Try it in the API playground with a test-mode key.

id
required
string
<= 200 characters /^inv_[0-9A-Za-z]+$/

A invoice ID (inv_…).

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

A monthly wholesale invoice of your partner account.

object
currency
required
string
Allowed values: ILS USD EUR
due
required
Any of:

An ISO-8601 timestamp in UTC.

string format: date-time
id
required

A invoice ID (prefix inv_).

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

An ISO-8601 timestamp in UTC.

string format: date-time
livemode
required

true in live mode, false in test mode.

boolean
number
required
string | null
object
required
string
Allowed value: partner_invoice
organizations
required

One group per client organisation billed on this invoice.

Array<object>
object
lines

On retrieve only.

Array<object>
object
amount
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
description
required
string
kind
required

Ai_minute, seat, copilot_seat, qa_scored_call, other usage kinds; programme lines: partner_programme_fee, extra_child_org, min_commitment_true_up.

string
quantity
required
number
unit
required
string
unit_price
required

The unit price in the major unit, as a decimal string (e.g. “0.26”).

string
name
required
string | null
organization
required
Any of:

The client organisation.

string
/^org_[0-9A-Za-z]+$/
subtotal
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
paid
required
Any of:

An ISO-8601 timestamp in UTC.

string format: date-time
period_end
required

An ISO-8601 timestamp in UTC.

string format: date-time
period_start
required

An ISO-8601 timestamp in UTC.

string format: date-time
programme
required
Any of:
object
lines

On retrieve only.

Array<object>
object
amount
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
description
required
string
kind
required

Ai_minute, seat, copilot_seat, qa_scored_call, other usage kinds; programme lines: partner_programme_fee, extra_child_org, min_commitment_true_up.

string
quantity
required
number
unit
required
string
unit_price
required

The unit price in the major unit, as a decimal string (e.g. “0.26”).

string
name
required
string | null
organization
required
Any of:

The client organisation.

string
/^org_[0-9A-Za-z]+$/
subtotal
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
status
required
string
Allowed values: open paid failed void uncollectible
subtotal
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
tax
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
total
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",
"due": "2026-12-31T00:05:00.000Z",
"id": "inv_3Jk8LmN2pQ5rS7tV9wX1yZ",
"issued": "2026-12-01T00:05:00.000Z",
"livemode": true,
"number": "MV-2026-000231",
"object": "partner_invoice",
"organizations": [
{
"name": "Haifa Dental Clinic",
"organization": "org_6Hn3QpX8vB2mK9tL4wR7yZ",
"subtotal": {
"amount": 81133,
"currency": "ILS"
}
}
],
"paid": null,
"period_end": "2026-11-30T22:00:00.000Z",
"period_start": "2026-10-31T22:00:00.000Z",
"programme": {
"name": null,
"organization": null,
"subtotal": {
"amount": 250000,
"currency": "ILS"
}
},
"status": "open",
"subtotal": {
"amount": 331133,
"currency": "ILS"
},
"tax": {
"amount": 59604,
"currency": "ILS"
},
"total": {
"amount": 390737,
"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.