> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List invoices

> List the issued invoices of an account, or with kind upcoming the previews and drafts of what it will be charged next; returns one page of invoices with amounts in minor currency units.

`invoices(input: InvoiceListInput): InvoicePage!`

Requires account.billing.read.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`InvoiceListInput`](https://veryfront.com/docs/cloud/graphql/types/invoicelistinput) | No |

## Input fields

### input

[`InvoiceListInput`](https://veryfront.com/docs/cloud/graphql/types/invoicelistinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `kind` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | issued (default) lists finalized invoices. upcoming lists the preview of each active subscription, then draft invoices. |
| `sortBy` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | date, amount or status. Pages follow Stripe order, newest first; sorting orders the returned page only. |
| `sortOrder` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | asc or desc. Defaults to desc. |
| `limit` | [`Int`](https://veryfront.com/docs/cloud/graphql/types/int) | No | Maximum number of invoices to return, 1 to 100. Defaults to 20. |
| `cursor` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Opaque cursor pointing at the next page. Omit it to read the first page. |

## Response

Returns [`InvoicePage!`](https://veryfront.com/docs/cloud/graphql/types/invoicepage). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `data` | [`[Invoice!]!`](https://veryfront.com/docs/cloud/graphql/types/invoice) |
| `pageInfo` | [`PageInfo!`](https://veryfront.com/docs/cloud/graphql/types/pageinfo) |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
query Invoices($input: InvoiceListInput) {
  invoices(input: $input) {
    data {
      id
      status
      amountDue
      amountPaid
      amountTotal
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
  }
}
```

```json title="variables.json" theme={null}
{}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.