---
updatedAt: 2026-06-02T21:29:35.000Z
agentTools:
  projectIndex: https://developer.digits.com/llms.txt
---

# List Categories

Fetch the full Chart of Accounts from the Ledger.

 Requires scope: `ledger:read`.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Digits Connect API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://connect.digits.com",
      "description": "Production"
    }
  ],
  "paths": {
    "/v1/ledger/categories": {
      "get": {
        "tags": [
          "LedgerCategoryService"
        ],
        "summary": "List Categories",
        "description": "Fetch the full Chart of Accounts from the Ledger.\n\n Requires scope: `ledger:read`.",
        "operationId": "LedgerCategoryService_List",
        "parameters": [
          {
            "name": "createdBefore",
            "in": "query",
            "description": "Filter to categories created before this timestamp",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "createdAfter",
            "in": "query",
            "description": "Filter to categories created after this timestamp",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updatedBefore",
            "in": "query",
            "description": "Filter to categories updated before this timestamp",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updatedAfter",
            "in": "query",
            "description": "Filter to categories updated after this timestamp",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "entity.id",
            "in": "query",
            "description": "Entity's Digits-assigned ID, obtained from entity discovery. Required unless\n external_id is supplied or the token already identifies the entity.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entity.externalId",
            "in": "query",
            "description": "Entity's caller-assigned ID in the authorizing organization's namespace.\n Alternative to id for organization-level tokens; not a source or transaction ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListCategoriesResponse"
                }
              }
            }
          },
          "default": {
            "description": "Default error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Category": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parentId": {
            "type": "string"
          },
          "displayNumber": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "type": {
            "enum": [
              "UnknownType",
              "Assets",
              "Liabilities",
              "Equity",
              "Income",
              "Expenses",
              "CostOfGoodsSold",
              "OtherIncome",
              "OtherExpenses"
            ],
            "type": "string",
            "format": "enum"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "subtype": {
            "enum": [
              "UnknownSubtype",
              "Payroll",
              "Pending",
              "AccountsReceivable",
              "AccruedRevenue",
              "AssetClearing",
              "BankAccounts",
              "FixedAssets",
              "Goodwill",
              "IntangibleAssets",
              "Inventory",
              "Investments",
              "OtherCurrentAssets",
              "OtherLongTermAssets",
              "PrepaidExpenses",
              "ShareholderLoans",
              "UncategorizedAssets",
              "AccountsPayable",
              "AccruedExpenses",
              "ConvertibleNotes",
              "CreditCards",
              "DeferredRevenue",
              "LiabilityClearing",
              "LongTermDebt",
              "OtherCurrentLiabilities",
              "OtherLongTermLiabilities",
              "ShortTermDebt",
              "AdditionalPaidInCapital",
              "CommonStock",
              "OtherComprehensiveIncome",
              "OwnersEquity",
              "PreferredStock",
              "RetainedEarnings",
              "Safes",
              "TreasuryStock",
              "UncategorizedEquity",
              "PartnerRevenue",
              "RefundsAndDiscounts",
              "SalesRevenue",
              "SubscriptionRevenue",
              "TransactionRevenue",
              "UncategorizedIncome",
              "BusinessApplicationsAndSoftware",
              "Facilities",
              "GeneralOperations",
              "PayrollExpenses",
              "ProfessionalFees",
              "SalesAndMarketing",
              "SuppliesAndMaterials",
              "TravelAndEntertainment",
              "UncategorizedExpense",
              "CostOfGoods",
              "CostOfLabor",
              "HostingFees",
              "OtherCostOfRevenue",
              "PaymentProcessingFees",
              "CreditCardRewards",
              "InterestAndDividends",
              "OtherMiscellaneousIncome",
              "BadDebtExpense",
              "DepreciationAndAmortization",
              "InterestExpense",
              "OtherMiscellaneousExpenses",
              "Taxes",
              "Other",
              "None"
            ],
            "type": "string",
            "description": "Fine-grained classification within the coarse type (e.g. BankAccounts,\n AccountsReceivable, CreditCards). Consumers that map to external\n chart-of-accounts taxonomies rely on this to distinguish account kinds\n that share a top-level type.",
            "format": "enum"
          }
        }
      },
      "GoogleProtobufAny": {
        "type": "object",
        "properties": {
          "@type": {
            "type": "string",
            "description": "The type of the serialized message."
          }
        },
        "additionalProperties": true,
        "description": "Contains an arbitrary serialized message along with a @type that describes the type of the serialized message."
      },
      "ListCategoriesResponse": {
        "type": "object",
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            }
          }
        }
      },
      "Status": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client."
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GoogleProtobufAny"
            },
            "description": "A list of messages that carry the error details.  There is a common set of message types for APIs to use."
          }
        },
        "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)."
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "LedgerCategoryService"
    }
  ]
}
```