> ## 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 payment methods

> List the cards saved for an account and which one is the default; returns one page of payment methods, which are changed in the billing portal.

`paymentMethods(input: PaymentMethodListInput): PaymentMethodPage!`

Requires account.billing.read.

## Arguments

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

## Input fields

### input

[`PaymentMethodListInput`](https://veryfront.com/docs/cloud/graphql/types/paymentmethodlistinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `limit` | [`Int`](https://veryfront.com/docs/cloud/graphql/types/int) | No | Maximum number of payment methods to return, 1 to 100. Defaults to 100. |
| `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 [`PaymentMethodPage!`](https://veryfront.com/docs/cloud/graphql/types/paymentmethodpage). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `data` | [`[PaymentMethod!]!`](https://veryfront.com/docs/cloud/graphql/types/paymentmethod) |
| `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 PaymentMethods($input: PaymentMethodListInput) {
  paymentMethods(input: $input) {
    data {
      id
      brand
      expMonth
      expYear
      isDefault
    }
    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.