Skip to main content
PUT
/
accounting_codes
/
{accounting_code}
Update an accounting code
curl --request PUT \
  --url https://sandbox.nmbr.co/services/payroll/accounting_codes/{accounting_code} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Accounting Code"
}
'
{
  "id": "<id>",
  "object": "accounting_code",
  "data": {
    "business_entity": {
      "id": "<id>",
      "object": "business_entity",
      "links": {
        "self": "/business_entities/<id>"
      }
    },
    "type": "expense",
    "code": "9916",
    "title": "Accounting Code",
    "title_translations": null,
    "title_translated": "Accounting Code",
    "description": "Vitae error architecto sint velit tempora illo itaque consequuntur omnis ratione esse sint.",
    "description_translations": null,
    "description_translated": "Vitae error architecto sint velit tempora illo itaque consequuntur omnis ratione esse sint.",
    "mapping": {
      "xero": false,
      "quickbooks": false
    },
    "fallback_mappings": [],
    "created_at": "2026-01-01T00:00:00.000000Z",
    "updated_at": "2026-01-01T00:00:00.000000Z"
  },
  "links": {
    "self": "/accounting_codes/<id>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

accounting_code
string
required

Body

application/json
title
string
Maximum string length: 255
title_translations
object

Optional translations for the title property.

code
string

The accounting code identifier as it appears in the chart of accounts.

Maximum string length: 255
description
string | null
description_translations
object

Optional translations for the description property.

type
enum<string>

The type of accounting code.

Available options:
bank,
expense,
liability
fallback_mappings
object[]

Line Item type/subtype pairs that default to this accounting code when no specific mapping is configured. Each entry contains type and subtype.

Must be an array of valid type and subtype pairs

The combination of type and subtype must be unique within the business entities accounting codes, for the same accounting code type.

Response

200 - application/json

OK

id
string
read-only

The unique identifier of the object in Nmbr.

object
string
read-only

The type of the object in Nmbr ("accounting_code").

data
Accounting Code · object