---
title: "List invoices"
url: https://docs.corefinity.com/api/reference/billing/list-invoices
type: endpoint
last_updated: 2026-11-13
feature: billing
related:
  - https://docs.corefinity.com/guides/billing/billing-overview.md
  - https://docs.corefinity.com/mcp/tools/corestack_billing_invoices_list.md
---
# List invoices

Answers the account's invoices, newest first, with `total` counting every invoice the filters choose; an
invoice's `lines` are filled only with `with=lines`. Paged by cursor: send `next_cursor` back as `cursor`;
null means the last page.

```http
GET /api/corestack/billing/invoices
```

- Scope: `read`
- Two-factor: required on your account (all)
- Rate limit: 120 a minute
- Try it in the console: on

## Query parameters

- `account` (integer): The billing account to read, by its `id` (see `GET /corestack/billing/account`). Left out, the request acts on your company's default billing account. An account that does not exist and one that is not your company's answer the same 404.
- `account_id` (integer): The same as `account`, under the name the MCP tools use. Send one of the two: when they name different accounts the request is refused `422 invalid` on `account_id`.
- `status` (string): Only invoices with one of these statuses, as a comma list: `open`, `collecting`, `paid`, `unpaid`, `void`, `refunded`, `written_off`.
- `with` (string): `lines` fills each invoice's `lines`.
- `limit` (integer): Items a page.
- `cursor` (string): The `next_cursor` of the previous answer. Anything that is not a whole number is refused `422` on `cursor`.
- `overdue` (string): `1` for only the invoices still to be paid whose due day has passed.
- `issued_from` (string): Only invoices issued on or after this day, as `YYYY-MM-DD`.
- `issued_to` (string): Only invoices issued on or before this day, as `YYYY-MM-DD`.
- `search` (string): Only invoices whose number contains this text.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/corestack/billing/invoices \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->get('https://manage.corefinity.com/api/corestack/billing/invoices');

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/billing/invoices', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
  },
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.get(
    "https://manage.corefinity.com/api/corestack/billing/invoices",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 A page of invoices.

```json
{
  "items": [
    {
      "account": {
        "company": {
          "id": 1180,
          "name": "Northwind Digital"
        },
        "id": 3107
      },
      "amount_due": {
        "amount": "720.00",
        "currency": "GBP"
      },
      "credit_notes": [],
      "credit_tax_amount": {
        "amount": "0.00",
        "currency": "GBP"
      },
      "credits": [],
      "credits_applied": {
        "amount": "0.00",
        "currency": "GBP"
      },
      "currency": "GBP",
      "due_at": "2027-01-15T00:30:00Z",
      "id": 8140,
      "issued_at": "2027-01-01T00:30:00Z",
      "lines": [
        {
          "amount": {
            "amount": "600.00",
            "currency": "GBP"
          },
          "contract_line": {
            "id": 9001,
            "kind": "package",
            "label": "CC8 · Northwind UK 1"
          },
          "description": "CC8 · Northwind UK 1",
          "id": 61020,
          "period": {
            "end": "2027-01-01T00:00:00Z",
            "start": "2026-12-01T00:00:00Z"
          },
          "quantity": "744",
          "unit": "hour",
          "unit_price": {
            "amount": "0.806452",
            "currency": "GBP"
          }
        }
      ],
      "next_collection_at": null,
      "number": "CF-100057",
      "paid_at": null,
      "payment_terms_days": 14,
      "payments": [],
      "pdf": {
        "available": false
      },
      "period": {
        "end": "2027-01-01T00:00:00Z",
        "start": "2026-12-01T00:00:00Z"
      },
      "status": "open",
      "status_label": "Open",
      "subtotal": {
        "amount": "600.00",
        "currency": "GBP"
      },
      "tax": {
        "amount": {
          "amount": "120.00",
          "currency": "GBP"
        },
        "kind": "standard",
        "note": null,
        "rate_percent": 20
      },
      "total": {
        "amount": "720.00",
        "currency": "GBP"
      }
    },
    {
      "account": {
        "company": {
          "id": 1180,
          "name": "Northwind Digital"
        },
        "id": 3107
      },
      "amount_due": {
        "amount": "660.00",
        "currency": "GBP"
      },
      "credit_notes": [
        {
          "amount": {
            "amount": "50.00",
            "currency": "GBP"
          },
          "kind": "applied_credit",
          "number": "CN-CF-100042",
          "pdf_href": "/billing/invoices/8123/credit-notes/CN-CF-100042/pdf"
        }
      ],
      "credit_tax_amount": {
        "amount": "10.00",
        "currency": "GBP"
      },
      "credits": [
        {
          "amount": {
            "amount": "50.00",
            "currency": "GBP"
          },
          "credit": {
            "id": 310,
            "public_note": "Welcome credit"
          }
        }
      ],
      "credits_applied": {
        "amount": "50.00",
        "currency": "GBP"
      },
      "currency": "GBP",
      "due_at": "2026-12-01T00:30:00Z",
      "id": 8123,
      "issued_at": "2026-12-01T00:30:00Z",
      "lines": [
        {
          "amount": {
            "amount": "600.00",
            "currency": "GBP"
          },
          "contract_line": {
            "id": 9001,
            "kind": "package",
            "label": "CC8 · Northwind UK 1"
          },
          "description": "CC8 · Northwind UK 1",
          "id": 61020,
          "period": {
            "end": "2026-12-01T00:00:00Z",
            "start": "2026-11-01T00:00:00Z"
          },
          "quantity": "720",
          "unit": "hour",
          "unit_price": {
            "amount": "0.833333",
            "currency": "GBP"
          }
        }
      ],
      "next_collection_at": null,
      "number": "CF-100042",
      "paid_at": "2026-12-01T00:31:12Z",
      "payment_terms_days": 0,
      "payments": [
        {
          "attempt": {
            "amount": {
              "amount": "660.00",
              "currency": "GBP"
            },
            "attempt_no": 1,
            "failure": null,
            "id": 7731,
            "mandate": null,
            "method": {
              "added_at": "2026-11-01T09:05:00Z",
              "brand": "visa",
              "exp_month": 12,
              "exp_year": 2030,
              "id": 4410,
              "kind": "card",
              "label": null,
              "last4": "4242",
              "provider": "stripe",
              "role": "primary",
              "state": "active",
              "wallet": null
            },
            "provider": "stripe",
            "refunded": null,
            "scheduled_for": null,
            "settled_at": "2026-12-01T00:31:12Z",
            "started_at": "2026-12-01T00:31:00Z",
            "state": "succeeded"
          }
        }
      ],
      "pdf": {
        "available": true
      },
      "period": {
        "end": "2026-12-01T00:00:00Z",
        "start": "2026-11-01T00:00:00Z"
      },
      "status": "paid",
      "status_label": "Paid",
      "subtotal": {
        "amount": "600.00",
        "currency": "GBP"
      },
      "tax": {
        "amount": {
          "amount": "120.00",
          "currency": "GBP"
        },
        "kind": "standard",
        "note": null,
        "rate_percent": 20
      },
      "total": {
        "amount": "720.00",
        "currency": "GBP"
      }
    }
  ],
  "next_cursor": null,
  "total": 2
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope (`scope_required`, with the `scope` to use), your company requires two-factor authentication and you have not set it up (`two_factor_required`), or you may not read your company's billing (`billing_forbidden`): billing is for the company's owner, its billing contacts and its primary user.

```json
{
  "code": "billing_forbidden",
  "message": "Billing is available to your company's owner and billing contacts.",
  "reason": "billing_forbidden"
}
```

### 404 The id does not exist or is something you cannot see, or the feature is not on for your company (`feature_off`).

```json
{
  "code": "feature_off",
  "message": "Not found.",
  "reason": "feature_off"
}
```

### 422 A filter is wrong (`invalid`; `field` names it), or `account` and `account_id` name different billing accounts.

```json
{
  "code": "invalid",
  "errors": {
    "account_id": [
      "Send account or account_id, not both: they name different billing accounts."
    ]
  },
  "field": "account_id",
  "message": "Send account or account_id, not both: they name different billing accounts.",
  "reason": "invalid"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `billing_forbidden` | Billing is for the organisation's owner and billing contacts. Ask one of them to do this. |
| 403 | `company_unavailable` | Your company is unavailable. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 403 | `two_factor_required` | Turn on two-factor on your account, then send again. |
| 404 | `feature_off` | This feature is not on for your organisation yet. |
| 422 | `invalid` | Fix the field named in `field`; `errors` says why. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |

## The same task elsewhere

- Guide: [Billing](https://docs.corefinity.com/guides/billing/billing-overview.md)
- MCP tool: [`corestack_billing_invoices_list`](https://docs.corefinity.com/mcp/tools/corestack_billing_invoices_list.md)
