---
title: "List all accounting codes"
method: GET
path: "/v1/accounting-codes"
tags: ["Accounting Codes"]
---

# List all accounting codes

`GET /v1/accounting-codes`

This reference describes how to query all accounting codes in your chart of accounts through the REST API.

## Query parameters

- `page` integer
- `pageSize` integer

## Headers

- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Version` string

## Response `200`

OK

- GETAccountingCodesType
  - `accountingCodes` GETAccountingCodeItemWithoutSuccessType[] — An array of all the accounting codes in your chart of accounts. Each accounting code has the following fields.
    - `category` 'Assets' | 'Liabilities' | 'Equity' | 'Revenue' | 'Expenses' — The category associated with the accounting code.
    - `createdBy` string — The ID of the user who created the accounting code.
    - `createdOn` string — Date and time when the accounting code was created.
    - `glAccountName` string, nullable — Name of the account in your general ledger. Field only available if you have Zuora Finance enabled.
    - `glAccountNumber` string, nullable — Account number in your general ledger. Field only available if you have Zuora Finance enabled.
    - `id` string — ID of the accounting code.
    - `name` string — Name of the accounting code.
    - `notes` string, nullable — Any optional notes for the accounting code.
    - `status` 'Active' | 'Inactive' — The accounting code status.
    - `type` 'AccountsReceivable' | 'OnAccountReceivable' | 'Cash' | 'OtherAssets' | 'CustomerCashOnAccount' | 'DeferredRevenue' | 'SalesTaxPayable' | 'OtherLiabilities' | 'SalesRevenue' | 'SalesDiscounts' | 'OtherRevenue' | 'OtherEquity' | 'BadDebt' | 'OtherExpenses' — Accounting code type. Note that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature.
    - `updatedBy` string — The ID of the user who last updated the accounting code.
    - `updatedOn` string — Date and time when the accounting code was last updated.
    - `segmentConstantValues` SegmentConstantValuesCustomFields — Segment constant values. The field is available only if you have GL Segmentation 2.0 enabled. This field is additional property.
  - `nextPage` string, URL — URL to retrieve the next page of the response if it exists; otherwise absent.
  - `success` boolean — Returns `true` if the request was processed successfully.

## Other responses

- `500` — Internal Server Error
- `4XX` — Request Errors

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/702f3caf3985/schema)
