> ## 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 credit transactions

> List the credit grants, purchases, refunds and charges of an account, newest first unless sorted otherwise; returns one page of credit transactions.

`creditTransactions(input: CreditTransactionsInput!): CreditTransactionList!`

Requires account.billing.read.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`CreditTransactionsInput!`](https://veryfront.com/docs/cloud/graphql/types/credittransactionsinput) | Yes |

## Input fields

### input

[`CreditTransactionsInput`](https://veryfront.com/docs/cloud/graphql/types/credittransactionsinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `limit` | [`Int`](https://veryfront.com/docs/cloud/graphql/types/int) | No | Maximum number of transactions to return. Default 50. |
| `cursor` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `activityType` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Normalized activity category. Filtering applies before cursor pagination. |
| `sortBy` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `sortOrder` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |

## Response

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

| Field | Type |
| - | - |
| `data` | [`[CreditTransaction!]!`](https://veryfront.com/docs/cloud/graphql/types/credittransaction) |
| `pageInfo` | [`CreditPageInfo!`](https://veryfront.com/docs/cloud/graphql/types/creditpageinfo) |

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 CreditTransactions($input: CreditTransactionsInput!) {
  creditTransactions(input: $input) {
    data {
      id
      projectId
      createdAt
      activityType
      amount
    }
    pageInfo {
      hasNextPage
      endCursor
      first
      hasPreviousPage
      next
    }
  }
}
```

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

<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.