# Retrieve a wholesale invoice

`GET https://api.morevoice.ai/v1/partner/invoices/{id}`

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

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `partner_billing_invoices_retrieve`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | A invoice ID (`inv_…`). |

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |

## Responses

### 200 OK

OK Returns `PartnerInvoice`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | `string` | A invoice ID (prefix `inv_`). |
| `object` | `"partner_invoice"` | — |
| `livemode` | `boolean` | `true` in live mode, `false` in test mode. |
| `number` | `string \| null` | — |
| `status` | `"open" \| "paid" \| "failed" \| "void" \| "uncollectible"` | — |
| `currency` | `"ILS" \| "USD" \| "EUR"` | — |
| `period_start` | `string` | An ISO-8601 timestamp in UTC. |
| `period_end` | `string` | An ISO-8601 timestamp in UTC. |
| `subtotal` | `Money` | An amount of money in minor units. |
| `subtotal.amount` | `integer` | The amount in the currency's minor unit (agorot, cents). |
| `subtotal.currency` | `"ILS" \| "USD" \| "EUR"` | ISO 4217 currency code. |
| `tax` | `Money` | An amount of money in minor units. |
| `tax.amount` | `integer` | The amount in the currency's minor unit (agorot, cents). |
| `tax.currency` | `"ILS" \| "USD" \| "EUR"` | ISO 4217 currency code. |
| `total` | `Money` | An amount of money in minor units. |
| `total.amount` | `integer` | The amount in the currency's minor unit (agorot, cents). |
| `total.currency` | `"ILS" \| "USD" \| "EUR"` | ISO 4217 currency code. |
| `issued` | `string \| null` | — |
| `due` | `string \| null` | — |
| `paid` | `string \| null` | — |
| `organizations` | `object[]` | One group per client organisation billed on this invoice. |
| `programme` | `object \| null` | Your programme fee, client organisations beyond those included, and the minimum-commitment true-up. |
| `programme.organization` | `string \| null` | `org_…` ID. |
| `programme.name` | `string \| null` | — |
| `programme.subtotal` | `Money` | An amount of money in minor units. |
| `programme.lines` | `object[]` | On retrieve only. |

Example:

```json
{
  "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"
  }
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
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);
```

**Python**

```python
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**

```sh
curl https://api.morevoice.ai/v1/partner/invoices/inv_7Hk2Lm9Qp \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
