Retrieve a wholesale invoice
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);from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
partner_invoice = client.partner_billing.invoices.retrieve("inv_7Hk2Lm9Qp")print(partner_invoice)curl https://api.morevoice.ai/v1/partner/invoices/inv_7Hk2Lm9Qp \ -H "Authorization: Bearer $MOREVOICE_API_KEY"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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A invoice ID (inv_…).
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
A monthly wholesale invoice of your partner account.
object
A invoice ID (prefix inv_).
true in live mode, false in test mode.
One group per client organisation billed on this invoice.
object
On retrieve only.
object
An amount of money in minor units.
object
The amount in the currency’s minor unit (agorot, cents).
ISO 4217 currency code.
Ai_minute, seat, copilot_seat, qa_scored_call, other usage kinds; programme lines: partner_programme_fee, extra_child_org, min_commitment_true_up.
The unit price in the major unit, as a decimal string (e.g. “0.26”).
An amount of money in minor units.
object
The amount in the currency’s minor unit (agorot, cents).
ISO 4217 currency code.
An ISO-8601 timestamp in UTC.
An ISO-8601 timestamp in UTC.
object
On retrieve only.
object
An amount of money in minor units.
object
The amount in the currency’s minor unit (agorot, cents).
ISO 4217 currency code.
Ai_minute, seat, copilot_seat, qa_scored_call, other usage kinds; programme lines: partner_programme_fee, extra_child_org, min_commitment_true_up.
The unit price in the major unit, as a decimal string (e.g. “0.26”).
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.
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", "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.
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.