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

# List credit transactions

> Everything that changed the credit balance, newest first, with the
balance after each. Needs `billing.view`.



## OpenAPI

````yaml /api-reference/console/openapi.json get /credit/transactions
openapi: 3.1.2
info:
  title: PerfGrid API
  version: 1.0.0
  description: >-
    The PerfGrid customer API. A member creates a token for one billing account
    under *API tokens* in the panel; it can do what both the token's permissions
    and the member's own permissions allow, the same as the panel.


    Send it as `Authorization: Bearer pgapi_...`. Each token may make 120
    requests a minute, of which 30 change something; a `429` response says when
    to try again (`Retry-After`). Ids are the ULIDs the API returns; amounts are
    decimal strings next to their currency; lists are newest first and paged
    with `cursor` (`meta.next_cursor`). Messages are in English, or Danish with
    `Accept-Language: da`.


    The same tokens work with the MCP server at `/mcp` for AI assistants.
servers:
  - url: https://console.perfgrid.com/api/v1
security:
  - http: []
tags:
  - name: Account
  - name: Invoices
  - name: Services
  - name: Domains
  - name: Support
paths:
  /credit/transactions:
    get:
      tags:
        - Invoices
      summary: List credit transactions
      description: |-
        Everything that changed the credit balance, newest first, with the
        balance after each. Needs `billing.view`.
      operationId: v1.credit.transactions
      responses:
        '200':
          description: Paginated set of `CreditTransactionResource`
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CreditTransactionResource'
                  links:
                    type: object
                    properties:
                      first:
                        type:
                          - string
                          - 'null'
                      last:
                        type:
                          - string
                          - 'null'
                      prev:
                        type:
                          - string
                          - 'null'
                      next:
                        type:
                          - string
                          - 'null'
                    required:
                      - first
                      - last
                      - prev
                      - next
                  meta:
                    type: object
                    properties:
                      path:
                        type:
                          - string
                          - 'null'
                        description: Base path for paginator generated URLs.
                      per_page:
                        type: integer
                        description: Number of items shown per page.
                        minimum: 0
                      next_cursor:
                        type:
                          - string
                          - 'null'
                        description: The "cursor" that points to the next set of items.
                      prev_cursor:
                        type:
                          - string
                          - 'null'
                        description: The "cursor" that points to the previous set of items.
                    required:
                      - path
                      - per_page
                      - next_cursor
                      - prev_cursor
                required:
                  - data
                  - links
                  - meta
        '403':
          $ref: '#/components/responses/AuthorizationException'
components:
  schemas:
    CreditTransactionResource:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - staff_adjustment
            - overpayment
            - applied
            - returned
            - currency_conversion
            - credit_note
            - refund
            - affiliate_commission
            - affiliate_clawback
        currency:
          type: string
        amount:
          type:
            - string
            - 'null'
        balance_after:
          type:
            - string
            - 'null'
        invoice:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
            reference:
              type: string
          required:
            - id
            - reference
        created_at:
          type:
            - string
            - 'null'
      required:
        - id
        - type
        - currency
        - amount
        - balance_after
        - invoice
        - created_at
      title: CreditTransactionResource
  responses:
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
  securitySchemes:
    http:
      type: http
      description: >-
        An API token from *API tokens* in the console, sent as `Authorization:
        Bearer pgapi_...`. It works for one billing account, and its permissions
        decide which endpoints it may call.
      scheme: bearer

````

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