> ## 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 payments

> List the payments an account has made, with their receipt links; returns one page of payments with amounts in minor currency units.

`payments(input: PaymentListInput): PaymentPage!`

Requires account.billing.read.

## Arguments

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

## Input fields

### input

[`PaymentListInput`](https://veryfront.com/docs/cloud/graphql/types/paymentlistinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `sortBy` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | date or amount. 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 payments 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 [`PaymentPage!`](https://veryfront.com/docs/cloud/graphql/types/paymentpage). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `data` | [`[Payment!]!`](https://veryfront.com/docs/cloud/graphql/types/payment) |
| `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 Payments($input: PaymentListInput) {
  payments(input: $input) {
    data {
      id
      status
      createdAt
      amount
      currency
    }
    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.