---
title: "Update custom transaction code mappings"
method: PUT
path: "/accounting/v1.0/custom-transaction-codes"
tags: ["Custom Transaction Codes"]
---

# Update custom transaction code mappings

`PUT /accounting/v1.0/custom-transaction-codes`

## Request

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

Update custom transaction code mappings for a property. For each mapping, provide the record ID and the new custom code value. You can also optionally assign a custom general ledger code to each transaction code. Only the mappings you include in the request are updated; others remain unchanged.

## Headers

- `X-Property-ID` integer, required

## Request body

- CustomTransactionCodesUpdateRequest
  - `data` CustomTransactionCodesUpdateModel[]
    - `id` string
    - `code` string: Optional custom code override. May be left empty when the caller only wants to map a General Ledger account to the transaction type.
    - `customGeneralLedgerCodeId` string

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