# List invoices

`opensend.billing.invoices()`

What the workspace has been charged, newest first.

Needs the scope: `workspace:read`

## Returns

The call resolves to the answer, already parsed. A call the API refuses throws `OpenSendError` with the code and the message of the answer. [SDK](https://opensend.sh/docs/sdk) lists the errors of the client itself.

- `object` ("list"): Always `list`.
- `data` (object[]): The invoices of the workspace, newest first.
- `data[].object` ("invoice"): Always `invoice`.
- `data[].id` (string): The id of the invoice.
- `data[].number` (string): The number printed on the invoice.
- `data[].createdAt` (string): When the invoice was issued.
- `data[].amountCents` (integer): The amount, in cents.
- `data[].currency` (string): The currency of the amount.
- `data[].paid` (boolean): Whether it has been paid.
- `data[].product` (string): What the invoice is for.

## Example

TypeScript:

```ts
await opensend.billing.invoices()
```

CLI:

```bash
opensend billing invoices
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "invoice",
      "id": "ord_01",
      "number": "INV-0011",
      "createdAt": "2026-11-01T00:00:00.000Z",
      "amountCents": 2000,
      "currency": "usd",
      "paid": true,
      "product": "Pro"
    }
  ]
}
```
