# List wholesale invoices

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

Your partner account's issued wholesale invoices, newest period first, with each client organisation's subtotal. Drafts (the month in progress) are not listed. Test keys get an empty list.

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

Operation ID: `partner_billing_invoices_list`.

## Parameters

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | no | How many objects to return, 1–100 (default 20). |
| `starting_after` | `string` | no | A cursor (`next_cursor`) or object ID: return the objects after it (older). |
| `ending_before` | `string` | no | A cursor or object ID: return the objects before it (newer). |
| `status` | `"open" \| "paid" \| "failed" \| "void" \| "uncollectible"` | no | Only invoices in this status. |

### 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 `PartnerInvoiceList`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `PartnerInvoice[]` | — |
| `has_more` | `boolean` | Whether more objects follow in the requested direction. |
| `next_cursor` | `string \| null` | Pass as starting_after (or ending_before, when paging backwards) to continue; null on the last page. |
| `url` | `string` | The list's path. |

Example:

```json
{
  "data": [
    {
      "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"
      }
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/partner/invoices"
}
```

### 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

for await (const invoice of mv.partnerBilling.invoices.list()) {
	console.log(invoice);
}
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for invoice in client.partner_billing.invoices.list():
    print(invoice)
```

**cURL**

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