# <Invoices />

Embed the Invoices component to show an account's invoices in a searchable list, where each invoice opens to be viewed, downloaded and paid.

 [image: Invoices component titled Past invoices with a Search by amount box, listing five invoices for Contoso Ltd: I-1042 for $1,250.00 Not due, and four Paid invoices from Aug to Oct 2026]

The invoices component.

```tsx
<Invoices
  sort="createdAt DESC"
  displayOptions={{ title: "Billing history" }}
/>
```

It needs a [portal session token](https://docs.bunny.com/developer/bunny-components/installation#tokens), and shows that account’s invoices. Like every component, it also accepts `appearance` ([Styling](https://docs.bunny.com/developer/bunny-components/styling)).

Clicking an invoice opens it in a drawer as an [`<Invoice />`](https://docs.bunny.com/developer/bunny-components/invoice), where the customer can download and pay it. Long lists are split into pages.

### filter and sort

Server-side [query filters](https://docs.bunny.com/developer/using-the-graphql-api/using-filters-in-queries) and sort clauses, for example `filter="invoice.amount is 100"` or `sort="createdAt DESC"`. When you pass a `filter`, the search box is hidden unless you turn it on with `displayOptions.showSearchBar`.

### displayOptions

| Option | Default |  |
| title | "Past invoices" | The title above the list |
| showTitle | true | Show the title |
| showSearchBar | true, or false with a filter | Show the Search by amount box |
| columns | ["date", "title", "state", "amount", "download"] | The columns to show, in order. accountName is also available. |
| useModal | false | Open invoices in a modal instead of a drawer |
| emptyMessage | "There are no invoices" | Shown when there are none |
| className, style, searchBarClassName |  | Positioning |

### behaviorOptions

| Option | Default |  |
| invoiceDateType | "createdAt" | The date shown in the date column: createdAt, issuedAt or dueAt |
| hidePaymentForm | false | Hide the payment form on opened invoices |
| suppressDetail | false | Don’t open invoices on click. Use with onInvoiceClick to handle the click yourself. |
| rowsPerPage | Fits the screen | Invoices per page, from 1 to 100 |

### onInvoiceClick and invoiceComponent

`onInvoiceClick` is called with the invoice when the customer clicks it. `invoiceComponent` replaces the `<Invoice />` shown in the drawer with your own content.

---

Source: https://docs.bunny.com/developer/bunny-components/invoices. Index of every page: https://docs.bunny.com/llms.txt
