# Invoices

> Read your practice's issued invoices and the amounts recorded against them.

Source: https://docs.usejump.co.uk/api-reference/invoices

* **Scope:** `read_invoices`, granted explicitly. Patient or payment scopes don't include it, and existing keys don't gain it automatically.
  * **Issued invoices only.** Drafts and invoices with no or an unknown status are excluded. Nothing here creates or changes an invoice.
  * **Statuses:** `open`, `past_due`, `partially_paid`, `paid`, `void`, `uncollectible`, `refunded`, `partially_refunded`, `credited`. Overdue is never inferred from today's date.
  * **Amounts are recorded facts, not a recalculated ledger.** All seven amount fields (`amount_cents`, `amount_due_cents`, `amount_paid_cents`, `amount_refunded_cents`, `amount_remaining_cents`, `amount_balance_applied_cents`, `amount_credited_to_balance_cents`) are integers in minor units (pence), keep their sign, and stay null when unrecorded. Inconsistent statuses or dates are not repaired, and no payment, credit or refund total is derived.
  * **Don't sum invoices for a billing total.** A replaced invoice keeps its original amount alongside its replacement, so adding every row double-counts. The replacement and predecessor ids link them; a link is only shown when the other invoice is visible, in your practice and for the same patient (otherwise that invoice may be unavailable until its reference is fixed).
  * **Currency** is the exact three-letter code as recorded, case-sensitive and never assumed to be GBP.
  * **`invoice_number`** is the issued Stripe number, otherwise the Xero number, otherwise null. It is never Jump's internal id.
  * **Not returned:** provider ids, hosted, PDF or payment URLs, descriptions, line items, and sync internals.

  ## Listing

  Filters: `patient_id`, `status`, `currency`, plus `limit` (default 20, max 100) and `offset` (max 100,000). An empty, repeated or unsupported parameter returns `422`; a `patient_id` you can't see returns `404`. Newest first. See [Pagination](https://docs.usejump.co.uk/getting-started/pagination). Responses carry `Cache-Control: no-store`.

  Payments, refunds, credits, voiding and line items are separate; see [Payments](https://docs.usejump.co.uk/api-reference/payments).
## List permitted patient invoices

`GET /invoices`

API-key scope: `read_invoices`

Requires read_invoices on a live practice key. Draft/null/unknown states
are excluded. Invoice, patient and exposed replacement ownership are
checked. Amounts are recorded minor-unit integers, not recomputed balances.
Null balances/currency remain unknown. Superseded originals can retain
billed amounts; summing every row is not a correct aggregate.
Sort: created_at DESC NULLS LAST, id DESC. Repeated, empty or unknown
query parameters are rejected. No provider payloads, URLs or actions.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no |  |
| `offset` | query | integer | no |  |
| `patient_id` | query | string (uuid) | no |  |
| `status` | query | string | no | One of: `open`, `past_due`, `partially_paid`, `paid`, `void`, `uncollectible`, `refunded`, `partially_refunded`, `credited`. |
| `currency` | query | string | no | Exact case-sensitive native three-letter code |

### Responses

- `200` Bounded invoice page with Cache-Control no-store
- `403` Missing live invoice read authority
- `404` Invoice
- `422` Invalid query
- `500` Invoice read failed or recorded values exceed safe limits

## Get one permitted patient invoice

`GET /invoices/{id}`

API-key scope: `read_invoices`

Requires read_invoices; accepts no query parameters. No draft or financial action is provided.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

### Responses

- `200` Invoice metadata with Cache-Control no-store
- `403` Missing live invoice read authority
- `404` Invoice or replacement reference unavailable
- `422` Invalid identifier or query
- `500` Invoice read failed
