---
title: "Create or update custom general ledger codes"
method: PUT
path: "/accounting/v1.0/custom-general-ledger-codes"
tags: ["Custom General Ledger Codes"]
---

# Create or update custom general ledger codes

`PUT /accounting/v1.0/custom-general-ledger-codes`

Create or update custom general ledger (GL) codes for a property. Send the full list of GL codes you want to persist. Each code must have a unique name and code value. You can assign codes to groups (payments, products, reservations, taxes/fees, etc.) to categorize them. To archive a code, set its `archived` flag to true.

## Headers

- `X-Property-ID` integer, required

## Request body

- CustomGeneralLedgerCodesUpdateRequest
  - `data` CustomGeneralLedgerCodeModel[]
    - `id` string
    - `version` integer
    - `name` string, required
    - `code` string, required
    - `conditionalCode` string
    - `group` 'payments' | 'products' | 'reservations' | 'taxes_fees' | 'deposit_transfers' | 'accounts_receivable_transfers' | 'current_ledger' | 'spaces' | 'channel_commission' | 'gratuity'
    - `archived` boolean

## Response `200`

OK

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/cloudbeds/apis/cloudbeds-api.md) · [All operations](https://skmtc.net/cloudbeds/apis/cloudbeds-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbeds/cloudbeds-api/revisions/2faa857793e8/schema)
