---
title: "Retrieve an accounting code"
method: GET
path: "/v1/accounting-codes/{ac-id}"
tags: ["Accounting Codes"]
---

# Retrieve an accounting code

`GET /v1/accounting-codes/{ac-id}`

This reference describes how to query an accounting code through the REST API.

## Path parameters

- `ac-id` string, required

## 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

- GETAccountingCodeItemType — Container for custom fields of an Accounting Code object.
  - `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.
  - `success` boolean — Returns `true` if the request was processed successfully.
  - `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.

## 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/d11e237f3e54/schema)
