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

# Query GL entries

> Query GL entries for the authenticated user



## OpenAPI

````yaml https://dev.tight.com/v3/api-docs post /v6/accounting/glAccounts/{id}/generalLedger
openapi: 3.0.1
info:
  title: Tight API
  contact:
    name: Hurdlr, Inc. (dba Tight)
    url: https://www.tight.com
    email: api@tight.com
  version: 6.0.0
servers:
  - url: https://sandbox.tight.com
    description: Staging Environment
  - url: https://prod.tight.com
    description: Production Environment
security:
  - EmbedToken: []
paths:
  /v6/accounting/glAccounts/{id}/generalLedger:
    post:
      tags:
        - GL Entries
      summary: Query GL entries
      description: Query GL entries for the authenticated user
      operationId: queryGlEntries
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GlEntriesGetParam'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlEntryQueryResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                result: FAILURE
                error:
                  - type: REQUIRED
                    message: Amount is required
                    param: amount
        '401':
          description: Not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                result: FAILURE
                error:
                  - type: INVALID_TOKEN
                    message: Invalid access token
        '403':
          description: Not authorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                result: FAILURE
                error:
                  - type: FORBIDDEN
                    message: Expired access token
        '404':
          description: Endpoint not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                result: FAILURE
                error:
                  - type: BAD_REQUEST
                    message: Resource not found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                result: FAILURE
                error:
                  - type: UNKNOWN_ERROR
                    message: Something went wrong. Please try again later.
      security:
        - EmbedToken: []
components:
  schemas:
    GlEntriesGetParam:
      type: object
      properties:
        cursor:
          type: string
          description: Cursor from the previous paginated response
          nullable: true
        limit:
          maximum: 250
          type: integer
          description: Page size, i.e. number of items to return per page
          format: int32
        filter:
          $ref: '#/components/schemas/GlEntriesFilterParam'
        accountingMethod:
          type: string
          description: >-
            Accounting method to generate the report in. Defaults to the
            company's configured accounting method.
          enum:
            - ACCRUAL
            - CASH
    GlEntryQueryResponse:
      type: object
      properties:
        result:
          type: string
          description: The result of the action performed.
          enum:
            - SUCCESS
            - FAILURE
        data:
          type: array
          description: The data generated by the action performed.
          items:
            $ref: '#/components/schemas/GlEntryGetDto'
        cursor:
          $ref: '#/components/schemas/ResponseCursor'
        beginningBalance:
          type: integer
          description: >-
            Beginning balance in cents. Present on the first page when
            applicable; null on subsequent pages.
          format: int32
    ErrorResponse:
      type: object
      properties:
        result:
          type: string
          description: The result of the action performed.
          enum:
            - SUCCESS
            - FAILURE
        data:
          type: object
          description: The data generated by the action performed.
          nullable: true
        error:
          type: array
          items:
            $ref: '#/components/schemas/ErrorItem'
    GlEntriesFilterParam:
      type: object
      properties:
        includeBeginningBalance:
          type: boolean
          description: Whether to include the beginning balance in the response.
        beginDate:
          type: string
          description: Start date (inclusive). Defaults to Jan 1 of current year.
          format: date
        endDate:
          type: string
          description: End date (inclusive). Defaults to Dec 31 of current year.
          format: date
        search:
          type: string
          description: Search filter applied to GL entry descriptions.
        dimensionValues:
          maxItems: 4
          type: array
          items:
            $ref: '#/components/schemas/DimensionValueFiltering'
      description: Filter for items in the response.
    GlEntryGetDto:
      required:
        - crAmount
        - date
        - description
        - drAmount
        - entity
        - glAccount
        - id
        - runningBalance
      type: object
      properties:
        id:
          type: string
          description: Id of the GL entry
          example: glt_12345678
        entity:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/EntityExpanded'
        description:
          type: string
          description: Description of the GL entry
          nullable: true
          example: Monthly payroll entry
        date:
          type: string
          description: Date of the GL entry
          format: date
          example: '2025-06-26'
        runningBalance:
          type: integer
          description: Running balance of the General Ledger
          format: int32
          nullable: true
          example: 100000
        glAccount:
          $ref: '#/components/schemas/ExpandedDataDefault'
        drAmount:
          type: integer
          description: Debit amount in cents
          format: int32
          nullable: true
          example: 100000
        crAmount:
          type: integer
          description: Credit amount in cents
          format: int32
          nullable: true
          example: 0
        type:
          type: string
          description: >-
            Transaction type derived from the GL source. When a bank transaction
            type is present, one of the PublicType values is returned. Otherwise
            falls back to the GL source name.
          example: EXPENSE
          enum:
            - EXPENSE
            - REVENUE
            - TRANSFER_IN
            - TRANSFER_OUT
            - INVOICE
            - BILL
            - PAYROLL
            - JOURNAL_ENTRY
      description: The data generated by the action performed.
    ResponseCursor:
      type: object
      properties:
        after:
          type: string
          description: >-
            After cursor - Fetches entities after this cursor. Useful for paging
            forwards.
        before:
          type: string
          description: >-
            Before cursor - Fetches entities before this cursor. Useful for
            paging backwards.
      description: >-
        Cursor to be used in your subsequent paginated request. Only populated
        if there are more pages available.
    ErrorItem:
      type: object
      properties:
        type:
          type: string
          description: The type of the error. Safe for programmatic use.
          enum:
            - UNKNOWN_ERROR
            - INVALID_TOKEN
            - EXPIRED_TOKEN
            - FORBIDDEN
            - BAD_REQUEST
            - JSON_ERROR
            - DUPLICATE
            - REQUIRED
            - INVALID_VALUE
            - NOT_MODIFIABLE
            - INVALID_FORMAT
            - NOT_FOUND
        message:
          type: string
          description: >-
            A human-readable message providing more details about the error.
            Safe for displaying to a user.
        param:
          type: string
          description: >-
            If the error is parameter-specific, the parameter related to the
            error. This can be used to display a message near the correct form
            field.
      description: Errors associated with the action performed, if applicable.
    DimensionValueFiltering:
      type: object
      properties:
        dimensionId:
          type: string
          description: Dimension ID to filter by
          example: tdim_439512
        dimensionValueIds:
          type: array
          description: List of dimension value IDs under dimensionId to filter by
          items:
            type: string
            description: List of dimension value IDs under dimensionId to filter by
      description: List of dimensions and their dimension values to filter by
    EntityExpanded:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: Id of the entity
          example: btxn_158998869
        description:
          type: string
          description: Description of the entity
          nullable: true
          example: Gusto payroll
        displayName:
          type: string
          description: Display name of the entity
          nullable: true
          example: Gusto
        secondaryDisplayName:
          type: string
          description: Secondary display name for the entity
          nullable: true
          example: Business Checking *1687
        glAccount:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/GlAccountExpanded'
      description: Entity reference
      nullable: true
    ExpandedDataDefault:
      type: object
      properties:
        id:
          type: string
      description: GL account associated with this entry
    GlAccountExpanded:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: Id of the GL account
          example: gla_38560327
        name:
          type: string
          description: Name of the GL account
          example: Officer(s) Salaries and Wages
        accountNo:
          type: string
          description: Number of the GL account
          example: '60210'
        type:
          type: string
          description: Type the GL account
          example: EXPENSE
          enum:
            - ASSET
            - LIABILITY
            - EQUITY
            - INCOME
            - COGS
            - EXPENSE
            - OTHER_INCOME
            - OTHER_EXPENSE
            - SUSPENSE
        iconUrl:
          type: string
          description: Icon URL of the GL account
          example: https://cdn.sandbox.tight.com/icons/glAccountTypes/expense.png
        displayName:
          type: string
          description: Display name of the GL account
          example: '#60210 Officer(s) Salaries and Wages'
      description: GL account details
  securitySchemes:
    EmbedToken:
      type: http
      description: >-
        Bearer authentication header of the form `Bearer <token>`, see
        [Authentication for more
        detail](/api-reference/authentication#partner-level-authentication).
      scheme: bearer

````