# List Invoices

> Solarium docs, Invoices. All requests are `POST https://api.trysolarium.com/graphql/` with `Authorization: Bearer <api key>` and a JSON body `{"query": ..., "variables": ...}`. Every query and mutation takes an `organizationId` (find it with `myOrganizations`). Index of all pages: https://trysolarium.com/llms.txt

Newest first, with a total count, counts per status group, and the money bar: overdue, not due yet, drafts and paid in the last 30 days, each with a count and an amount in your books' currency. Read only, so previewOp is enough.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `params.status` | `String` | No | draft, sent, viewed, partially_paid, paid, overdue, void, or open |
| `params.statuses` | `[String]` | No | Any of these statuses (open counts as sent, viewed, partly paid and overdue) |
| `params.bucket` | `String` | No | One money-bar segment: overdue, not_due, draft, paid_30, open or all |
| `params.contact_id` | `String` | No | One customer's invoices |
| `params.search` | `String` | No | Matches the invoice number or the customer's name |
| `params.issued_from` | `Date` | No | Issued on or after (YYYY-MM-DD) |
| `params.issued_to` | `Date` | No | Issued on or before (YYYY-MM-DD) |
| `params.amount_min` | `String` | No | Total at least this |
| `params.amount_max` | `String` | No | Total at most this |
| `params.limit` | `Int` | No | Page size (default 100) |
| `params.offset` | `Int` | No | Skip this many (default 0) |

### Request

```graphql
query {
  previewOp(organizationId: "a1b2c3d4-...", name: "list_invoices", params: { status: "open" }) { result }
}
```

### Response

```json
{
  "data": { "previewOp": { "result": { "summary": "3 Invoice(s); 2260.00 Owed, 1130.00 Overdue On This Page." } } }
}
```
