---
title: "List General Ledger Transactions"
method: GET
path: "/accounting/general-ledger-transactions"
tags: ["General Ledger Transactions"]
---

# List General Ledger Transactions

`GET /accounting/general-ledger-transactions`

List General Ledger Transactions

## Query parameters

- `raw` boolean
- `cursor` string, nullable
- `limit` integer
- `filter` GeneralLedgerTransactionsFilter
  - `source_type` 'other' | 'invoice' | 'bill' | 'credit_note' | 'payment' | 'refund' | 'expense' | 'journal_entry' | 'payroll' — Filter by the originating transaction type.
  - `source_id` string — Return only transactions originated from the given source document id.
  - `updated_since` string, date-time — Return transactions updated on or after this timestamp.
- `sort` GeneralLedgerTransactionsSort
  - `by` 'posted_at' | 'updated_at' | 'created_at' — The field on which to sort the General Ledger Transactions.
  - `direction` 'asc' | 'desc' — The direction in which to sort the results
- `pass_through` PassThroughQuery
  - `example_downstream_property` string — All passthrough query parameters are passed along to the connector as is (?pass_through[search]=leads becomes ?search=leads)
- `fields` string, nullable

## Headers

- `x-apideck-consumer-id` string, required
- `x-apideck-app-id` string, required
- `x-apideck-service-id` string
- `x-apideck-company-id` string

## Response `200`

GeneralLedgerTransactions

- GetGeneralLedgerTransactionsResponse
  - `status_code` integer, required — HTTP Response Status Code
  - `status` string, required — HTTP Response Status
  - `service` string, required — Apideck ID of service provider
  - `resource` string, required — Unified API resource name
  - `operation` string, required — Operation performed
  - `data` GeneralLedgerTransaction[], required
    - `id` string — A unique identifier for an object.
    - `source_type` 'other' | 'invoice' | 'bill' | 'credit_note' | 'payment' | 'refund' | 'expense' | 'journal_entry' | 'payroll', nullable, required — The originating transaction type that produced this posting in the general ledger. Discriminates whether the entry came from an invoice, a bill, a payment, a manual journal, etc. This is the key field that distinguishes general-ledger-transactions from journal-entries (which only covers manually-captured entries). May be `null` when the upstream connector did not return an origin discriminator (e.g. Xero's single-record endpoint strips `SourceType` for every record; certain historical records also omit it). To recover a populated value, query the list endpoint.
    - `source_id` string, nullable — Identifier of the originating document in the vendor system. For example, when source_type is 'invoice', this is the id of the invoice that produced this posting. Use this id together with source_type to fetch the source document via its dedicated unified resource.
    - `posted_at` string, date-time — The date on which the transaction was posted to the general ledger. This is the accounting date — it is what determines the period the transaction belongs to and can be earlier than the creation date for backdated postings.
    - `reference` string, nullable — Optional reference identifier for the transaction.
    - `number` string, nullable — Sequential number auto-assigned by the vendor system to the transaction (e.g. Xero JournalNumber). Unique per company.
    - `currency` 'UNKNOWN_CURRENCY' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRC' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'USS' | 'UYI' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XTS' | 'XXX' | 'YER' | 'ZAR' | 'ZMK' | 'ZMW' | 'BTC' | 'ETH', nullable — Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
    - `currency_rate` number, nullable — Currency Exchange Rate at the time entity was recorded/generated.
    - `memo` string, nullable — Free-text description at the header level. Typically populated when the transaction originates from a manual journal — for system-generated postings (invoice, payment, etc.) the source document carries the descriptive text.
    - `line_items` GeneralLedgerTransactionLineItem[], required — Lines of the transaction. Each line affects one ledger account with either a debit or a credit. The signed sum of net_amount across all lines must equal zero (double-entry invariant).
      - `id` string — A unique identifier for an object.
      - `description` string, nullable — Free-text description of the line.
      - `net_amount` number, nullable — The amount posted to the ledger account, tax-exclusive. Debit entries are positive, credit entries are negative. In general-ledger views the tax component lives in its own dedicated line against a tax payable/receivable account, so net_amount is the canonical figure for reporting.
      - `type` 'debit' | 'credit', nullable, required — Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience.
      - `tax_amount` number, nullable — Tax embedded in the line. In GL views this is typically 0 or null because tax has its own dedicated line against a tax payable/receivable account. Exposed for completeness and for tax-inclusive setups.
      - `tax_rate` LinkedTaxRate
        - `id` string, nullable — The ID of the object.
        - `code` string, nullable — Tax rate code
        - `name` string, nullable — Name of the tax rate
        - `rate` number, nullable — Rate of the tax rate
      - `tracking_categories` LinkedTrackingCategory[], nullable — A list of linked tracking categories.
        - `id` string — The unique identifier for the tracking category.
        - `code` string, nullable — The code of the tracking category.
        - `name` string, nullable — The name of the tracking category.
        - `parent_id` string — The unique identifier for the parent tracking category.
        - `parent_name` string, nullable — The name of the parent tracking category.
      - `ledger_account` LinkedLedgerAccount, nullable, required
        - `id` string — The unique identifier for the account.
        - `name` string, nullable — The name of the account.
        - `nominal_code` string, nullable — The nominal code of the account.
        - `code` string, nullable — The code assigned to the account.
        - `parent_id` string, nullable — The parent ID of the account.
        - `display_id` string, nullable — The display ID of the account.
      - `line_number` integer, nullable — Line number of the resource
    - `custom_fields` CustomField[]
      - union
        - object
          - `id` string, nullable, required — Unique identifier for the custom field.
          - `name` string, nullable — Name of the custom field.
          - `description` string, nullable — More information about the custom field
          - `value` union
            - string, nullable
            - number, nullable
            - boolean, nullable
            - object, nullable
            - union[]
              - …
        - object
          - `id` string, nullable — Unique identifier for the custom field.
          - `name` string, nullable, required — Name of the custom field.
          - `description` string, nullable — More information about the custom field
          - `value` union
            - string, nullable
            - number, nullable
            - boolean, nullable
            - object, nullable
            - union[]
              - …
    - `updated_by` string, nullable — The user who last updated the object.
    - `created_by` string, nullable — The user who created the object.
    - `updated_at` string, date-time, nullable — The date and time when the object was last updated.
    - `created_at` string, date-time, nullable — The date and time when the object was created.
    - `custom_mappings` CustomMappings, nullable — When custom mappings are configured on the resource, the result is included here.
    - `pass_through` object[] — The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
      - `service_id` string, required — Identifier for the service to which this pass_through should be applied.
      - `operation_id` string — Optional identifier for a workflow operation to which this pass_through should be applied. This is useful for Unify calls that are making more than one downstream request.
      - `extend_object` object — Simple object allowing any properties for direct extension.
      - `extend_paths` object[] — Array of objects for structured data modifications via paths.
        - `path` string, required — JSONPath string specifying where to apply the value.
        - `value` unknown, required
  - `meta` Meta — Response metadata
    - `items_on_page` integer — Number of items returned in the data property of the response
    - `cursors` object — Cursors to navigate to previous or next pages through the API
      - `previous` string, nullable — Cursor to navigate to the previous page of results through the API
      - `current` string, nullable — Cursor to navigate to the current page of results through the API
      - `next` string, nullable — Cursor to navigate to the next page of results through the API
    - `total_count` integer — Number of records available in total for this resource
    - `warnings` object[], nullable — Non-fatal warnings emitted when optional workflow steps failed. Present only when at least one step degraded; the response status remains 200.
      - `type` string — Discriminator for the warning kind.
      - `status_code` integer, nullable — HTTP status code returned by the failed downstream request, when available.
      - `error` string, nullable — Short error description from the downstream provider, when available.
      - `operation` string, nullable — Identifier of the workflow step that failed.
      - `message` string, nullable — Detailed message from the downstream provider, when available.
  - `links` Links — Links to navigate to previous or next pages through the API
    - `previous` string, nullable — Link to navigate to the previous page through the API
    - `current` string — Link to navigate to the current page through the API
    - `next` string, nullable — Link to navigate to the previous page through the API
  - `_raw` Raw, nullable — Raw response from the integration when raw=true query param is provided

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `404` — The specified resource was not found
- `422` — Unprocessable
- `default` — Unexpected error

---

[API](https://skmtc.net/apideck-libraries/apis/accounting-api.md) · [All operations](https://skmtc.net/apideck-libraries/apis/accounting-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apideck-libraries/accounting-api/versions/33e09b023d02/schema)
