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

## Request

- Base URL: `https://api.cloudbeds.com`
- URL: `https://api.cloudbeds.com/accounting/v1.0/custom-general-ledger-codes`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Implicit: `https://hotels.cloudbeds.com/api/v1.2/oauth`
    - Scopes: `write:payment`

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.dev/cloudbeds/apis/accounting-api.md) - [All operations](https://skmtc.dev/cloudbeds/apis/accounting-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudbeds/apis/accounting-api/revisions/0b58c698deef?raw)
